The DefaultReleaseManager is a part of the maven-release-manager, if you look at the code in prepare(), you'll notice that it does not take preparationGoals from anything other than the root project into account. If you are looking at DefaultReleaseManager.java from the 2.0 branch the relevant line numbers are 203 and 199.
So the answer is no, you can't customize in a submodule. I'm sure, with some effort you might be able to hack something into the ReleasePhase logic, but there's no point. Just configure the root project with "clean install". Tim On Thu, Apr 15, 2010 at 4:28 AM, Raphael Ackermann <[email protected]> wrote: > if I have a project structure like below: > > project-root > + --- project-a > + --- project-b > + --- project-c > > and in project-root I have > > <plugin> > <artifactId>maven-release-plugin</artifactId> > </plugin> > > and in project-b I have > > <plugin> > <artifactId>maven-release-plugin</artifactId> > <configuration> > <preparationGoals>clean install</preparationGoals> > </configuration> > </plugin> > > when I run mvn release:prepare (mvn 2.2.1) in the project-root directory > I see > [INFO] [INFO] Building project-b > [INFO] [INFO] task-segment: [clean, verify] > > and the build fails because project-c needs an artifact that gets > generated in project-b's install phase. > > If I change the setup and add the configuration of the clean install > preparation goals into the parent pom project-root > > <plugin> > <artifactId>maven-release-plugin</artifactId> > <configuration> > <preparationGoals>clean install</preparationGoals> > </configuration> > </plugin> > > I can see the following output: > > [INFO] [INFO] Building project-b > [INFO] [INFO] task-segment: [clean, install] > > and the project builds successfully. > > I would like to only build one child module with clean install to save time. > > Does the release plugin ignore all configuration in child modules and > only uses the configuration from the module where it is run from? Or > do I need to add some other configuration? > > Raphael > > --------------------------------------------------------------------- > 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]
