From 8a3f1ea2bee98d30c74317fd31f83b6ea3ec4734 Mon Sep 17 00:00:00 2001 From: Dan Timoney Date: Fri, 16 Feb 2018 17:12:41 -0500 Subject: Nitrogen port : mdsal/sql Update mdsal-resource and sql-resource to support ODL Nitrogen Change-Id: Id7f7ac2da0de9d034e052ee16ef9c2a765a056bf Issue-ID: CCSDK-176 Signed-off-by: Dan Timoney --- .../features/ccsdk-mdsal-resource/pom.xml | 48 ++++ .../features/features-mdsal-resource/pom.xml | 30 +++ mdsal-resource/features/pom.xml | 137 ++--------- .../features/src/main/resources/features.xml | 38 --- mdsal-resource/installer/pom.xml | 30 +-- .../src/main/resources/scripts/install-feature.sh | 9 +- mdsal-resource/pom.xml | 49 ++-- mdsal-resource/provider/pom.xml | 82 ++----- .../features/ccsdk-resource-assignment/pom.xml | 78 +++++++ .../features/features-resource-assignment/pom.xml | 30 +++ resource-assignment/features/pom.xml | 140 ++--------- .../features/src/main/resources/features.xml | 41 ---- resource-assignment/installer/pom.xml | 44 ++-- .../src/main/resources/scripts/install-feature.sh | 9 +- resource-assignment/pom.xml | 46 ++-- resource-assignment/provider/pom.xml | 49 ++-- sql-resource/features/ccsdk-sql-resource/pom.xml | 54 +++++ .../features/features-sql-resource/pom.xml | 30 +++ sql-resource/features/pom.xml | 152 ++---------- sql-resource/installer/pom.xml | 258 +++++++++++---------- .../src/main/resources/scripts/install-feature.sh | 9 +- sql-resource/pom.xml | 55 ++--- sql-resource/provider/pom.xml | 161 +++++-------- 23 files changed, 650 insertions(+), 929 deletions(-) create mode 100644 mdsal-resource/features/ccsdk-mdsal-resource/pom.xml create mode 100755 mdsal-resource/features/features-mdsal-resource/pom.xml delete mode 100644 mdsal-resource/features/src/main/resources/features.xml create mode 100644 resource-assignment/features/ccsdk-resource-assignment/pom.xml create mode 100755 resource-assignment/features/features-resource-assignment/pom.xml delete mode 100644 resource-assignment/features/src/main/resources/features.xml create mode 100644 sql-resource/features/ccsdk-sql-resource/pom.xml create mode 100755 sql-resource/features/features-sql-resource/pom.xml diff --git a/mdsal-resource/features/ccsdk-mdsal-resource/pom.xml b/mdsal-resource/features/ccsdk-mdsal-resource/pom.xml new file mode 100644 index 00000000..6869f16c --- /dev/null +++ b/mdsal-resource/features/ccsdk-mdsal-resource/pom.xml @@ -0,0 +1,48 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + single-feature-parent + 1.0.1-SNAPSHOT + + + + org.onap.ccsdk.sli.adaptors + ccsdk-mdsal-resource + 0.2.1-SNAPSHOT + feature + + ccsdk-sli-adaptors :: mdsal-resource :: ${project.artifactId} + + + + org.opendaylight.controller + odl-mdsal-broker + xml + features + + + + org.onap.ccsdk.sli.core + ccsdk-sli + ${project.version} + xml + features + + + + ${project.groupId} + mdsal-resource-provider + ${project.version} + + + + equinoxSDK381 + org.eclipse.osgi + provided + + + diff --git a/mdsal-resource/features/features-mdsal-resource/pom.xml b/mdsal-resource/features/features-mdsal-resource/pom.xml new file mode 100755 index 00000000..da7b67d9 --- /dev/null +++ b/mdsal-resource/features/features-mdsal-resource/pom.xml @@ -0,0 +1,30 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + feature-repo-parent + 1.0.1-SNAPSHOT + + + + org.onap.ccsdk.sli.adaptors + features-mdsal-resource + 0.2.1-SNAPSHOT + feature + + ccsdk-sli-adaptors :: mdsal-resource :: ${project.artifactId} + + + + ${project.groupId} + ccsdk-mdsal-resource + ${project.version} + xml + features + + + + diff --git a/mdsal-resource/features/pom.xml b/mdsal-resource/features/pom.xml index 478ef057..f46897ba 100755 --- a/mdsal-resource/features/pom.xml +++ b/mdsal-resource/features/pom.xml @@ -1,134 +1,23 @@ - + 4.0.0 + - mdsal-resource org.onap.ccsdk.sli.adaptors + mdsal-resource 0.2.0-SNAPSHOT - mdsal-resource-features - MD-SAL Resource Adaptor - Features - - jar - - - - - - org.onap.ccsdk.sli.adaptors - mdsal-resource-provider - ${project.version} - - - commons-lang - commons-lang - 2.6 - compile - - - - org.opendaylight.mdsal - features-mdsal - ${odl.mdsal.features.version} - features - xml - - runtime - - - - - - org.opendaylight.odlparent - opendaylight-karaf-empty - ${odl.karaf.empty.distro.version} - zip - - - - - - org.opendaylight.odlparent - features-test - ${odl.commons.opendaylight.version} - test - - - - org.opendaylight.yangtools - features-yangtools - ${odl.yangtools.version} - features - xml - runtime - - + org.onap.ccsdk.sli.adaptors + mdsal-resource-features + 0.2.1-SNAPSHOT + pom - - - - true - src/main/resources - - - - - org.apache.maven.plugins - maven-resources-plugin - - - filter - - resources - - generate-resources - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - - attach-artifact - - package - - - - ${project.build.directory}/classes/${features.file} - xml - features - - - - - - - - + + ccsdk-mdsal-resource + features-mdsal-resource + diff --git a/mdsal-resource/features/src/main/resources/features.xml b/mdsal-resource/features/src/main/resources/features.xml deleted file mode 100644 index 5a2bae1b..00000000 --- a/mdsal-resource/features/src/main/resources/features.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - mvn:org.opendaylight.mdsal/features-mdsal/${odl.mdsal.features.version}/xml/features - - - - - odl-mdsal-broker - sdnc-sli - mvn:org.onap.ccsdk.sli.adaptors/mdsal-resource-provider/${project.version} - - - diff --git a/mdsal-resource/installer/pom.xml b/mdsal-resource/installer/pom.xml index 9f4027b0..93449226 100755 --- a/mdsal-resource/installer/pom.xml +++ b/mdsal-resource/installer/pom.xml @@ -1,19 +1,25 @@ - + 4.0.0 + - mdsal-resource - org.onap.ccsdk.sli.adaptors - 0.2.0-SNAPSHOT + org.onap.ccsdk.parent + odlparent-lite + 1.0.1-SNAPSHOT + + org.onap.ccsdk.sli.adaptors mdsal-resource-installer - MDSAL Resource - Karaf Installer + 0.2.1-SNAPSHOT pom + ccsdk-sli-adaptors :: mdsal-resource :: ${project.artifactId} + - sdnc-mdsal-resource - sdnc-mdsal-resource - mvn:org.onap.ccsdk.sli.adaptors/mdsal-resource-features/${project.version}/xml/features + ccsdk-mdsal-resource + ${application.name} + mvn:org.onap.ccsdk.sli.adaptors/${features.boot}/${project.version}/xml/features false @@ -21,10 +27,10 @@ org.onap.ccsdk.sli.adaptors - mdsal-resource-features + ccsdk-mdsal-resource ${project.version} - features xml + features * @@ -98,8 +104,7 @@ true false false - org.onap.ccsdk - sli-common,sli-provider,dblib-provider + org.onap.ccsdk.sli.adaptors provided @@ -134,5 +139,4 @@ - diff --git a/mdsal-resource/installer/src/main/resources/scripts/install-feature.sh b/mdsal-resource/installer/src/main/resources/scripts/install-feature.sh index df03392c..0eab001d 100644 --- a/mdsal-resource/installer/src/main/resources/scripts/install-feature.sh +++ b/mdsal-resource/installer/src/main/resources/scripts/install-feature.sh @@ -10,9 +10,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. @@ -23,7 +23,6 @@ ODL_HOME=${ODL_HOME:-/opt/opendaylight/current} ODL_KARAF_CLIENT=${ODL_KARAF_CLIENT:-${ODL_HOME}/bin/client} -ODL_KARAF_CLIENT_OPTS=${ODL_KARAF_CLIENT_OPTS:-"-u karaf"} INSTALLERDIR=$(dirname $0) REPOZIP=${INSTALLERDIR}/${features.boot}-${project.version}.zip @@ -36,5 +35,5 @@ else exit 1 fi -${ODL_KARAF_CLIENT} ${ODL_KARAF_CLIENT_OPTS} feature:repo-add ${features.repositories} -${ODL_KARAF_CLIENT} ${ODL_KARAF_CLIENT_OPTS} feature:install ${features.boot} +${ODL_KARAF_CLIENT} feature:repo-add ${features.repositories} +${ODL_KARAF_CLIENT} feature:install ${features.boot} diff --git a/mdsal-resource/pom.xml b/mdsal-resource/pom.xml index 5d434668..e823df28 100755 --- a/mdsal-resource/pom.xml +++ b/mdsal-resource/pom.xml @@ -1,46 +1,27 @@ - + + 4.0.0 + - org.onap.ccsdk.sli.adaptors - ccsdk-sli-adaptors - 0.2.0-SNAPSHOT + org.onap.ccsdk.parent + odlparent-lite + 1.0.1-SNAPSHOT - 4.0.0 - pom org.onap.ccsdk.sli.adaptors mdsal-resource + 0.2.1-SNAPSHOT + pom - - MD-SAL Resource Adaptor + ccsdk-sli-adaptors :: mdsal-resource The MD-SAL resource adaptor allows service logic to access persistent data from MD-SAL config and operational trees - 0.2.0-SNAPSHOT - - - - - - org.onap.ccsdk.sli.adaptors - mdsal-resource-features - features - xml - ${project.version} - - - - org.onap.ccsdk.sli.adaptors - mdsal-resource-provider - ${project.version} - - - + + provider + features + installer + - - - provider - features - installer - diff --git a/mdsal-resource/provider/pom.xml b/mdsal-resource/provider/pom.xml index 0e158ebd..b690b6f2 100755 --- a/mdsal-resource/provider/pom.xml +++ b/mdsal-resource/provider/pom.xml @@ -1,18 +1,26 @@ - + 4.0.0 + - org.onap.ccsdk.sli.adaptors - mdsal-resource - 0.2.0-SNAPSHOT + org.onap.ccsdk.parent + binding-parent + 1.0.1-SNAPSHOT + + org.onap.ccsdk.sli.adaptors mdsal-resource-provider + 0.2.1-SNAPSHOT bundle - MD-SAL Resource Adaptor - Provider + + ccsdk-sli-adaptors :: mdsal-resource :: ${project.artifactId} http://maven.apache.org + UTF-8 + @@ -36,7 +44,6 @@ equinoxSDK381 org.eclipse.osgi - ${equinox.osgi.version} org.slf4j @@ -67,67 +74,4 @@ - - - - - org.apache.felix - maven-bundle-plugin - ${bundle.plugin.version} - true - - - org.onap.ccsdk.sli.adaptors.resource.mdsal - org.onap.ccsdk.sli.adaptors.resource.mdsal.MdsalResourceActivator - org.onap.ccsdk.sli.adaptors.resource.mdsal - org.onap.ccsdk.sli.adaptors.*,org.osgi.framework.*,org.slf4j.*,com.mysql.jdbc.* - - * - true - - - - - - - - - - - - - - org.eclipse.m2e - lifecycle-mapping - 1.0.0 - - - - - - - com.brocade.developer - - - providermodule-plugin - - - [1.2.0.100-SNAPSHOT,) - - - process - - - - - - - - - - - - - diff --git a/resource-assignment/features/ccsdk-resource-assignment/pom.xml b/resource-assignment/features/ccsdk-resource-assignment/pom.xml new file mode 100644 index 00000000..c50cf3ca --- /dev/null +++ b/resource-assignment/features/ccsdk-resource-assignment/pom.xml @@ -0,0 +1,78 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + single-feature-parent + 1.0.1-SNAPSHOT + + + + org.onap.ccsdk.sli.adaptors + ccsdk-resource-assignment + 0.2.1-SNAPSHOT + feature + + ccsdk-sli-adaptors :: resource-assignment :: ${project.artifactId} + + + + org.opendaylight.controller + odl-mdsal-broker + xml + features + + + + org.onap.ccsdk.sli.core + ccsdk-sli + ${project.version} + xml + features + + + + org.onap.ccsdk.sli.core + ccsdk-dblib + ${project.version} + xml + features + + + + ${project.groupId} + resource-assignment-provider + ${project.version} + + + + org.mariadb.jdbc + mariadb-java-client + ${mariadb.connector.version} + jar + runtime + + + org.springframework + spring-beans + ${spring.version} + + + org.springframework + spring-context + ${spring.version} + + + org.springframework + spring-jdbc + ${spring.version} + + + equinoxSDK381 + org.eclipse.osgi + provided + + + diff --git a/resource-assignment/features/features-resource-assignment/pom.xml b/resource-assignment/features/features-resource-assignment/pom.xml new file mode 100755 index 00000000..1eace060 --- /dev/null +++ b/resource-assignment/features/features-resource-assignment/pom.xml @@ -0,0 +1,30 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + feature-repo-parent + 1.0.1-SNAPSHOT + + + + org.onap.ccsdk.sli.adaptors + features-resource-assignment + 0.2.1-SNAPSHOT + feature + + ccsdk-sli-adaptors :: resource-assignment :: ${project.artifactId} + + + + ${project.groupId} + ccsdk-resource-assignment + ${project.version} + xml + features + + + + diff --git a/resource-assignment/features/pom.xml b/resource-assignment/features/pom.xml index 584f1ca5..530a5bfe 100755 --- a/resource-assignment/features/pom.xml +++ b/resource-assignment/features/pom.xml @@ -1,133 +1,23 @@ - + 4.0.0 + - resource-assignment - org.onap.ccsdk.sli.adaptors - 0.2.0-SNAPSHOT + org.onap.ccsdk.parent + odlparent-lite + 1.0.1-SNAPSHOT - resource-assignment-features - Resource Assignment Adaptor - Features - - jar - - - - - - org.onap.ccsdk.sli.adaptors - resource-assignment-provider - ${project.version} - - - - commons-lang - commons-lang - 2.6 - compile - - - org.opendaylight.mdsal - features-mdsal - ${odl.mdsal.features.version} - features - xml - - runtime - - - - - - org.opendaylight.odlparent - opendaylight-karaf-empty - ${odl.karaf.empty.distro.version} - zip - - - - - org.opendaylight.odlparent - features-test - ${odl.commons.opendaylight.version} - test - - - - org.opendaylight.yangtools - features-yangtools - ${odl.yangtools.version} - features - xml - runtime - - + org.onap.ccsdk.sli.adaptors + resource-assignment-features + 0.2.1-SNAPSHOT + pom - - - - true - src/main/resources - - - - - org.apache.maven.plugins - maven-resources-plugin - - - filter - - resources - - generate-resources - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - - attach-artifact - - package - - - - ${project.build.directory}/classes/${features.file} - xml - features - - - - - - - - + + ccsdk-resource-assignment + features-resource-assignment + diff --git a/resource-assignment/features/src/main/resources/features.xml b/resource-assignment/features/src/main/resources/features.xml deleted file mode 100644 index c9161a63..00000000 --- a/resource-assignment/features/src/main/resources/features.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - mvn:org.opendaylight.mdsal/features-mdsal/${odl.mdsal.features.version}/xml/features - - - sdnc-sli - sdnc-dblib - spring - spring-jdbc - spring-dm - mvn:org.onap.ccsdk.sli.adaptors/resource-assignment-provider/${project.version} - mvn:org.mariadb.jdbc/mariadb-java-client/${mariadb.connector.version} - mvn:commons-lang/commons-lang/2.6 - - - diff --git a/resource-assignment/installer/pom.xml b/resource-assignment/installer/pom.xml index e875e472..9b59cfff 100755 --- a/resource-assignment/installer/pom.xml +++ b/resource-assignment/installer/pom.xml @@ -1,31 +1,36 @@ - + 4.0.0 + - resource-assignment - org.onap.ccsdk.sli.adaptors - 0.2.0-SNAPSHOT + org.onap.ccsdk.parent + odlparent-lite + 1.0.1-SNAPSHOT + + org.onap.ccsdk.sli.adaptors resource-assignment-installer - Resource allocator- Karaf Installer + 0.2.1-SNAPSHOT pom + ccsdk-sli-adaptors :: resource-assignment :: ${project.artifactId} + - sdnc-resource-assignment - sdnc-resource-assignment - mvn:org.onap.ccsdk.sli.adaptors/resource-assignment-features/${project.version}/xml/features + ccsdk-resource-assignment + ${application.name} + mvn:org.onap.ccsdk.sli.adaptors/${features.boot}/${project.version}/xml/features false - 2.6 org.onap.ccsdk.sli.adaptors - resource-assignment-features + ccsdk-resource-assignment ${project.version} - features xml + features * @@ -40,7 +45,21 @@ ${project.version} - + + org.springframework + spring-beans + ${spring.version} + + + org.springframework + spring-context + ${spring.version} + + + org.springframework + spring-jdbc + ${spring.version} + @@ -136,5 +155,4 @@ - diff --git a/resource-assignment/installer/src/main/resources/scripts/install-feature.sh b/resource-assignment/installer/src/main/resources/scripts/install-feature.sh index 2aaab4df..b631cdca 100644 --- a/resource-assignment/installer/src/main/resources/scripts/install-feature.sh +++ b/resource-assignment/installer/src/main/resources/scripts/install-feature.sh @@ -10,9 +10,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. @@ -23,7 +23,6 @@ ODL_HOME=${ODL_HOME:-/opt/opendaylight/current} ODL_KARAF_CLIENT=${ODL_KARAF_CLIENT:-${ODL_HOME}/bin/client} -ODL_KARAF_CLIENT_OPTS=${ODL_KARAF_CLIENT_OPTS:-"-u karaf"} INSTALLERDIR=$(dirname $0) REPOZIP=${INSTALLERDIR}/${features.boot}-${project.version}.zip @@ -36,5 +35,5 @@ else exit 1 fi -${ODL_KARAF_CLIENT} ${ODL_KARAF_CLIENT_OPTS} feature:repo-add ${features.repositories} -${ODL_KARAF_CLIENT} ${ODL_KARAF_CLIENT_OPTS} feature:install ${features.boot} +${ODL_KARAF_CLIENT} feature:repo-add ${features.repositories} +${ODL_KARAF_CLIENT} feature:install ${features.boot} diff --git a/resource-assignment/pom.xml b/resource-assignment/pom.xml index 25a52579..299cb69c 100755 --- a/resource-assignment/pom.xml +++ b/resource-assignment/pom.xml @@ -1,43 +1,27 @@ - + + 4.0.0 + - org.onap.ccsdk.sli.adaptors - ccsdk-sli-adaptors - 0.2.0-SNAPSHOT + org.onap.ccsdk.parent + odlparent-lite + 1.0.1-SNAPSHOT - 4.0.0 - pom org.onap.ccsdk.sli.adaptors resource-assignment - 0.2.0-SNAPSHOT - + 0.2.1-SNAPSHOT + pom - Resource Assignment Adaptor + ccsdk-sli-adaptors :: resource-assignment The resource assignment adaptor allows service logic to check and allocate network capacity - - - - org.onap.ccsdk.sli.adaptors - resource-assignment-features - features - xml - ${project.version} - + + provider + features + installer + - - org.onap.ccsdk.sli.adaptors - resource-assignment-provider - ${project.version} - - - - - provider - features - installer - - diff --git a/resource-assignment/provider/pom.xml b/resource-assignment/provider/pom.xml index 309c2a6f..771ef029 100755 --- a/resource-assignment/provider/pom.xml +++ b/resource-assignment/provider/pom.xml @@ -1,24 +1,32 @@ - + 4.0.0 + - org.onap.ccsdk.sli.adaptors - resource-assignment - 0.2.0-SNAPSHOT + org.onap.ccsdk.parent + binding-parent + 1.0.1-SNAPSHOT + + org.onap.ccsdk.sli.adaptors resource-assignment-provider + 0.2.1-SNAPSHOT bundle - Resource Assignment Adaptor - Provider + + ccsdk-sli-adaptors :: resource-assignment :: ${project.artifactId} http://maven.apache.org + UTF-8 + junit junit - test ${junit.version} + test org.springframework @@ -55,11 +63,7 @@ slf4j-api ${slf4j.version} - - org.slf4j - jcl-over-slf4j - ${slf4j.version} - + org.mariadb.jdbc mariadb-java-client @@ -83,25 +87,6 @@ ${spring.version} - - - - org.apache.felix - maven-bundle-plugin - ${bundle.plugin.version} - true - - - org.onap.ccsdk.sli.adaptors.ra - org.onap.ccsdk.sli.adaptors.ra - - *,org.onap.ccsdk.sli.core.dblib - - - - - + + diff --git a/sql-resource/features/ccsdk-sql-resource/pom.xml b/sql-resource/features/ccsdk-sql-resource/pom.xml new file mode 100644 index 00000000..d547eb1d --- /dev/null +++ b/sql-resource/features/ccsdk-sql-resource/pom.xml @@ -0,0 +1,54 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + single-feature-parent + 1.0.1-SNAPSHOT + + + + org.onap.ccsdk.sli.adaptors + ccsdk-sql-resource + 0.2.1-SNAPSHOT + feature + + ccsdk-sli-adaptors :: sql-resource :: ${project.artifactId} + + + + org.opendaylight.controller + odl-mdsal-broker + xml + features + + + + org.onap.ccsdk.sli.core + ccsdk-sli + ${project.version} + xml + features + + + org.onap.ccsdk.sli.core + ccsdk-dblib + ${project.version} + xml + features + + + ${project.groupId} + sql-resource-provider + ${project.version} + + + + equinoxSDK381 + org.eclipse.osgi + provided + + + diff --git a/sql-resource/features/features-sql-resource/pom.xml b/sql-resource/features/features-sql-resource/pom.xml new file mode 100755 index 00000000..b39a96a0 --- /dev/null +++ b/sql-resource/features/features-sql-resource/pom.xml @@ -0,0 +1,30 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + feature-repo-parent + 1.0.1-SNAPSHOT + + + + org.onap.ccsdk.sli.adaptors + features-sql-resource + 0.2.1-SNAPSHOT + feature + + ccsdk-sli-adaptors :: sql-resource :: ${project.artifactId} + + + + ${project.groupId} + ccsdk-sql-resource + ${project.version} + xml + features + + + + diff --git a/sql-resource/features/pom.xml b/sql-resource/features/pom.xml index 499e3cb7..63234a78 100755 --- a/sql-resource/features/pom.xml +++ b/sql-resource/features/pom.xml @@ -1,134 +1,22 @@ - - 4.0.0 - - sql-resource - org.onap.ccsdk.sli.adaptors - 0.2.0-SNAPSHOT - - sql-resource-features - Sql Resource Adaptor - Features - - jar - - - - - - org.onap.ccsdk.sli.adaptors - sql-resource-provider - ${project.version} - - - - commons-lang - commons-lang - 2.6 - compile - - - - org.opendaylight.mdsal - features-mdsal - ${odl.mdsal.features.version} - features - xml - - runtime - - - - - - org.opendaylight.odlparent - opendaylight-karaf-empty - ${odl.karaf.empty.distro.version} - zip - - - - - - org.opendaylight.odlparent - features-test - ${odl.commons.opendaylight.version} - test - - - - org.opendaylight.yangtools - features-yangtools - ${odl.yangtools.version} - features - xml - runtime - - - - - - - true - src/main/resources - - - - - org.apache.maven.plugins - maven-resources-plugin - - - filter - - resources - - generate-resources - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - - attach-artifact - - package - - - - ${project.build.directory}/classes/${features.file} - xml - features - - - - - - - - + + 4.0.0 + + + org.onap.ccsdk.parent + odlparent-lite + 1.0.1-SNAPSHOT + + + org.onap.ccsdk.sli.adaptors + sql-resource-features + pom + + ccsdk-sli-adaptors :: sql-resource :: ${project.artifactId} + + + ccsdk-sql-resource + features-sql-resource + diff --git a/sql-resource/installer/pom.xml b/sql-resource/installer/pom.xml index 505cf409..9629ee43 100755 --- a/sql-resource/installer/pom.xml +++ b/sql-resource/installer/pom.xml @@ -1,138 +1,142 @@ - - 4.0.0 - - sql-resource - org.onap.ccsdk.sli.adaptors - 0.2.0-SNAPSHOT - - sql-resource-installer - SQL Resource - Karaf Installer - pom + + 4.0.0 - - sdnc-sql-resource - sdnc-sql-resource - mvn:org.onap.ccsdk.sli.adaptors/sql-resource-features/${project.version}/xml/features - false - + + org.onap.ccsdk.parent + odlparent-lite + 1.0.1-SNAPSHOT + - + org.onap.ccsdk.sli.adaptors + sql-resource-installer + 0.2.1-SNAPSHOT + pom - - org.onap.ccsdk.sli.adaptors - sql-resource-features - ${project.version} - features - xml - - - * - * - - - + ccsdk-sli-adaptors :: sql-resource :: ${project.artifactId} - - org.onap.ccsdk.sli.adaptors - sql-resource-provider - ${project.version} - + + ccsdk-sql-resource + ${application.name} + mvn:org.onap.ccsdk.sli.adaptors/${features.boot}/${project.version}/xml/features + false + - + - - - - maven-assembly-plugin - 2.6 - - - maven-repo-zip - - single - - package - - false - stage/${application.name}-${project.version} - - src/assembly/assemble_mvnrepo_zip.xml - - false - - - - installer-zip - - single - - package - - true - ${application.name}-${project.version}-installer - - src/assembly/assemble_installer_zip.xml - - false - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - copy-dependencies - - copy-dependencies - - prepare-package - - false - ${project.build.directory}/assembly/system - false - true - true - true - false - false - org.onap.ccsdk - sli-common,sli-provider,dblib-provider - provided - - - - - - maven-resources-plugin - 2.6 - - - copy-version - - copy-resources - - validate - - ${basedir}/target/stage - - - src/main/resources/scripts - - install-feature.sh - - true - - - - + + org.onap.ccsdk.sli.adaptors + ccsdk-sql-resource + ${project.version} + xml + features + + + * + * + + + - - + + org.onap.ccsdk.sli.adaptors + sql-resource-provider + ${project.version} + - - + + + + + maven-assembly-plugin + 2.6 + + + maven-repo-zip + + single + + package + + false + stage/${application.name}-${project.version} + + src/assembly/assemble_mvnrepo_zip.xml + + false + + + + installer-zip + + single + + package + + true + ${application.name}-${project.version}-installer + + src/assembly/assemble_installer_zip.xml + + false + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + copy-dependencies + + copy-dependencies + + prepare-package + + false + ${project.build.directory}/assembly/system + false + true + true + true + false + false + org.onap.ccsdk.sli.adaptor + provided + + + + + + maven-resources-plugin + 2.6 + + + copy-version + + copy-resources + + validate + + ${basedir}/target/stage + + + src/main/resources/scripts + + install-feature.sh + + true + + + + + + + + + + diff --git a/sql-resource/installer/src/main/resources/scripts/install-feature.sh b/sql-resource/installer/src/main/resources/scripts/install-feature.sh index e986764b..cee4a495 100644 --- a/sql-resource/installer/src/main/resources/scripts/install-feature.sh +++ b/sql-resource/installer/src/main/resources/scripts/install-feature.sh @@ -10,9 +10,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. @@ -23,7 +23,6 @@ ODL_HOME=${ODL_HOME:-/opt/opendaylight/current} ODL_KARAF_CLIENT=${ODL_KARAF_CLIENT:-${ODL_HOME}/bin/client} -ODL_KARAF_CLIENT_OPTS=${ODL_KARAF_CLIENT_OPTS:-"-u karaf"} INSTALLERDIR=$(dirname $0) REPOZIP=${INSTALLERDIR}/${features.boot}-${project.version}.zip @@ -36,5 +35,5 @@ else exit 1 fi -${ODL_KARAF_CLIENT} ${ODL_KARAF_CLIENT_OPTS} feature:repo-add ${features.repositories} -${ODL_KARAF_CLIENT} ${ODL_KARAF_CLIENT_OPTS} feature:install ${features.boot} +${ODL_KARAF_CLIENT} feature:repo-add ${features.repositories} +${ODL_KARAF_CLIENT} feature:install ${features.boot} diff --git a/sql-resource/pom.xml b/sql-resource/pom.xml index e660b566..cad83d18 100755 --- a/sql-resource/pom.xml +++ b/sql-resource/pom.xml @@ -1,43 +1,26 @@ - - - org.onap.ccsdk.sli.adaptors - ccsdk-sli-adaptors - 0.2.0-SNAPSHOT - + + 4.0.0 - 4.0.0 - pom - org.onap.ccsdk.sli.adaptors - sql-resource + + org.onap.ccsdk.parent + odlparent-lite + 1.0.1-SNAPSHOT + + org.onap.ccsdk.sli.adaptors + sql-resource + 0.2.1-SNAPSHOT + pom - Sql Resource Adaptor - The Sql resource adaptor allows service logic to read/write data from a local database using direct SQL statements + ccsdk-sli-adaptors :: sql-resource + The Sql resource adaptor allows service logic to read/write data from a local database using direct SQL statements - 0.2.0-SNAPSHOT + + provider + features + installer + - - - - org.onap.ccsdk.sli.adaptors - sql-resource-features - features - xml - ${project.version} - - - - org.onap.ccsdk.sli.adaptors - sql-resource-provider - ${project.version} - - - - - - provider - features - installer - diff --git a/sql-resource/provider/pom.xml b/sql-resource/provider/pom.xml index bcf6f0ff..7069cf30 100755 --- a/sql-resource/provider/pom.xml +++ b/sql-resource/provider/pom.xml @@ -1,111 +1,74 @@ - - 4.0.0 - - org.onap.ccsdk.sli.adaptors - sql-resource - 0.2.0-SNAPSHOT - - sql-resource-provider - bundle - Sql Resource Adaptor - Provider - http://maven.apache.org - - UTF-8 - - - - junit - junit - ${junit.version} - test - + + 4.0.0 + + + org.onap.ccsdk.parent + binding-parent + 1.0.1-SNAPSHOT + + + org.onap.ccsdk.sli.adaptors + sql-resource-provider + 0.2.1-SNAPSHOT + bundle + + ccsdk-sli-adaptors :: sql-resource :: ${project.artifactId} + http://maven.apache.org + + + UTF-8 + + + + + junit + junit + ${junit.version} + test + ch.vorburger.mariaDB4j mariaDB4j 2.2.3 test - - org.onap.ccsdk.sli.core - sli-common - ${sdnctl.sli.version} - compile - - - org.onap.ccsdk.sli.core - sli-provider - ${sdnctl.sli.version} - compile - - - equinoxSDK381 - org.eclipse.osgi - ${equinox.osgi.version} - - - org.slf4j - slf4j-api - ${slf4j.version} - - - org.slf4j - jcl-over-slf4j - ${slf4j.version} - - - org.slf4j - slf4j-simple - ${slf4j.version} - compile - - - org.onap.ccsdk.sli.core - dblib-provider - ${sdnctl.dblib.version} - - - - - - - - - - org.apache.felix - maven-bundle-plugin - ${bundle.plugin.version} - true - - - org.onap.ccsdk.sli.adaptors.resource.sql - org.onap.ccsdk.sli.adaptors.resource.sql.SqlResourceActivator - org.onap.ccsdk.sli.adaptors.resource.sql - * - * - - + + org.onap.ccsdk.sli.core + sli-common + ${sdnctl.sli.version} + compile + + + org.onap.ccsdk.sli.core + sli-provider + ${sdnctl.sli.version} + compile + + + equinoxSDK381 + org.eclipse.osgi + + + org.slf4j + slf4j-api + ${slf4j.version} + - + + org.slf4j + slf4j-simple + ${slf4j.version} + compile + + + org.onap.ccsdk.sli.core + dblib-provider + ${sdnctl.dblib.version} + - + - - -- cgit 1.2.3-korg