From a196fbc8369d19c4f6615e74d382175dad27e23f Mon Sep 17 00:00:00 2001 From: Devdeep Singh Date: Mon, 4 Nov 2013 11:34:46 +0530 Subject: [PATCH] Application context files so that hyperv guru and discoverer can be loaded. Also made changes to hyperv pom.xml to make sure the resources are picked up at build time. --- client/pom.xml | 6 ----- plugins/hypervisors/hyperv/pom.xml | 3 +++ .../hyperv-compute/module.properties | 18 +++++++++++++ .../spring-hyperv-compute-context.xml | 24 ++++++++++++++++++ .../hyperv-discoverer/module.properties | 18 +++++++++++++ .../spring-hyperv-discoverer-context.xml | 25 +++++++++++++++++++ plugins/pom.xml | 11 -------- 7 files changed, 88 insertions(+), 17 deletions(-) create mode 100644 plugins/hypervisors/hyperv/resources/META-INF/cloudstack/hyperv-compute/module.properties create mode 100644 plugins/hypervisors/hyperv/resources/META-INF/cloudstack/hyperv-compute/spring-hyperv-compute-context.xml create mode 100644 plugins/hypervisors/hyperv/resources/META-INF/cloudstack/hyperv-discoverer/module.properties create mode 100644 plugins/hypervisors/hyperv/resources/META-INF/cloudstack/hyperv-discoverer/spring-hyperv-discoverer-context.xml diff --git a/client/pom.xml b/client/pom.xml index 6c2ecb940e4..54cb667514b 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -160,12 +160,6 @@ org.apache.cloudstack cloud-plugin-hypervisor-hyperv ${project.version} - - - org.mortbay.jetty - servlet-api - - org.apache.cloudstack diff --git a/plugins/hypervisors/hyperv/pom.xml b/plugins/hypervisors/hyperv/pom.xml index 042d3aa1699..19aa28a10fa 100644 --- a/plugins/hypervisors/hyperv/pom.xml +++ b/plugins/hypervisors/hyperv/pom.xml @@ -59,6 +59,9 @@ src test + + resources + conf diff --git a/plugins/hypervisors/hyperv/resources/META-INF/cloudstack/hyperv-compute/module.properties b/plugins/hypervisors/hyperv/resources/META-INF/cloudstack/hyperv-compute/module.properties new file mode 100644 index 00000000000..439b7d503a3 --- /dev/null +++ b/plugins/hypervisors/hyperv/resources/META-INF/cloudstack/hyperv-compute/module.properties @@ -0,0 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +name=hyperv-compute +parent=compute \ No newline at end of file diff --git a/plugins/hypervisors/hyperv/resources/META-INF/cloudstack/hyperv-compute/spring-hyperv-compute-context.xml b/plugins/hypervisors/hyperv/resources/META-INF/cloudstack/hyperv-compute/spring-hyperv-compute-context.xml new file mode 100644 index 00000000000..63521618df5 --- /dev/null +++ b/plugins/hypervisors/hyperv/resources/META-INF/cloudstack/hyperv-compute/spring-hyperv-compute-context.xml @@ -0,0 +1,24 @@ + + + + + + + + diff --git a/plugins/hypervisors/hyperv/resources/META-INF/cloudstack/hyperv-discoverer/module.properties b/plugins/hypervisors/hyperv/resources/META-INF/cloudstack/hyperv-discoverer/module.properties new file mode 100644 index 00000000000..be51dd6f1d6 --- /dev/null +++ b/plugins/hypervisors/hyperv/resources/META-INF/cloudstack/hyperv-discoverer/module.properties @@ -0,0 +1,18 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +name=hyperv-discoverer +parent=discoverer \ No newline at end of file diff --git a/plugins/hypervisors/hyperv/resources/META-INF/cloudstack/hyperv-discoverer/spring-hyperv-discoverer-context.xml b/plugins/hypervisors/hyperv/resources/META-INF/cloudstack/hyperv-discoverer/spring-hyperv-discoverer-context.xml new file mode 100644 index 00000000000..ee394f08877 --- /dev/null +++ b/plugins/hypervisors/hyperv/resources/META-INF/cloudstack/hyperv-discoverer/spring-hyperv-discoverer-context.xml @@ -0,0 +1,25 @@ + + + + + + + + diff --git a/plugins/pom.xml b/plugins/pom.xml index a7077196de2..4f193bcde0c 100755 --- a/plugins/pom.xml +++ b/plugins/pom.xml @@ -120,17 +120,6 @@ hypervisors/kvm - - hyperV - - - hyperV - - - - hypervisors/hyperv - - f5