From c9b19bb98a7dd857522524b40227bb6ef74b4dec Mon Sep 17 00:00:00 2001 From: "Timoney, Dan (dt5972)" Date: Tue, 17 Jul 2018 11:23:42 -0400 Subject: Add feature aggregator for sdnc-northbound Add feature aggregator sdnc-northbound-all to install all features from SDNC northbound repo. Change-Id: Ibe74a5d1880fb3c62d535a7367327a1bef610c19 Issue-ID: SDNC-393 Signed-off-by: Timoney, Dan (dt5972) --- features/features-sdnc-northbound/pom.xml | 29 +++++ features/installer/pom.xml | 137 +++++++++++++++++++++ .../src/assembly/assemble_installer_zip.xml | 39 ++++++ .../src/assembly/assemble_mvnrepo_zip.xml | 29 +++++ .../src/main/resources/scripts/install-feature.sh | 18 +++ features/pom.xml | 24 ++++ features/sdnc-northbound-all/pom.xml | 64 ++++++++++ 7 files changed, 340 insertions(+) create mode 100644 features/features-sdnc-northbound/pom.xml create mode 100755 features/installer/pom.xml create mode 100755 features/installer/src/assembly/assemble_installer_zip.xml create mode 100755 features/installer/src/assembly/assemble_mvnrepo_zip.xml create mode 100644 features/installer/src/main/resources/scripts/install-feature.sh create mode 100755 features/pom.xml create mode 100644 features/sdnc-northbound-all/pom.xml (limited to 'features') diff --git a/features/features-sdnc-northbound/pom.xml b/features/features-sdnc-northbound/pom.xml new file mode 100644 index 00000000..abf98b72 --- /dev/null +++ b/features/features-sdnc-northbound/pom.xml @@ -0,0 +1,29 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + feature-repo-parent + 1.1.0-SNAPSHOT + + + + org.onap.sdnc.northbound + features-sdnc-northbound + 1.4.0-SNAPSHOT + feature + + sdnc-northbound :: features :: ${project.artifactId} + + + + ${project.groupId} + sdnc-northbound-all + ${project.version} + xml + features + + + + diff --git a/features/installer/pom.xml b/features/installer/pom.xml new file mode 100755 index 00000000..7e447e6b --- /dev/null +++ b/features/installer/pom.xml @@ -0,0 +1,137 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + odlparent-lite + 1.1.0-SNAPSHOT + + + + org.onap.sdnc.northbound + sdnc-northbound-features-installer + 1.4.0-SNAPSHOT + pom + + sdnc-northbound :: features :: ${project.artifactId} + + + sdnc-northbound-all + ${application.name} + mvn:org.onap.sdnc.northbound/${features.boot}/${project.version}/xml/features + false + + + + + + org.onap.sdnc.northbound + ${application.name} + ${project.version} + xml + features + + + * + * + + + + + + + + + + + maven-assembly-plugin + + + maven-repo-zip + + single + + package + + true + stage/${application.name}-${project.version} + + src/assembly/assemble_mvnrepo_zip.xml + + true + + + + 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.sdnc.northbound + 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/features/installer/src/assembly/assemble_installer_zip.xml b/features/installer/src/assembly/assemble_installer_zip.xml new file mode 100755 index 00000000..a6a22a9b --- /dev/null +++ b/features/installer/src/assembly/assemble_installer_zip.xml @@ -0,0 +1,39 @@ + + + + bin + + + zip + + + + false + + + + target/stage/ + ${application.name} + 755 + + *.sh + + + + target/stage/ + ${application.name} + 644 + + *.sh + + + + + + + diff --git a/features/installer/src/assembly/assemble_mvnrepo_zip.xml b/features/installer/src/assembly/assemble_mvnrepo_zip.xml new file mode 100755 index 00000000..86b07f1f --- /dev/null +++ b/features/installer/src/assembly/assemble_mvnrepo_zip.xml @@ -0,0 +1,29 @@ + + + + repo + + + zip + + + + false + + + + target/assembly/ + . + + + + + + + + diff --git a/features/installer/src/main/resources/scripts/install-feature.sh b/features/installer/src/main/resources/scripts/install-feature.sh new file mode 100644 index 00000000..e16e79a1 --- /dev/null +++ b/features/installer/src/main/resources/scripts/install-feature.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +ODL_HOME=${ODL_HOME:-/opt/opendaylight/current} +ODL_KARAF_CLIENT=${ODL_KARAF_CLIENT:-${ODL_HOME}/bin/client} +INSTALLERDIR=$(dirname $0) + +REPOZIP=${INSTALLERDIR}/${features.boot}-${project.version}.zip + +if [ -f ${REPOZIP} ] +then + unzip -d ${ODL_HOME} ${REPOZIP} +else + echo "ERROR : repo zip ($REPOZIP) not found" + exit 1 +fi + +${ODL_KARAF_CLIENT} feature:repo-add ${features.repositories} +${ODL_KARAF_CLIENT} feature:install ${features.boot} diff --git a/features/pom.xml b/features/pom.xml new file mode 100755 index 00000000..4b5c068f --- /dev/null +++ b/features/pom.xml @@ -0,0 +1,24 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + odlparent-lite + 1.1.0-SNAPSHOT + + + + org.onap.sdnc.northbound + sdnc-northbound-feature-aggregator + 1.4.0-SNAPSHOT + pom + + sdnc-northbound :: features + + + sdnc-northbound-all + features-sdnc-northbound + installer + + diff --git a/features/sdnc-northbound-all/pom.xml b/features/sdnc-northbound-all/pom.xml new file mode 100644 index 00000000..59e5ba0c --- /dev/null +++ b/features/sdnc-northbound-all/pom.xml @@ -0,0 +1,64 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + single-feature-parent + 1.1.0-SNAPSHOT + + + + org.onap.sdnc.northbound + sdnc-northbound-all + 1.4.0-SNAPSHOT + feature + + sdnc-northbound :: features :: ${project.artifactId} + + + + org.opendaylight.mdsal.model + mdsal-model-artifacts + ${odl.mdsal.model.version} + pom + import + + + org.opendaylight.controller + mdsal-artifacts + ${odl.mdsal.version} + pom + import + + + + + + + ${project.groupId} + sdnc-generic-resource-api + ${project.version} + xml + features + + + ${project.groupId} + sdnc-vnfapi + ${project.version} + xml + features + + + ${project.groupId} + sdnc-vnftools + ${project.version} + xml + features + + + + + -- cgit 1.2.3-korg