From df195945d03dec122666e8d48e4c7ba94630468a Mon Sep 17 00:00:00 2001 From: "Singal, Kapil (ks220y)" Date: Thu, 12 Dec 2019 15:24:53 -0500 Subject: Refactoring multiple plugins Refactoring below plugins in sdnr/wt/common/pom.xml : 1) org.codehaus.mojo : exec-maven-plugin -> changing executable to bash so that it can run on windows too 2) com.github.alexcojocaru : elasticsearch-maven-plugin -> skip if tests are skipped during maven build Adding create dir step in es-intit.sh : sdnr/wt/data-provider/database/src/main/resources/es-init.sh -> cmd_initfile() -> mkdir -p $( dirname $INITFILENAME ) Change-Id: I78516406101659f802dad2fb68ca349f63a4dd2e Issue-ID: CCSDK-1994 Signed-off-by: Singal, Kapil (ks220y) --- sdnr/wt/devicemanager/feature/pom.xml | 43 +++-- sdnr/wt/devicemanager/installer/pom.xml | 236 ++++++++++++------------ sdnr/wt/devicemanager/model/pom.xml | 114 ++++++------ sdnr/wt/devicemanager/pom.xml | 18 +- sdnr/wt/devicemanager/provider/pom.xml | 316 ++++++++++++++++---------------- 5 files changed, 365 insertions(+), 362 deletions(-) (limited to 'sdnr/wt/devicemanager') diff --git a/sdnr/wt/devicemanager/feature/pom.xml b/sdnr/wt/devicemanager/feature/pom.xml index 728ec0365..123ab2328 100644 --- a/sdnr/wt/devicemanager/feature/pom.xml +++ b/sdnr/wt/devicemanager/feature/pom.xml @@ -21,29 +21,28 @@ * ============LICENSE_END========================================================= --> - - 4.0.0 + + 4.0.0 - org.onap.ccsdk.features.sdnr.wt - sdnr-wt-devicemanager-feature - 0.7.0-SNAPSHOT - feature - ccsdk-features-sdnr-wt :: ${project.artifactId} :: feature + + org.onap.ccsdk.parent + single-feature-parent + 1.5.1-SNAPSHOT + + - - org.onap.ccsdk.parent - single-feature-parent - 1.5.1-SNAPSHOT - - + org.onap.ccsdk.features.sdnr.wt + sdnr-wt-devicemanager-feature + 0.7.0-SNAPSHOT + feature - - - ${project.groupId} - sdnr-wt-devicemanager-provider - ${project.version} - - + ccsdk-features :: ${project.artifactId} + + + + ${project.groupId} + sdnr-wt-devicemanager-provider + ${project.version} + + diff --git a/sdnr/wt/devicemanager/installer/pom.xml b/sdnr/wt/devicemanager/installer/pom.xml index 099de242f..86e586f4b 100755 --- a/sdnr/wt/devicemanager/installer/pom.xml +++ b/sdnr/wt/devicemanager/installer/pom.xml @@ -22,129 +22,129 @@ --> - 4.0.0 + 4.0.0 - - org.onap.ccsdk.parent - odlparent-lite - 1.5.1-SNAPSHOT - - + + org.onap.ccsdk.parent + odlparent-lite + 1.5.1-SNAPSHOT + + - org.onap.ccsdk.features.sdnr.wt - sdnr-wt-devicemanager-installer - 0.7.0-SNAPSHOT - pom - ccsdk-features-sdnr-wt :: ${project.artifactId} + org.onap.ccsdk.features.sdnr.wt + sdnr-wt-devicemanager-installer + 0.7.0-SNAPSHOT + pom - - sdnr-wt-devicemanager - false - + ccsdk-features :: ${project.artifactId} - + + sdnr-wt-devicemanager + false + + + + + + org.opendaylight.controller + mdsal-artifacts + ${odl.controller.mdsal.version} + pom + import + + + - - org.opendaylight.controller - mdsal-artifacts - ${odl.controller.mdsal.version} - pom - import - + + org.onap.ccsdk.features.sdnr.wt + ${application.name}-feature + ${project.version} + xml + features + + + * + * + + + + + org.onap.ccsdk.features.sdnr.wt + ${application.name}-provider + ${project.version} + - - - - - org.onap.ccsdk.features.sdnr.wt - ${application.name}-feature - ${project.version} - xml - features - - - * - * - - - - - org.onap.ccsdk.features.sdnr.wt - ${application.name}-provider - ${project.version} - - - - - - maven-assembly-plugin - - - maven-repo-zip - - single - - package - - true - stage/${application.name}-${project.version} - - src/assembly/assemble_mvnrepo_zip.xml - - true - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - copy-nested-dependencies - - copy-dependencies - - prepare-package - - true - ${project.build.directory}/assembly/system - false - true - true - true - false - false - - - - - - maven-resources-plugin - 2.6 - - - copy-schemas - - copy-resources - - validate - - ${project.build.directory}/assembly/cache/schema - - - ${basedir}/../provider/src/main/resources/preload.cache.schema - - *.yang - - true - - - - - - - - + + + + maven-assembly-plugin + + + maven-repo-zip + + single + + package + + true + stage/${application.name}-${project.version} + + src/assembly/assemble_mvnrepo_zip.xml + + true + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + copy-nested-dependencies + + copy-dependencies + + prepare-package + + true + ${project.build.directory}/assembly/system + false + true + true + true + false + false + + + + + + maven-resources-plugin + 2.6 + + + copy-schemas + + copy-resources + + validate + + ${project.build.directory}/assembly/cache/schema + + + ${basedir}/../provider/src/main/resources/preload.cache.schema + + *.yang + + true + + + + + + + + diff --git a/sdnr/wt/devicemanager/model/pom.xml b/sdnr/wt/devicemanager/model/pom.xml index d64af1a84..7a1ef0d4b 100644 --- a/sdnr/wt/devicemanager/model/pom.xml +++ b/sdnr/wt/devicemanager/model/pom.xml @@ -22,64 +22,66 @@ --> - 4.0.0 - org.onap.ccsdk.features.sdnr.wt - sdnr-wt-devicemanager-model - 0.7.0-SNAPSHOT - ccsdk-features-sdnr-wt :: ${project.artifactId} - bundle + 4.0.0 - - org.onap.ccsdk.parent - binding-parent - 1.5.1-SNAPSHOT - - + + org.onap.ccsdk.parent + binding-parent + 1.5.1-SNAPSHOT + + - - true - + org.onap.ccsdk.features.sdnr.wt + sdnr-wt-devicemanager-model + 0.7.0-SNAPSHOT + bundle - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0 - - + ccsdk-features :: ${project.artifactId} + + + Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0 + + - - - org.opendaylight.netconf - sal-netconf-connector - provided - - - org.onap.ccsdk.features.sdnr.wt - sdnr-wt-data-provider-model - ${project.version} - provided - - - org.onap.ccsdk.features.sdnr.wt - sdnr-wt-netconfnode-state-service-model - ${project.version} - provided - - - - - - org.jacoco - jacoco-maven-plugin - - - **/gen/** - **/generated-sources/** - **/yang-gen-sal/** - **/pax/** - - - - - + + true + + + + + org.opendaylight.netconf + sal-netconf-connector + provided + + + org.onap.ccsdk.features.sdnr.wt + sdnr-wt-data-provider-model + ${project.version} + provided + + + org.onap.ccsdk.features.sdnr.wt + sdnr-wt-netconfnode-state-service-model + ${project.version} + provided + + + + + + + org.jacoco + jacoco-maven-plugin + + + **/gen/** + **/generated-sources/** + **/yang-gen-sal/** + **/pax/** + + + + + diff --git a/sdnr/wt/devicemanager/pom.xml b/sdnr/wt/devicemanager/pom.xml index 5a37d8521..6b4848ef2 100755 --- a/sdnr/wt/devicemanager/pom.xml +++ b/sdnr/wt/devicemanager/pom.xml @@ -24,12 +24,6 @@ 4.0.0 - org.onap.ccsdk.features.sdnr.wt - sdnr-wt-devicemanager-top - 0.7.0-SNAPSHOT - pom - ccsdk-features-sdnr-wt :: ${project.artifactId} - org.onap.ccsdk.parent odlparent-lite @@ -37,9 +31,12 @@ - - sdnr-wt-devicemanager - + org.onap.ccsdk.features.sdnr.wt + sdnr-wt-devicemanager-top + 0.7.0-SNAPSHOT + pom + + ccsdk-features :: ${project.artifactId} model @@ -48,4 +45,7 @@ installer + + sdnr-wt-devicemanager + diff --git a/sdnr/wt/devicemanager/provider/pom.xml b/sdnr/wt/devicemanager/provider/pom.xml index 7c8a88095..1e7b1caa6 100644 --- a/sdnr/wt/devicemanager/provider/pom.xml +++ b/sdnr/wt/devicemanager/provider/pom.xml @@ -16,160 +16,161 @@ ============LICENSE_END========================================================= --> - 4.0.0 + 4.0.0 - org.onap.ccsdk.features.sdnr.wt - sdnr-wt-devicemanager-provider - 0.7.0-SNAPSHOT - ccsdk-features-sdnr-wt :: ${project.artifactId} - bundle + + org.onap.ccsdk.parent + binding-parent + 1.5.1-SNAPSHOT + + - - org.onap.ccsdk.parent - binding-parent - 1.5.1-SNAPSHOT - - + org.onap.ccsdk.features.sdnr.wt + sdnr-wt-devicemanager-provider + 0.7.0-SNAPSHOT + bundle - - true - true - yyyy-MM-dd HH:mm - ${maven.build.timestamp} UTC - 6.4.3 - 49400 - + ccsdk-features :: ${project.artifactId} + + + Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0 + + - - - Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0 - - + + true + true + yyyy-MM-dd HH:mm + ${maven.build.timestamp} UTC + 6.4.3 + 49400 + - - - - org.mockito - mockito-core - test - + + + + org.mockito + mockito-core + test + - - - ${project.groupId} - sdnr-wt-devicemanager-model - ${project.version} - - - ${project.groupId} - sdnr-wt-netconfnode-state-service-model - ${project.version} - provided - - - org.onap.ccsdk.features.sdnr.wt - sdnr-wt-websocketmanager2-model - ${project.version} - provided - - - org.onap.ccsdk.features.sdnr.wt - sdnr-wt-data-provider-database - ${project.version} - provided - - - org.onap.ccsdk.features.sdnr.wt - sdnr-wt-common - ${project.version} - provided - - - org.osgi - org.osgi.core - provided - - - org.opendaylight.mdsal.model - ietf-topology - - - org.opendaylight.netconf - sal-netconf-connector - provided - - - org.opendaylight.mdsal.binding.model.ietf - rfc6991-ietf-yang-types - provided - - - org.opendaylight.mdsal - yang-binding - provided - - - org.opendaylight.mdsal - mdsal-singleton-common-api - provided - - - org.json - json - provided - - - com.typesafe.akka - akka-actor_2.12 - provided - - - com.typesafe.akka - akka-cluster_2.12 - provided - - - org.osgi - org.osgi.compendium - provided - + + + ${project.groupId} + sdnr-wt-devicemanager-model + ${project.version} + + + ${project.groupId} + sdnr-wt-netconfnode-state-service-model + ${project.version} + provided + + + org.onap.ccsdk.features.sdnr.wt + sdnr-wt-websocketmanager2-model + ${project.version} + provided + + + org.onap.ccsdk.features.sdnr.wt + sdnr-wt-data-provider-database + ${project.version} + provided + + + org.onap.ccsdk.features.sdnr.wt + sdnr-wt-common + ${project.version} + provided + + + org.osgi + org.osgi.core + provided + + + org.opendaylight.mdsal.model + ietf-topology + + + org.opendaylight.netconf + sal-netconf-connector + provided + + + org.opendaylight.mdsal.binding.model.ietf + rfc6991-ietf-yang-types + provided + + + org.opendaylight.mdsal + yang-binding + provided + + + org.opendaylight.mdsal + mdsal-singleton-common-api + provided + + + org.json + json + provided + + + com.typesafe.akka + akka-actor_2.12 + provided + + + com.typesafe.akka + akka-cluster_2.12 + provided + + + org.osgi + org.osgi.compendium + provided + - - - - - - - org.apache.commons - commons-lang3 - provided - - - com.fasterxml.jackson.core - jackson-core - provided - - - com.fasterxml.jackson.core - jackson-annotations - provided - - - com.fasterxml.jackson.core - jackson-databind - provided - + + + + + + + org.apache.commons + commons-lang3 + provided + + + com.fasterxml.jackson.core + jackson-core + provided + + + com.fasterxml.jackson.core + jackson-annotations + provided + + + com.fasterxml.jackson.core + jackson-databind + provided + - - - - - src/main/resources - true - - - + + + + + + src/main/resources + true + + + org.jacoco jacoco-maven-plugin @@ -191,15 +192,16 @@ generate-sources exec - - - ${basedir}/../../data-provider/database/src/main/resources/es-init.sh - - initfile - -f + + + bash + + ${basedir}/../../data-provider/database/src/main/resources/es-init.sh + initfile + -f ${project.build.directory}/EsInit.script - + @@ -211,9 +213,10 @@ testCluster 9500 ${databaseport} - 6.4.3 - ${project.build.directory}/EsInit.script + 6.5.0 120 + ${project.build.directory}/EsInit.script + ${skipTests} @@ -245,6 +248,5 @@ - + - -- cgit 1.2.3-korg