ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1825633 - /webservices/wss4j/branches/2_1_x-fixes/pom.xml
Date Thu, 01 Mar 2018 09:38:47 GMT
Author: coheigea
Date: Thu Mar  1 09:38:47 2018
New Revision: 1825633

URL: http://svn.apache.org/viewvc?rev=1825633&view=rev
Log:
Adding toolchain support to fix Jenkins builds

Modified:
    webservices/wss4j/branches/2_1_x-fixes/pom.xml

Modified: webservices/wss4j/branches/2_1_x-fixes/pom.xml
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/2_1_x-fixes/pom.xml?rev=1825633&r1=1825632&r2=1825633&view=diff
==============================================================================
--- webservices/wss4j/branches/2_1_x-fixes/pom.xml (original)
+++ webservices/wss4j/branches/2_1_x-fixes/pom.xml Thu Mar  1 09:38:47 2018
@@ -334,6 +334,11 @@
                     <artifactId>maven-site-plugin</artifactId>
                     <version>3.6</version>
                 </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-toolchains-plugin</artifactId>
+                    <version>1.1</version>
+                </plugin>
             </plugins>
         </pluginManagement>
 
@@ -432,7 +437,36 @@
                 <buildtools.dir>${basedir}/../../build-tools</buildtools.dir>
             </properties>
         </profile>
-
+        <profile>
+            <id>toolchain</id>
+            <activation>
+                <property>
+                    <name>env.BUILD_NUMBER</name>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-toolchains-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <goals>
+                                    <goal>toolchain</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                        <configuration>
+                            <toolchains>
+                                <jdk>
+                                    <version>${targetJdk}</version>
+                                </jdk>
+                            </toolchains>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
     </profiles>
 
     <reporting>



Mime
View raw message