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]