Repository: jclouds-cli
Updated Branches:
  refs/heads/2.0.x cfddca0eb -> 1a7319790


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/1a731979
Tree: http://git-wip-us.apache.org/repos/asf/jclouds-cli/tree/1a731979
Diff: http://git-wip-us.apache.org/repos/asf/jclouds-cli/diff/1a731979

Branch: refs/heads/2.0.x
Commit: 1a7319790ff5b0b1344f9e276d1637f388dc0c2d
Parents: cfddca0
Author: Ignasi Barrera <[email protected]>
Authored: Thu Nov 30 11:12:51 2017 +0100
Committer: Ignasi Barrera <[email protected]>
Committed: Thu Nov 30 11:28:30 2017 +0100

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


http://git-wip-us.apache.org/repos/asf/jclouds-cli/blob/1a731979/project/pom.xml
----------------------------------------------------------------------
diff --git a/project/pom.xml b/project/pom.xml
index df4155b..be8a1f6 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>2.3.11</karaf.version>
     <pax.url.version>1.3.7</pax.url.version>
@@ -242,4 +243,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