Use the maven-invoker-plugin. You could have a look at nearly any of the plugins at Apache Maven or Codehaus Mojo and see how it is used (if the plugin's docs isn't clear enough).
/Anders On Thu, Aug 11, 2011 at 11:47, Adrien Ruffie - Petals Link < [email protected]> wrote: > Hello, I need in my unit test (My customized mojo unit test) to run a "mvn > clean install" > > but I don't understand the mechanism, any one have a piece of code to do > this, please ? > > example: > > MavenProject pom = > maven.readProject( new File(**ComponentWithAdditionalResourc** > es.SRC_HOME, > "pom.xml")); > > pom.execute("clean install"); > > or something ? thank > > -- > Adrien Ruffié > - Ingénieur de recherches et développements > - Scrum Team member > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
