[ http://jira.codehaus.org/browse/MNG-4830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235931#action_235931 ]
Jason van Zyl commented on MNG-4830: ------------------------------------ I'll try to glean what you mean here ... Have you basically extracted: http://github.com/olamy/hudson-maven3-support/blob/master/maven3-listener/src/main/java/org/apache/maven/cli/DefaultMavenExecutionRequestBuilder.java out of https://svn.apache.org/repos/asf/maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java If so this would only be useful if we didn't have to duplicate code. So you need to figure out how to use this in the MavenCli in a way that reuses the code. Right now the components that are required are looked up directly by the container. So dropping your code right now in that form would just make a bunch of duplicate code. So until you find a way to make the same component work in both places I'm -1. If you can get your component to work in MavenCli I'm +1. > Add helper component to build MavenExecutionRequest from cli args (String[] > args) > --------------------------------------------------------------------------------- > > Key: MNG-4830 > URL: http://jira.codehaus.org/browse/MNG-4830 > Project: Maven 2 & 3 > Issue Type: Improvement > Components: Bootstrap & Build, Command Line > Affects Versions: 3.0-beta-3 > Reporter: Olivier Lamy > > currently executing maven programmatically is quite difficult because > building easily a MavenExecutionRequest needs a lot of parameters, some > methods to call etc... > Here a simple component which build MavenExecutionRequest from String[] args > (cli arguments). > Source code is here : > [http://github.com/olamy/hudson-maven3-support/blob/master/maven3-listener/src/main/java/org/apache/maven/cli/MavenExecutionRequestBuilder.java]. > Any objection I commit this in ASF ? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira