I have a need to activate a profile during release: prepare.
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.1</version> <configuration> <arguments>-Prelease</arguments> <preparationGoals>clean validate</preparationGoals> <goals>test-compile</goals> </configuration> </plugin> </plugin> </build>
But when I run:
mvn release:prepare -DdryRun=true help:active-profiles
it never shows the profile release in the active list. and this does not appear in the list of active profiles when I do:
mvn release:perform help:active-profiles
I could not help using <releaseProfiles> because I want this profile to be used for both preparation and execution.
Thanks!
source share