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-gran/feature/pom.xml | 43 +++--- sdnr/wt/devicemanager-gran/installer/pom.xml | 186 ++++++++++++------------ sdnr/wt/devicemanager-gran/model/pom.xml | 80 ++++++----- sdnr/wt/devicemanager-gran/pom.xml | 18 +-- sdnr/wt/devicemanager-gran/provider/pom.xml | 205 ++++++++++++++------------- 5 files changed, 268 insertions(+), 264 deletions(-) (limited to 'sdnr/wt/devicemanager-gran') diff --git a/sdnr/wt/devicemanager-gran/feature/pom.xml b/sdnr/wt/devicemanager-gran/feature/pom.xml index 161c030ef..bc7ff2cb4 100644 --- a/sdnr/wt/devicemanager-gran/feature/pom.xml +++ b/sdnr/wt/devicemanager-gran/feature/pom.xml @@ -21,29 +21,28 @@ * ============LICENSE_END========================================================= --> - - 4.0.0 + + 4.0.0 - org.onap.ccsdk.features.sdnr.wt - sdnr-wt-devicemanager-gran-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-gran-feature + 0.7.0-SNAPSHOT + feature - - - ${project.groupId} - sdnr-wt-devicemanager-gran-provider - ${project.version} - - + ccsdk-features :: ${project.artifactId} + + + + ${project.groupId} + sdnr-wt-devicemanager-gran-provider + ${project.version} + + diff --git a/sdnr/wt/devicemanager-gran/installer/pom.xml b/sdnr/wt/devicemanager-gran/installer/pom.xml index 9cbe113d2..e0764ab3f 100755 --- a/sdnr/wt/devicemanager-gran/installer/pom.xml +++ b/sdnr/wt/devicemanager-gran/installer/pom.xml @@ -22,104 +22,104 @@ --> - 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-gran-installer - 0.7.0-SNAPSHOT - pom - ccsdk-features-sdnr-wt :: ${project.artifactId} + org.onap.ccsdk.features.sdnr.wt + sdnr-wt-devicemanager-gran-installer + 0.7.0-SNAPSHOT + pom - - sdnr-wt-devicemanager-gran - false - + ccsdk-features :: ${project.artifactId} - + + sdnr-wt-devicemanager-gran + 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-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 + + + + + + diff --git a/sdnr/wt/devicemanager-gran/model/pom.xml b/sdnr/wt/devicemanager-gran/model/pom.xml index b95a6cf0a..39d2b5346 100644 --- a/sdnr/wt/devicemanager-gran/model/pom.xml +++ b/sdnr/wt/devicemanager-gran/model/pom.xml @@ -22,47 +22,49 @@ --> - 4.0.0 - org.onap.ccsdk.features.sdnr.wt - sdnr-wt-devicemanager-gran-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-gran-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.jacoco - jacoco-maven-plugin - - - **/gen/** - **/generated-sources/** - **/yang-gen-sal/** - **/pax/** - - - - - + + true + + + + + + + + + org.jacoco + jacoco-maven-plugin + + + **/gen/** + **/generated-sources/** + **/yang-gen-sal/** + **/pax/** + + + + + diff --git a/sdnr/wt/devicemanager-gran/pom.xml b/sdnr/wt/devicemanager-gran/pom.xml index d661d7d5f..b39543812 100755 --- a/sdnr/wt/devicemanager-gran/pom.xml +++ b/sdnr/wt/devicemanager-gran/pom.xml @@ -24,12 +24,6 @@ 4.0.0 - org.onap.ccsdk.features.sdnr.wt - sdnr-wt-devicemanager-gran-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-gran - + org.onap.ccsdk.features.sdnr.wt + sdnr-wt-devicemanager-gran-top + 0.7.0-SNAPSHOT + pom + + ccsdk-features :: ${project.artifactId} model @@ -48,4 +45,7 @@ installer + + sdnr-wt-devicemanager-gran + diff --git a/sdnr/wt/devicemanager-gran/provider/pom.xml b/sdnr/wt/devicemanager-gran/provider/pom.xml index 56ec1c2f4..16f4dbaf0 100644 --- a/sdnr/wt/devicemanager-gran/provider/pom.xml +++ b/sdnr/wt/devicemanager-gran/provider/pom.xml @@ -16,102 +16,103 @@ ============LICENSE_END========================================================= --> - 4.0.0 + 4.0.0 - org.onap.ccsdk.features.sdnr.wt - sdnr-wt-devicemanager-gran-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-gran-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 - - - - ${project.groupId} - sdnr-wt-devicemanager-gran-model - ${project.version} - - - ${project.groupId} - sdnr-wt-netconfnode-state-service-model - ${project.version} - provided - - - org.onap.ccsdk.features.sdnr.wt - sdnr-wt-devicemanager-model - ${project.version} - provided - - - org.onap.ccsdk.features.sdnr.wt - sdnr-wt-common - ${project.version} - provided - - - org.osgi - org.osgi.core - provided - - - 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 - - - - - - src/main/resources - true - - - + + + + org.mockito + mockito-core + test + + + + ${project.groupId} + sdnr-wt-devicemanager-gran-model + ${project.version} + + + ${project.groupId} + sdnr-wt-netconfnode-state-service-model + ${project.version} + provided + + + org.onap.ccsdk.features.sdnr.wt + sdnr-wt-devicemanager-model + ${project.version} + provided + + + org.onap.ccsdk.features.sdnr.wt + sdnr-wt-common + ${project.version} + provided + + + org.osgi + org.osgi.core + provided + + + 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 + + + + + + + src/main/resources + true + + + org.jacoco jacoco-maven-plugin @@ -133,15 +134,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 - + @@ -153,8 +155,10 @@ testCluster 9500 ${databaseport} - 6.4.3 + 6.5.0 + 120 ${project.build.directory}/EsInit.script + ${skipTests} @@ -186,6 +190,5 @@ - + - -- cgit 1.2.3-korg