You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2015/12/20 21:30:52 UTC

svn commit: r1721062 - /axis/axis2/java/core/trunk/modules/parent/pom.xml

Author: veithen
Date: Sun Dec 20 20:30:52 2015
New Revision: 1721062

URL: http://svn.apache.org/viewvc?rev=1721062&view=rev
Log:
Require Java 7 for the build and check JRE compatibility using animal-sniffer-maven-plugin.

Modified:
    axis/axis2/java/core/trunk/modules/parent/pom.xml

Modified: axis/axis2/java/core/trunk/modules/parent/pom.xml
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/parent/pom.xml?rev=1721062&r1=1721061&r2=1721062&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/parent/pom.xml (original)
+++ axis/axis2/java/core/trunk/modules/parent/pom.xml Sun Dec 20 20:30:52 2015
@@ -965,20 +965,6 @@
 
     <profiles>
         <profile>
-            <id>java16</id>
-            <activation>
-                <jdk>1.6</jdk>
-            </activation>
-            <!-- JDK 1.6 build still use JAX-WS 2.1 because integrating Java endorsed 
-                 mechanism with Maven is bit of complex -->
-            <properties>
-                <jaxb.api.version>2.1</jaxb.api.version>
-                <jaxbri.version>2.1.7</jaxbri.version>
-                <jaxws.tools.version>2.1.3</jaxws.tools.version>
-                <jaxws.rt.version>2.1.3</jaxws.rt.version>
-            </properties>
-        </profile>
-        <profile>
             <id>apache-release</id>
             <build>
                 <plugins>
@@ -1144,6 +1130,10 @@
                         </goals>
                         <configuration>
                             <rules>
+                                <requireJavaVersion>
+                                    <!-- We require Java 7 for the build, but we enforce Java 5 compatibility using Animal Sniffer -->
+                                    <version>1.7.0</version>
+                                </requireJavaVersion>
                                 <requireNoRepositories>
                                     <message>The POM must not include repository definitions since non Apache repositories threaten the build stability.</message>
                                     <banRepositories>true</banRepositories>
@@ -1166,6 +1156,27 @@
                 </configuration>
             </plugin>
             <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>animal-sniffer-maven-plugin</artifactId>
+                <version>1.14</version>
+                <executions>
+                    <execution>
+                        <id>check</id>
+                        <phase>verify</phase>
+                        <goals>
+                            <goal>check</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+                    <signature>
+                        <groupId>org.codehaus.mojo.signature</groupId>
+                        <artifactId>java15</artifactId>
+                        <version>1.0</version>
+                    </signature>
+                </configuration>
+            </plugin>
+            <plugin>
                 <artifactId>maven-clean-plugin</artifactId>
                 <configuration>
                     <failOnError>false</failOnError>