You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ro...@apache.org on 2013/10/07 00:03:31 UTC
svn commit: r1529703 - /qpid/trunk/qpid/java/pom.xml
Author: robbie
Date: Sun Oct 6 22:03:30 2013
New Revision: 1529703
URL: http://svn.apache.org/r1529703
Log:
QPID-5048: use enforcer plugin to require Maven 3 and ensure the profile property contains a vallid supported test profile value
Modified:
qpid/trunk/qpid/java/pom.xml
Modified: qpid/trunk/qpid/java/pom.xml
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/pom.xml?rev=1529703&r1=1529702&r2=1529703&view=diff
==============================================================================
--- qpid/trunk/qpid/java/pom.xml (original)
+++ qpid/trunk/qpid/java/pom.xml Sun Oct 6 22:03:30 2013
@@ -35,8 +35,6 @@
- Decide on name for this parent module.
- Fix the version numbers in all the modules.
- Remove groupid from all the modules, if possible?
- - Add enforcer check for maven versions.
- - Add enforcer check for test profile property values, if possible?
- Align the XML in the pom files consistently, fix whitepsace errors.
- Complete setting properties for the dependency version numbers.
- Use dependancy management sections to control the version numbers.
@@ -100,6 +98,10 @@
<java.source>1.6</java.source>
<java.target>1.6</java.target>
+ <!-- enforcer plugin config properties -->
+ <supported-maven-version-range>[3.0.0,)</supported-maven-version-range>
+ <supported-test-profiles-regex>(java-mms.0-9-1|java-mms.0-10)</supported-test-profiles-regex>
+
<!-- test properties -->
<qpid.home>${basedir}</qpid.home> <!-- override for broker tests -->
<qpid.home.qbtc.output>${qpid.home}/target/qbtc-output</qpid.home.qbtc.output> <!-- override for broker tests -->
@@ -450,6 +452,34 @@
</systemPropertyVariables>
</configuration>
</plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <!--version specified in pluginManagement -->
+ <executions>
+ <execution>
+ <id>enforce-versions-standard-properties</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireMavenVersion>
+ <version>${supported-maven-version-range}</version>
+ </requireMavenVersion>
+ <requireProperty>
+ <property>profile</property>
+ <message>You must set a test profile!</message>
+ <regex>${supported-test-profiles-regex}</regex>
+ <regexMessage>You have set an unsupported test profile! Allowed values match: ${supported-test-profiles-regex}</regexMessage>
+ </requireProperty>
+ </rules>
+ <fail>true</fail>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org