Repository: jclouds-karaf
Updated Branches:
  refs/heads/master 0f0450120 -> 5c3065518


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

Branch: refs/heads/master
Commit: 5c306551851e957300479d59d1d1953a6e273c9d
Parents: 0f04501
Author: Ignasi Barrera <[email protected]>
Authored: Thu Nov 30 11:07:50 2017 +0100
Committer: Ignasi Barrera <[email protected]>
Committed: Thu Nov 30 11:09:32 2017 +0100

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


http://git-wip-us.apache.org/repos/asf/jclouds-karaf/blob/5c306551/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 58a7375..38b094c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -183,6 +183,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>
@@ -600,4 +601,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