You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Xavier D." <ma...@squarecirclegroup.com> on 2010/09/16 11:26:22 UTC

mvn 2.2.1: How to modify modules to build inside a custom plugin (apis to use)

Apologies if this is not the correct mailing list - I thought the developers
would be better suited to answering API questions.

I am implementing a mojo plugin that has a selection of modules to build
that were specified in a pom.xml.

How do I invoke a reactor to execute my List of modules filtered from the
original mavenProject.getModules() list ?

So far I have:
        MavenExecutionRequest request = mavenSession.getRequest();
        EventDispatcher dispatcher = session.getEventDispatcher()
        String event = MavenEvents.REACTOR_EXECUTION;
        dispatcher.dispatchStart( event, request.getBaseDirectory() );
// lifeCycleExecutor to execute?  // logging?

Or should I invoke the system command line version to execute "mvn deploy"
and assume logging will be chained correctly to the plugin's session?

Thanks in advance.