You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by na...@apache.org on 2017/11/30 10:27:51 UTC

jclouds-cli git commit: Added Maven profile to define the build toolchain

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 <na...@apache.org>
Authored: Thu Nov 30 11:12:51 2017 +0100
Committer: Ignasi Barrera <na...@apache.org>
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>