You can create a separate pom that only includes the your 5 modules to build, don't use the parent pom to do the reactor build.
-----Original Message----- From: Brian Fox [mailto:[email protected]] Sent: Wednesday, September 30, 2009 10:31 PM To: Maven Users List Subject: Re: Reactor - skip parent project build You can't. The parent will always run first in a reactor before anything that inherits from it. On Wed, Sep 30, 2009 at 6:03 PM, droidin.net <[email protected]> wrote: > > I have a parent POM which defines 5 modules (5 subprojects). Since each > module is executed in exactly the same way I pull <profile><build> section > into the parent POM to get rid of the duplicate code. Now - if I execute > build individually from each module it works, however if I want to build all > modules at once and move to the parent directory I got error since the very > first thing Maven tries to execute is the parent project itself: > >>mvn package -P release > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] DWD Parent project > [INFO] Projects > > After that build fails because exec plugin tries to execute something that > is not there. Looking at the output it is pretty obvious that reactor plugin > is driving the build but how can I configure reactor to skip the parent? > -- > View this message in context: > http://www.nabble.com/Reactor---skip-parent-project-build-tp25691730p25691730.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
