From 6a20802640d702c41d342036634bde4cbc12b441 Mon Sep 17 00:00:00 2001 From: Hugo Trippaers Date: Mon, 22 Oct 2012 17:57:18 +0200 Subject: [PATCH] Fix runtime dependencies for vmware modules The vmware modules should be listed as provided so they are never packaged. However this also means that you have to put them in the web-inf/lib directory by hand. Set the version of the api in the central pom for easy reference. Add wsdl4j as a runtime requirement. It is actually required by the vmware implementation but it is easier to list it as a requirements for the component here as vmware is not in any maven repo put the dependency on vim back in the dependencies. It is not required for compile, but is required as runtime by apputils. --- deps/install-non-oss.sh | 1 + plugins/hypervisors/vmware/pom.xml | 27 +++++++++++++++++++++++---- pom.xml | 1 + vmware-base/pom.xml | 18 ++++++++++++++++-- 4 files changed, 41 insertions(+), 6 deletions(-) diff --git a/deps/install-non-oss.sh b/deps/install-non-oss.sh index 4b6869e0f21..28eb03e1562 100755 --- a/deps/install-non-oss.sh +++ b/deps/install-non-oss.sh @@ -28,3 +28,4 @@ mvn install:install-file -Dfile=manageontap.jar -DgroupId=com.cloud.com.netapp # Version: 4.1, Release-date: 2010-07-13, Build: 257238 mvn install:install-file -Dfile=vim25.jar -DgroupId=com.cloud.com.vmware -DartifactId=vmware-vim25 -Dversion=4.1 -Dpackaging=jar mvn install:install-file -Dfile=apputils.jar -DgroupId=com.cloud.com.vmware -DartifactId=vmware-apputils -Dversion=4.1 -Dpackaging=jar +mvn install:install-file -Dfile=vim.jar -DgroupId=com.cloud.com.vmware -DartifactId=vmware-vim -Dversion=4.1 -Dpackaging=jar diff --git a/plugins/hypervisors/vmware/pom.xml b/plugins/hypervisors/vmware/pom.xml index 00cccf49f3f..20ab9ab6d7b 100644 --- a/plugins/hypervisors/vmware/pom.xml +++ b/plugins/hypervisors/vmware/pom.xml @@ -35,19 +35,38 @@ com.cloud.com.vmware vmware-vim25 - 4.1 - compile + ${cs.vmware.api.version} + provided + + + com.cloud.com.vmware + vmware-vim + ${cs.vmware.api.version} + provided com.cloud.com.vmware vmware-apputils - 4.1 - compile + ${cs.vmware.api.version} + provided + + + org.apache.axis + axis + ${cs.axis.version} + runtime org.apache.axis axis-jaxrpc ${cs.axis.version} + runtime + + + wsdl4j + wsdl4j + 1.4 + runtime diff --git a/pom.xml b/pom.xml index f1a21bbe6ec..12b40674905 100644 --- a/pom.xml +++ b/pom.xml @@ -80,6 +80,7 @@ 2.4 1.2 1.0-20081010.060147 + 4.1 true diff --git a/vmware-base/pom.xml b/vmware-base/pom.xml index 6c304af04e4..9721bbeaef9 100644 --- a/vmware-base/pom.xml +++ b/vmware-base/pom.xml @@ -40,24 +40,38 @@ com.cloud.com.vmware vmware-vim25 - 4.1 + ${cs.vmware.api.version} + provided + + + com.cloud.com.vmware + vmware-vim + ${cs.vmware.api.version} provided com.cloud.com.vmware vmware-apputils - 4.1 + ${cs.vmware.api.version} provided org.apache.axis axis ${cs.axis.version} + runtime org.apache.axis axis-jaxrpc ${cs.axis.version} + runtime + + + wsdl4j + wsdl4j + 1.4 + runtime