Repository: jclouds-karaf
Updated Branches:
  refs/heads/2.0.x 849afcdff -> 28c00c557


Added Maven profile to define the build toolchain


Project: http://git-wip-us.apache.org/repos/asf/jclouds-karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds-karaf/commit/28c00c55
Tree: http://git-wip-us.apache.org/repos/asf/jclouds-karaf/tree/28c00c55
Diff: http://git-wip-us.apache.org/repos/asf/jclouds-karaf/diff/28c00c55

Branch: refs/heads/2.0.x
Commit: 28c00c557b06613e51e0ebfe6fd8e6b93ed98529
Parents: 849afcd
Author: Ignasi Barrera <[email protected]>
Authored: Thu Nov 30 11:07:50 2017 +0100
Committer: Ignasi Barrera <[email protected]>
Committed: Thu Nov 30 11:27:19 2017 +0100

----------------------------------------------------------------------
 pom.xml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds-karaf/blob/28c00c55/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 830eb6c..dd1689d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -182,6 +182,7 @@ limitations under the License.
   </modules>
 
   <properties>
+    <jdk.version>1.7</jdk.version>
     <aopalliance.bundle.version>1.0_5</aopalliance.bundle.version>
     <bcprov.version>1.51</bcprov.version>
     <easymock.version>3.0</easymock.version>
@@ -598,4 +599,32 @@ limitations under the License.
     </repository>
   </repositories>
 
+  <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