From a54af3e7b27bc15d051064ba7990121ac7d27eea Mon Sep 17 00:00:00 2001 From: Dan Timoney Date: Wed, 6 Sep 2017 19:14:51 -0400 Subject: Fix resource-assignment dependencies Resource-assignment was not loading due to unresolved dependencies. This turned out to be due to a few issues, addressed by this change: - commons-lang had to be added as a bundle in features.xml - package name for DbLibService in spring config was wrong, preventing spring from initializing properly - DbLibService's package (org.onap.ccsdk.sli.core.dblib) was not detected properly by felix maven plugin and was missing from Import-Package in MANIFEST. Resolved by explicitly adding that package in felix plugin config in provider pom.xml Change-Id: I6ebb82ebae0e96b4ab9592e29f6a7a1d2276aa69 Issue-ID: CCSDK-79 Signed-off-by: Dan Timoney --- resource-assignment/features/src/main/resources/features.xml | 5 +++-- resource-assignment/installer/pom.xml | 2 ++ resource-assignment/provider/pom.xml | 4 +++- .../resources/META-INF/spring/resource-assignment-osgi-context.xml | 6 +++--- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/resource-assignment/features/src/main/resources/features.xml b/resource-assignment/features/src/main/resources/features.xml index d3362fba2..f4191293d 100644 --- a/resource-assignment/features/src/main/resources/features.xml +++ b/resource-assignment/features/src/main/resources/features.xml @@ -9,9 +9,9 @@ Licensed 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. @@ -35,6 +35,7 @@ spring-dm mvn:org.onap.ccsdk.sli.adaptors/resource-assignment-provider/${project.version} mvn:mysql/mysql-connector-java/${mysql.connector.version} + mvn:commons-lang/commons-lang/2.6 diff --git a/resource-assignment/installer/pom.xml b/resource-assignment/installer/pom.xml index 8915b8d6a..8367b03ff 100755 --- a/resource-assignment/installer/pom.xml +++ b/resource-assignment/installer/pom.xml @@ -15,6 +15,7 @@ sdnc-resource-assignment mvn:org.onap.ccsdk.sli.adaptors/resource-assignment-features/${project.version}/xml/features false + 2.6 @@ -39,6 +40,7 @@ ${project.version} + diff --git a/resource-assignment/provider/pom.xml b/resource-assignment/provider/pom.xml index 1b98c628a..89134284c 100755 --- a/resource-assignment/provider/pom.xml +++ b/resource-assignment/provider/pom.xml @@ -94,9 +94,11 @@ org.onap.ccsdk.sli.adaptors.ra org.onap.ccsdk.sli.adaptors.ra + true + --> + *,org.onap.ccsdk.sli.core.dblib diff --git a/resource-assignment/provider/src/main/resources/META-INF/spring/resource-assignment-osgi-context.xml b/resource-assignment/provider/src/main/resources/META-INF/spring/resource-assignment-osgi-context.xml index 7fe544378..be22d8766 100644 --- a/resource-assignment/provider/src/main/resources/META-INF/spring/resource-assignment-osgi-context.xml +++ b/resource-assignment/provider/src/main/resources/META-INF/spring/resource-assignment-osgi-context.xml @@ -9,9 +9,9 @@ Licensed 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. @@ -30,7 +30,7 @@ javax.sql.DataSource - org.onap.ccsdk.sli.adaptors.resource.dblib.DbLibService + org.onap.ccsdk.sli.core.dblib.DbLibService -- cgit 1.2.3-korg