Repository: jclouds-cli
Updated Branches:
  refs/heads/master 2e2d6d188 -> 63ac1fff1


Added Maven profile to define the build toolchain


Project: http://git-wip-us.apache.org/repos/asf/jclouds-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds-cli/commit/63ac1fff
Tree: http://git-wip-us.apache.org/repos/asf/jclouds-cli/tree/63ac1fff
Diff: http://git-wip-us.apache.org/repos/asf/jclouds-cli/diff/63ac1fff

Branch: refs/heads/master
Commit: 63ac1fff1badfbccfdd0751f4e7478f676adf56e
Parents: 2e2d6d1
Author: Ignasi Barrera <[email protected]>
Authored: Thu Nov 30 11:12:51 2017 +0100
Committer: Ignasi Barrera <[email protected]>
Committed: Thu Nov 30 11:12:51 2017 +0100

----------------------------------------------------------------------
 project/pom.xml | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds-cli/blob/63ac1fff/project/pom.xml
----------------------------------------------------------------------
diff --git a/project/pom.xml b/project/pom.xml
index 02991c9..6716642 100644
--- a/project/pom.xml
+++ b/project/pom.xml
@@ -65,6 +65,7 @@
   </developers>
 
   <properties>
+    <jdk.version>1.7</jdk.version>
     <!-- Karaf Version Dependencies -->
     <karaf.version>4.0.9</karaf.version>
     <pax.url.version>2.5.2</pax.url.version>
@@ -243,4 +244,33 @@
     </plugins>
   </build>
 
+  <profiles>
+    <profile>
+      <id>jenkins</id>
+      <build>
+        <plugins>
+         <!-- Make sure jclouds is built with the right JDK -->
+         <plugin>
+           <artifactId>maven-toolchains-plugin</artifactId>
+           <version>1.1</version>
+           <executions>
+             <execution>
+               <goals>
+                 <goal>toolchain</goal>
+               </goals>
+             </execution>
+           </executions>
+           <configuration>
+             <toolchains>
+                <jdk>
+                 <version>${jdk.version}</version>
+               </jdk>
+             </toolchains>
+           </configuration>
+         </plugin>
+       </plugins>
+      </build>
+    </profile>
+  </profiles>
+
 </project>

Reply via email to