From dc68efeb3c0ae458b6a15a8be182b5dc851a3678 Mon Sep 17 00:00:00 2001 From: Alexis de Talhouët Date: Tue, 11 Sep 2018 15:07:43 -0400 Subject: Add ccsdk-features-all MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iaa2138a1e0df01ae1d9bba57ce6041e91007d350 Issue-ID: CCSDK-505 Signed-off-by: Alexis de Talhouët --- blueprints-processor/adaptors/pom.xml | 1 + blueprints-processor/plugin/pom.xml | 1 + blueprints-processor/pom.xml | 1 + features/ccsdk-features-adaptors-all/pom.xml | 64 +++++++++ features/features-features-adaptors/pom.xml | 44 ++++++ features/installer/pom.xml | 153 +++++++++++++++++++++ .../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 | 40 ++++++ pom.xml | 1 + 11 files changed, 391 insertions(+) create mode 100644 features/ccsdk-features-adaptors-all/pom.xml create mode 100644 features/features-features-adaptors/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 diff --git a/blueprints-processor/adaptors/pom.xml b/blueprints-processor/adaptors/pom.xml index 53b6c3ff2..2caf6933d 100644 --- a/blueprints-processor/adaptors/pom.xml +++ b/blueprints-processor/adaptors/pom.xml @@ -24,6 +24,7 @@ org.onap.ccsdk.parent odlparent-lite 1.1.0-SNAPSHOT + org.onap.ccsdk.config diff --git a/blueprints-processor/plugin/pom.xml b/blueprints-processor/plugin/pom.xml index 442499037..2b6e22914 100644 --- a/blueprints-processor/plugin/pom.xml +++ b/blueprints-processor/plugin/pom.xml @@ -24,6 +24,7 @@ org.onap.ccsdk.parent odlparent-lite 1.1.0-SNAPSHOT + 0.3.0-SNAPSHOT diff --git a/blueprints-processor/pom.xml b/blueprints-processor/pom.xml index ee8ce1dab..10a975650 100644 --- a/blueprints-processor/pom.xml +++ b/blueprints-processor/pom.xml @@ -25,6 +25,7 @@ org.onap.ccsdk.parent odlparent-lite 1.1.0-SNAPSHOT + org.onap.ccsdk.config diff --git a/features/ccsdk-features-adaptors-all/pom.xml b/features/ccsdk-features-adaptors-all/pom.xml new file mode 100644 index 000000000..a1299efc9 --- /dev/null +++ b/features/ccsdk-features-adaptors-all/pom.xml @@ -0,0 +1,64 @@ + + + + 4.0.0 + + + org.onap.ccsdk.parent + single-feature-parent + 1.1.0-SNAPSHOT + + + + org.onap.ccsdk.features + ccsdk-features-all + 0.3.0-SNAPSHOT + feature + + Blueprints Processor :: 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 + + + + + + + org.onap.ccsdk.config + ccsdk-blueprints-processor + ${project.version} + xml + features + + + + diff --git a/features/features-features-adaptors/pom.xml b/features/features-features-adaptors/pom.xml new file mode 100644 index 000000000..6640a87b4 --- /dev/null +++ b/features/features-features-adaptors/pom.xml @@ -0,0 +1,44 @@ + + + + 4.0.0 + + + org.onap.ccsdk.parent + feature-repo-parent + 1.1.0-SNAPSHOT + + + + org.onap.ccsdk.features + features-features + 0.3.0-SNAPSHOT + feature + + Blueprints Processor :: features :: ${project.artifactId} + + + + ${project.groupId} + ccsdk-features-all + ${project.version} + xml + features + + + diff --git a/features/installer/pom.xml b/features/installer/pom.xml new file mode 100755 index 000000000..3e057e45f --- /dev/null +++ b/features/installer/pom.xml @@ -0,0 +1,153 @@ + + + + 4.0.0 + + + org.onap.ccsdk.parent + odlparent-lite + 1.1.0-SNAPSHOT + + + + org.onap.ccsdk.features + features-installer + 0.3.0-SNAPSHOT + pom + + Blueprints Processor :: features :: ${project.artifactId} + + + ccsdk-features-all + ${application.name} + mvn:org.onap.ccsdk.features/${features.boot}/${project.version}/xml/features + + false + + + + + + org.onap.ccsdk.features + ${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.ccsdk.features + 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 000000000..a6a22a9ba --- /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 000000000..86b07f1f3 --- /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 000000000..e16e79a12 --- /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 000000000..946f22603 --- /dev/null +++ b/features/pom.xml @@ -0,0 +1,40 @@ + + + + 4.0.0 + + + org.onap.ccsdk.parent + odlparent-lite + 1.1.0-SNAPSHOT + + + + org.onap.ccsdk.features + ccsdk-feature-aggregator + 0.3.0-SNAPSHOT + pom + + Blueprints Processor :: features + + + ccsdk-features-adaptors-all + features-features-adaptors + installer + + diff --git a/pom.xml b/pom.xml index e0b469921..f5a990cec 100755 --- a/pom.xml +++ b/pom.xml @@ -24,6 +24,7 @@ + features blueprints-processor -- cgit 1.2.3-korg