I have not been able to make it work with profiles.
Using the following configuration
<profiles>
<profile>
<id>release</id>
<activation>
<property>
<name>build</name>
<value>release</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<version>2.1-alpha-4</version>
<configuration>
<release>testing</release>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
Running
mvn -Dbuild=release release:prepare
The rpm are still X.X.X-1 and not X.X.X-testing
Seems I have to commit a release tag in the configuration before making a
release, and after remove it and commit change.
--
View this message in context:
http://mojo.10943.n7.nabble.com/Fix-or-override-for-MRPM-142-tp44422p44638.html
Sent from the User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email