public void mvn(@CliOption(key = "mavenCommand", mandatory = true, help = "User-specified Maven command (eg test:test)") final String command) throws IOException { getMavenOperations().executeMvnCommand(command); }
getMavenOperations().executeMvnCommand("generate-sources"); } catch (InterruptedException e) { e.printStackTrace();
/** * {@inheritDoc} */ public void mvn(String parameters, String message) throws IOException { logger.log(Level.INFO, message + " ..."); try { getMavenOperations().executeMvnCommand(parameters); } catch (IOException e) { logger.log(Level.WARNING, message + " error !"); throw e; } catch (RuntimeException e) { logger.log(Level.WARNING, message + " error !"); throw e; } }