From f086bce7843b959598bf0a4423487d28dd0a0f7b Mon Sep 17 00:00:00 2001 From: "Singal, Kapil (ks220y)" Date: Tue, 4 Sep 2018 23:41:26 -0400 Subject: SDNC Controller Blueprints Processor - Installer Creating SDN Controller Blueprints Processor Installer Change-Id: Ib95699d535361a7af40f38e76fddb81d48e2a4cb Issue-ID: CCSDK-520 Signed-off-by: Singal, Kapil (ks220y) --- blueprints-processor/installer/.gitignore | 1 + blueprints-processor/installer/pom.xml | 171 +++++++++ .../src/assembly/assemble_installer_zip.xml | 54 +++ .../src/assembly/assemble_mvnrepo_zip.xml | 44 +++ .../src/main/resources/scripts/install-feature.sh | 36 ++ .../plugin/assignment-provider/pom.xml | 87 +++++ .../plugin/generator-provider/pom.xml | 90 +++++ blueprints-processor/plugin/model-provider/pom.xml | 97 +++++ blueprints-processor/plugin/pom.xml | 37 ++ blueprints-processor/pom.xml | 414 +++++++++++++++++++++ 10 files changed, 1031 insertions(+) create mode 100644 blueprints-processor/installer/.gitignore create mode 100644 blueprints-processor/installer/pom.xml create mode 100644 blueprints-processor/installer/src/assembly/assemble_installer_zip.xml create mode 100644 blueprints-processor/installer/src/assembly/assemble_mvnrepo_zip.xml create mode 100644 blueprints-processor/installer/src/main/resources/scripts/install-feature.sh create mode 100644 blueprints-processor/plugin/assignment-provider/pom.xml create mode 100644 blueprints-processor/plugin/generator-provider/pom.xml create mode 100644 blueprints-processor/plugin/model-provider/pom.xml create mode 100644 blueprints-processor/plugin/pom.xml create mode 100644 blueprints-processor/pom.xml diff --git a/blueprints-processor/installer/.gitignore b/blueprints-processor/installer/.gitignore new file mode 100644 index 000000000..ae04cff9d --- /dev/null +++ b/blueprints-processor/installer/.gitignore @@ -0,0 +1 @@ +/target-ide/ diff --git a/blueprints-processor/installer/pom.xml b/blueprints-processor/installer/pom.xml new file mode 100644 index 000000000..f8a053e1d --- /dev/null +++ b/blueprints-processor/installer/pom.xml @@ -0,0 +1,171 @@ + + + + + 4.0.0 + + org.onap.ccsdk.config + blueprints-processor + 0.0.1-SNAPSHOT + + + blueprints-processor-installer + pom + Blueprints Processor :: ${project.artifactId} + + + blueprints-processor + blueprints-processor-features + mvn:org.onap.ccsdk.config/blueprints-processor-features/${project.version}/xml/features + false + + + + + org.onap.ccsdk.config + blueprints-processor-features + features + xml + + + * + * + + + + + org.onap.ccsdk.config + blueprints-data-adaptor-provider + + + org.onap.ccsdk.config + blueprints-rest-adaptor-provider + + + org.onap.ccsdk.config + blueprints-assignment-provider + + + org.onap.ccsdk.config + blueprints-generator-provider + + + org.onap.ccsdk.config + blueprints-model-provider + + + + + + + maven-assembly-plugin + + + 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 + + blueprints-processor-features, + blueprints-data-adaptor-provider, + blueprints-rest-adaptor-provider, + blueprints-assignment-provider, + blueprints-generator-provider,commons-lang,commons-collections, + blueprints-model-provider, + + 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/blueprints-processor/installer/src/assembly/assemble_installer_zip.xml b/blueprints-processor/installer/src/assembly/assemble_installer_zip.xml new file mode 100644 index 000000000..88a6bb773 --- /dev/null +++ b/blueprints-processor/installer/src/assembly/assemble_installer_zip.xml @@ -0,0 +1,54 @@ + + + + + + bin + + zip + + + + false + + + + target/stage/ + ${application.name} + 755 + + *.sh + + + + target/stage/ + ${application.name} + 644 + + *.sh + + + + + + + diff --git a/blueprints-processor/installer/src/assembly/assemble_mvnrepo_zip.xml b/blueprints-processor/installer/src/assembly/assemble_mvnrepo_zip.xml new file mode 100644 index 000000000..44237aeea --- /dev/null +++ b/blueprints-processor/installer/src/assembly/assemble_mvnrepo_zip.xml @@ -0,0 +1,44 @@ + + + + + + bin + + zip + + + + false + + + + target/assembly/ + . + + + + + + + + diff --git a/blueprints-processor/installer/src/main/resources/scripts/install-feature.sh b/blueprints-processor/installer/src/main/resources/scripts/install-feature.sh new file mode 100644 index 000000000..9241bc420 --- /dev/null +++ b/blueprints-processor/installer/src/main/resources/scripts/install-feature.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +### +# +# Copyright © 2017-2018 AT&T Intellectual Property. +# +# 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. +# See the License for the specific language governing permissions and +# limitations under the License. +# +### + +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/blueprints-processor/plugin/assignment-provider/pom.xml b/blueprints-processor/plugin/assignment-provider/pom.xml new file mode 100644 index 000000000..b6167cf17 --- /dev/null +++ b/blueprints-processor/plugin/assignment-provider/pom.xml @@ -0,0 +1,87 @@ + + + + + 4.0.0 + + org.onap.ccsdk.config + blueprints-processor-plugin + 0.0.1-SNAPSHOT + + blueprints-assignment-provider + bundle + Blueprints Assignment - Provider + http://maven.apache.org + + + + equinoxSDK381 + org.eclipse.osgi + + + org.onap.ccsdk.config + blueprints-generator-provider + + + junit + junit + test + + + org.apache.sling + org.apache.sling.testing.osgi-mock + test + + + org.powermock + powermock-api-mockito + test + + + org.powermock + powermock-module-junit4 + test + + + + + + + org.apache.felix + maven-bundle-plugin + ${maven.bundle.version} + true + + + org.onap.ccsdk.config.assignment + org.onap.ccsdk.config.assignment, + org.onap.ccsdk.config.assignment.data, + org.onap.ccsdk.config.assignment.service, + org.onap.ccsdk.config.assignment.processor, + org.onap.ccsdk.config.assignment.processor.custom + + * + true + + + + + + diff --git a/blueprints-processor/plugin/generator-provider/pom.xml b/blueprints-processor/plugin/generator-provider/pom.xml new file mode 100644 index 000000000..132852e4a --- /dev/null +++ b/blueprints-processor/plugin/generator-provider/pom.xml @@ -0,0 +1,90 @@ + + + + + 4.0.0 + + org.onap.ccsdk.config + blueprints-processor-plugin + 0.0.1-SNAPSHOT + + blueprints-generator-provider + bundle + Blueprints Generator - Provider + http://maven.apache.org + + + + org.eclipse.osgi + equinoxSDK381 + + + org.onap.ccsdk.config + blueprints-model-provider + + + commons-io + commons-io + + + org.apache.velocity + velocity + + + org.powermock + powermock-api-mockito + test + + + org.powermock + powermock-module-junit4 + test + + + junit + junit + test + + + + + + + org.apache.felix + maven-bundle-plugin + ${maven.bundle.version} + true + + + org.onap.ccsdk.config.generator + + org.onap.ccsdk.config.generator, + org.onap.ccsdk.config.generator.data, + org.onap.ccsdk.config.generator.service, + org.onap.ccsdk.config.generator.tool + + * + true + + + + + + diff --git a/blueprints-processor/plugin/model-provider/pom.xml b/blueprints-processor/plugin/model-provider/pom.xml new file mode 100644 index 000000000..5e75c6afd --- /dev/null +++ b/blueprints-processor/plugin/model-provider/pom.xml @@ -0,0 +1,97 @@ + + + + + 4.0.0 + + org.onap.ccsdk.config + blueprints-processor-plugin + 0.0.1-SNAPSHOT + + blueprints-model-provider + bundle + Blueprints Model - Provider + http://maven.apache.org + + + + equinoxSDK381 + org.eclipse.osgi + + + + org.onap.ccsdk.config + blueprints-rest-adaptor-provider + + + org.onap.ccsdk.config + blueprints-data-adaptor-provider + + + + org.powermock + powermock-api-mockito + test + + + org.powermock + powermock-module-junit4 + test + + + org.apache.sling + org.apache.sling.testing.osgi-mock + test + + + junit + junit + test + + + + + + + org.apache.felix + maven-bundle-plugin + ${maven.bundle.version} + true + + + org.onap.ccsdk.config.model + org.onap.ccsdk.config.model, + org.onap.ccsdk.config.model.data, + org.onap.ccsdk.config.model.data.api, + org.onap.ccsdk.config.model.data.custom, + org.onap.ccsdk.config.model.data.custom.dict, + org.onap.ccsdk.config.model.domain, + org.onap.ccsdk.config.model.service, + org.onap.ccsdk.config.model.utils, + org.onap.ccsdk.config.model.validator + + * + true + + + + + + diff --git a/blueprints-processor/plugin/pom.xml b/blueprints-processor/plugin/pom.xml new file mode 100644 index 000000000..ed7822a2a --- /dev/null +++ b/blueprints-processor/plugin/pom.xml @@ -0,0 +1,37 @@ + + + + 4.0.0 + + org.onap.ccsdk.config + blueprints-processor + 0.0.1-SNAPSHOT + + blueprints-processor-plugin + pom + Blueprints Processor Plugins - POM + Blueprints Processor Plugins - POM + + model-provider + assignment-provider + generator-provider + + + diff --git a/blueprints-processor/pom.xml b/blueprints-processor/pom.xml new file mode 100644 index 000000000..8e3556624 --- /dev/null +++ b/blueprints-processor/pom.xml @@ -0,0 +1,414 @@ + + + + + 4.0.0 + + + org.onap.ccsdk.parent + odlparent-lite + 1.1.0-SNAPSHOT + + + org.onap.ccsdk.config + blueprints-processor + 0.0.1-SNAPSHOT + pom + + Blueprints Processor Module + http://wiki.sdn.labs.att.com + Blueprints Processor Blueprints Processor + + + false + 3.5.0 + + 2.3.3 + 0.7.3 + + 4.2.9.RELEASE + 4.4.10 + 4.5.6 + + 3.2.2 + 2.5 + 1.12 + 1.7 + + 2.3.0 + 2.3 + + 1.2 + 5.0.4 + 0.1.54 + 1.9.2 + 2.11.0 + + + 1.6.6 + 2.3.2 + + + + + + org.onap.ccsdk.config + blueprints-processor-features + features + xml + ${project.version} + + + org.onap.ccsdk.sli.core + sli-provider + ${ccsdk.sli.core.version} + compile + + + org.apache.karaf.shell + + org.apache.karaf.shell.console + + + + + + org.onap.ccsdk.sli.adaptors + sql-resource-provider + ${ccsdk.sli.adaptors.version} + compile + + + + + org.opendaylight.mdsal + features-mdsal + ${odl.mdsal.features.version} + features + xml + runtime + + + + + org.apache.commons + commons-lang3 + ${commons.lang3.version} + + + com.att.eelf + eelf-core + ${eelf.version} + + + + org.springframework + spring-core + ${spring.version} + + + org.springframework + spring-aop + ${spring.version} + + + org.springframework + spring-beans + ${spring.version} + + + org.springframework + spring-context + ${spring.version} + + + org.springframework + spring-expression + ${spring.version} + + + org.springframework + spring-jdbc + ${spring.version} + + + org.springframework + spring-tx + ${spring.version} + + + org.springframework + spring-web + ${spring.version} + + + equinoxSDK381 + org.eclipse.osgi + ${equinox.osgi.version} + + + com.fasterxml.jackson.core + jackson-databind + ${jackson.version} + + + com.fasterxml.jackson.core + jackson-annotations + ${jackson.version} + + + com.fasterxml.jackson.core + jackson-core + ${jackson.version} + + + com.fasterxml.jackson.dataformat + jackson-dataformat-xml + ${jackson.version} + + + com.fasterxml.jackson.module + jackson-module-jaxb-annotations + ${jackson.version} + + + com.fasterxml.jackson.dataformat + jackson-dataformat-yaml + ${jackson.version} + + + com.fasterxml.jackson.module + jackson-module-jsonSchema + ${jackson.version} + + + com.fasterxml.jackson.datatype + jackson-datatype-json-org + ${jackson.version} + + + com.fasterxml.jackson.jaxrs + jackson-jaxrs-base + ${jackson.version} + + + com.fasterxml.jackson.jaxrs + jackson-jaxrs-json-provider + ${jackson.version} + + + org.json + json + ${org.json.version} + + + com.jayway.jsonpath + json-path + ${jsonpath.version} + + + org.yaml + snakeyaml + ${snakeyaml.version} + + + org.apache.velocity + velocity + ${velocity.version} + + + commons-collections + commons-collections + ${common.collections.version} + + + commons-io + commons-io + ${common.io.version} + + + org.codehaus.jettison + jettison + ${jettison.version} + provided + + + com.jcraft + jsch + ${jsch.version} + + + org.jasypt + jasypt + ${jasypt.version} + + + xerces + xercesImpl + ${xercesImpl.version} + + + com.sun.jersey + jersey-client + ${jersey.client.version} + provided + + + com.sun.jersey + jersey-core + ${jersey.version} + provided + + + org.mariadb.jdbc + mariadb-java-client + ${mariadb.connector.version} + runtime + + + + + org.apache.httpcomponents + httpclient-osgi + ${apache.httpcomponents.client.version} + + + org.apache.httpcomponents + httpcore-osgi + ${apache.httpcomponents.core.version} + + + + + org.onap.ccsdk.config + blueprints-model-provider + ${project.version} + compile + + + org.onap.ccsdk.config + blueprints-data-adaptor-provider + ${project.version} + compile + + + org.onap.ccsdk.config + blueprints-rest-adaptor-provider + ${project.version} + compile + + + org.onap.ccsdk.config + blueprints-generator-provider + ${project.version} + compile + + + org.onap.ccsdk.config + blueprints-assignment-provider + ${project.version} + compile + + + + + org.springframework + spring-test + ${spring.version} + test + + + com.h2database + h2 + ${h2database.version} + test + + + org.apache.sling + org.apache.sling.testing.osgi-mock + ${sling.version} + test + + + org.mockito + mockito-core + ${mockito.version} + test + + + org.powermock + powermock-api-mockito + ${powermock.version} + test + + + org.powermock + powermock-api-support + ${powermock.version} + test + + + org.powermock + powermock-core + ${powermock.version} + test + + + org.powermock + powermock-module-junit4 + ${powermock.version} + test + + + org.powermock + powermock-reflect + ${powermock.version} + test + + + junit + junit + ${junit.version} + test + + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + org.opendaylight.*:io.netty.*:org.osgi.*:org.apache.* + + + + + + + + adaptors + plugin + features + installer + + + -- cgit 1.2.3-korg