From 96a9aafdff7813324bc8a8ba1e743683e251dde6 Mon Sep 17 00:00:00 2001 From: Jessica Wagantall Date: Tue, 1 Dec 2020 11:33:35 -0800 Subject: Migrate files from sli-plugins Migrate sli-plugins repo into new directory "plugins". Signed-off-by: Jessica Wagantall --- plugins/features/ccsdk-gr-toolkit/pom.xml | 37 ++++ plugins/features/ccsdk-properties-node/pom.xml | 29 +++ plugins/features/ccsdk-restapi-call-node/pom.xml | 38 ++++ plugins/features/ccsdk-restconf-client/pom.xml | 32 ++++ plugins/features/ccsdk-sli-plugins-all/pom.xml | 60 ++++++ plugins/features/ccsdk-sshapi-call-node/pom.xml | 36 ++++ plugins/features/ccsdk-template-node/pom.xml | 27 +++ plugins/features/features-sli-plugins/pom.xml | 68 +++++++ plugins/features/installer/pom.xml | 213 +++++++++++++++++++++ .../src/assembly/assemble_installer_zip.xml | 39 ++++ .../src/assembly/assemble_mvnrepo_zip.xml | 29 +++ .../src/main/resources/scripts/install-feature.sh | 18 ++ plugins/features/pom.xml | 30 +++ 13 files changed, 656 insertions(+) create mode 100644 plugins/features/ccsdk-gr-toolkit/pom.xml create mode 100644 plugins/features/ccsdk-properties-node/pom.xml create mode 100644 plugins/features/ccsdk-restapi-call-node/pom.xml create mode 100644 plugins/features/ccsdk-restconf-client/pom.xml create mode 100644 plugins/features/ccsdk-sli-plugins-all/pom.xml create mode 100644 plugins/features/ccsdk-sshapi-call-node/pom.xml create mode 100644 plugins/features/ccsdk-template-node/pom.xml create mode 100644 plugins/features/features-sli-plugins/pom.xml create mode 100755 plugins/features/installer/pom.xml create mode 100755 plugins/features/installer/src/assembly/assemble_installer_zip.xml create mode 100755 plugins/features/installer/src/assembly/assemble_mvnrepo_zip.xml create mode 100644 plugins/features/installer/src/main/resources/scripts/install-feature.sh create mode 100755 plugins/features/pom.xml (limited to 'plugins/features') diff --git a/plugins/features/ccsdk-gr-toolkit/pom.xml b/plugins/features/ccsdk-gr-toolkit/pom.xml new file mode 100644 index 000000000..21464ef94 --- /dev/null +++ b/plugins/features/ccsdk-gr-toolkit/pom.xml @@ -0,0 +1,37 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + single-feature-parent + 2.1.0 + + + + org.onap.ccsdk.sli.plugins + ccsdk-gr-toolkit + 1.1.1-SNAPSHOT + feature + + ccsdk-sli-plugins :: gr-toolkit :: ${project.artifactId} + + + + org.opendaylight.controller + odl-mdsal-broker + xml + features + + + ${project.groupId} + gr-toolkit-model + ${project.version} + + + ${project.groupId} + gr-toolkit-provider + ${project.version} + + + diff --git a/plugins/features/ccsdk-properties-node/pom.xml b/plugins/features/ccsdk-properties-node/pom.xml new file mode 100644 index 000000000..e11366986 --- /dev/null +++ b/plugins/features/ccsdk-properties-node/pom.xml @@ -0,0 +1,29 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + single-feature-parent + 2.1.0 + + + + org.onap.ccsdk.sli.plugins + ccsdk-properties-node + 1.1.1-SNAPSHOT + feature + + ccsdk-sli-plugins :: properties-node :: ${project.artifactId} + + + + + + ${project.groupId} + properties-node-provider + ${project.version} + + + + diff --git a/plugins/features/ccsdk-restapi-call-node/pom.xml b/plugins/features/ccsdk-restapi-call-node/pom.xml new file mode 100644 index 000000000..c5dcf096e --- /dev/null +++ b/plugins/features/ccsdk-restapi-call-node/pom.xml @@ -0,0 +1,38 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + single-feature-parent + 2.1.0 + + + + org.onap.ccsdk.sli.plugins + ccsdk-restapi-call-node + 1.1.1-SNAPSHOT + feature + + ccsdk-sli-plugins :: restapi-call-node :: ${project.artifactId} + + + + javax.ws.rs + javax.ws.rs-api + + + + ${project.groupId} + restapi-call-node-provider + ${project.version} + + + + org.onap.logging-analytics + logging-filter-base + + + + + diff --git a/plugins/features/ccsdk-restconf-client/pom.xml b/plugins/features/ccsdk-restconf-client/pom.xml new file mode 100644 index 000000000..3d2e6d0e8 --- /dev/null +++ b/plugins/features/ccsdk-restconf-client/pom.xml @@ -0,0 +1,32 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + single-feature-parent + 2.1.0 + + + + org.onap.ccsdk.sli.plugins + ccsdk-restconf-client + 1.1.1-SNAPSHOT + feature + + ccsdk-sli-plugins :: restconf-client :: ${project.artifactId} + + + true + + + + + + + ${project.groupId} + restconf-client-provider + ${project.version} + + + diff --git a/plugins/features/ccsdk-sli-plugins-all/pom.xml b/plugins/features/ccsdk-sli-plugins-all/pom.xml new file mode 100644 index 000000000..fb73584f5 --- /dev/null +++ b/plugins/features/ccsdk-sli-plugins-all/pom.xml @@ -0,0 +1,60 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + single-feature-parent + 2.1.0 + + + + org.onap.ccsdk.sli.plugins + ccsdk-sli-plugins-all + 1.1.1-SNAPSHOT + feature + + ccsdk-sli-plugins :: features :: ${project.artifactId} + + + + ${project.groupId} + ccsdk-properties-node + ${project.version} + xml + features + + + + ${project.groupId} + ccsdk-restapi-call-node + ${project.version} + xml + features + + + + ${project.groupId} + ccsdk-restconf-client + ${project.version} + xml + features + + + + ${project.groupId} + ccsdk-template-node + ${project.version} + xml + features + + + + ${project.groupId} + ccsdk-sshapi-call-node + ${project.version} + xml + features + + + diff --git a/plugins/features/ccsdk-sshapi-call-node/pom.xml b/plugins/features/ccsdk-sshapi-call-node/pom.xml new file mode 100644 index 000000000..0441c12cd --- /dev/null +++ b/plugins/features/ccsdk-sshapi-call-node/pom.xml @@ -0,0 +1,36 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + single-feature-parent + 2.1.0 + + + + org.onap.ccsdk.sli.plugins + ccsdk-sshapi-call-node + 1.1.1-SNAPSHOT + feature + + ccsdk-sli-plugins :: sshapi-call-node :: ${project.artifactId} + + diff --git a/plugins/features/ccsdk-template-node/pom.xml b/plugins/features/ccsdk-template-node/pom.xml new file mode 100644 index 000000000..4c6721643 --- /dev/null +++ b/plugins/features/ccsdk-template-node/pom.xml @@ -0,0 +1,27 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + single-feature-parent + 2.1.0 + + + + org.onap.ccsdk.sli.plugins + ccsdk-template-node + 1.1.1-SNAPSHOT + feature + + ccsdk-sli-plugins :: template-node :: ${project.artifactId} + + + + + ${project.groupId} + template-node-provider + ${project.version} + + + diff --git a/plugins/features/features-sli-plugins/pom.xml b/plugins/features/features-sli-plugins/pom.xml new file mode 100644 index 000000000..f91c1bd56 --- /dev/null +++ b/plugins/features/features-sli-plugins/pom.xml @@ -0,0 +1,68 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + feature-repo-parent + 2.1.0 + + + + org.onap.ccsdk.sli.plugins + features-sli-plugins + 1.1.1-SNAPSHOT + feature + + ccsdk-sli-plugins :: features :: ${project.artifactId} + + + + org.onap.ccsdk.sli.plugins + ccsdk-gr-toolkit + ${project.version} + xml + features + + + * + * + + + + + org.onap.ccsdk.sli.plugins + ccsdk-properties-node + ${project.version} + xml + features + + + * + * + + + + + org.onap.ccsdk.sli.plugins + ccsdk-restapi-call-node + ${project.version} + xml + features + + + * + * + + + + + ${project.groupId} + ccsdk-sli-plugins-all + ${project.version} + xml + features + + + + diff --git a/plugins/features/installer/pom.xml b/plugins/features/installer/pom.xml new file mode 100755 index 000000000..f58851eca --- /dev/null +++ b/plugins/features/installer/pom.xml @@ -0,0 +1,213 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + odlparent-lite + 2.1.0 + + + + org.onap.ccsdk.sli.plugins + sliplugins-features-installer + 1.1.1-SNAPSHOT + pom + + ccsdk-sli-plugins :: features :: ${project.artifactId} + + + ccsdk-sli-plugins-all + ${application.name} + mvn:org.onap.ccsdk.sli.plugins/${features.boot}/${project.version}/xml/features + false + + + + + org.onap.ccsdk.sli.plugins + ccsdk-gr-toolkit + ${project.version} + xml + features + + + * + * + + + + + org.onap.ccsdk.sli.plugins + ccsdk-properties-node + ${project.version} + xml + features + + + * + * + + + + + org.onap.ccsdk.sli.plugins + ccsdk-restapi-call-node + ${project.version} + xml + features + + + * + * + + + + + org.onap.ccsdk.sli.plugins + ccsdk-restconf-client + ${project.version} + xml + features + + + * + * + + + + + org.onap.ccsdk.sli.plugins + ccsdk-sshapi-call-node + ${project.version} + xml + features + + + * + * + + + + + org.onap.ccsdk.sli.plugins + ccsdk-template-node + ${project.version} + xml + features + + + * + * + + + + + org.onap.ccsdk.sli.plugins + ${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.sli.plugins + 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/plugins/features/installer/src/assembly/assemble_installer_zip.xml b/plugins/features/installer/src/assembly/assemble_installer_zip.xml new file mode 100755 index 000000000..a6a22a9ba --- /dev/null +++ b/plugins/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/plugins/features/installer/src/assembly/assemble_mvnrepo_zip.xml b/plugins/features/installer/src/assembly/assemble_mvnrepo_zip.xml new file mode 100755 index 000000000..86b07f1f3 --- /dev/null +++ b/plugins/features/installer/src/assembly/assemble_mvnrepo_zip.xml @@ -0,0 +1,29 @@ + + + + repo + + + zip + + + + false + + + + target/assembly/ + . + + + + + + + + diff --git a/plugins/features/installer/src/main/resources/scripts/install-feature.sh b/plugins/features/installer/src/main/resources/scripts/install-feature.sh new file mode 100644 index 000000000..e16e79a12 --- /dev/null +++ b/plugins/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/plugins/features/pom.xml b/plugins/features/pom.xml new file mode 100755 index 000000000..e95874196 --- /dev/null +++ b/plugins/features/pom.xml @@ -0,0 +1,30 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + odlparent-lite + 2.1.0 + + + + org.onap.ccsdk.sli.plugins + sliplugins-feature-aggregator + 1.1.1-SNAPSHOT + pom + + ccsdk-sli-plugins :: features + + + ccsdk-gr-toolkit + ccsdk-properties-node + ccsdk-restapi-call-node + ccsdk-restconf-client + ccsdk-sshapi-call-node + ccsdk-template-node + ccsdk-sli-plugins-all + features-sli-plugins + installer + + -- cgit 1.2.3-korg