diff options
Diffstat (limited to 'ms/neng/pom.xml')
-rw-r--r-- | ms/neng/pom.xml | 161 |
1 files changed, 156 insertions, 5 deletions
diff --git a/ms/neng/pom.xml b/ms/neng/pom.xml index a282f2cc..9cf6f33c 100644 --- a/ms/neng/pom.xml +++ b/ms/neng/pom.xml @@ -32,8 +32,8 @@ <icd.package>org.onap.ccsdk.apps.ms.neng.service.rs</icd.package> <java.version>1.8</java.version> <spring.version>4.3.8.RELEASE</spring.version> - <springboot.version>1.5.3.RELEASE</springboot.version> - <docker.registry>TBD:5100</docker.registry> + <springboot.version>1.5.6.RELEASE</springboot.version> + <docker.registry>nexus3.onap.org:10003</docker.registry> <build.number>local</build.number> <kube.namespace>TBD</kube.namespace> <service.account>TBD</service.account> @@ -52,6 +52,8 @@ <sonar.jacoco.itReportPath>${basedir}/target/jacoco-it.exec</sonar.jacoco.itReportPath> <sonar.language>java</sonar.language> <serviceArtifactName>ms-networkelementnamegen</serviceArtifactName> + <project.version>0.3.0</project.version> + <ccsdk.distribution.version>0.2.4</ccsdk.distribution.version> </properties> <profiles> @@ -74,6 +76,39 @@ <skip.unit.tests>true</skip.unit.tests> </properties> </profile> + + <profile> + <id>blackduck</id> + <activation> + <property> + <name>blackduck-scan</name> + </property> + </activation> + <build> + <plugins> + <plugin> + <groupId>com.blackducksoftware.integration</groupId> + <artifactId>hub-maven-plugin</artifactId> + <version>1.4.0</version> + <inherited>false</inherited> + <configuration> + <hubProjectName>${project.name}</hubProjectName> + <outputDirectory>${project.basedir}</outputDirectory> + </configuration> + <executions> + <execution> + <id>create-bdio-file</id> + <phase>package</phase> + <goals> + <goal>createHubOutput</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> <developers> @@ -189,12 +224,10 @@ <groupId>org.springframework</groupId> <artifactId>spring-aop</artifactId> <version>${spring.version}</version> - <scope>test</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> - <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> @@ -338,12 +371,74 @@ <artifactId>exec-maven-plugin</artifactId> <groupId>org.codehaus.mojo</groupId> </plugin> + <!-- + <plugin> + <groupId>io.fabric8</groupId> + <artifactId>docker-maven-plugin</artifactId> + <inherited>false</inherited> + <configuration> + <verbose>false</verbose> + <images> + <image> + <name>onap/ccsdk-apps-ms-neng</name> + <build> + <cleanup>try</cleanup> + <dockerFileDir>${basedir}/src/main/docker</dockerFileDir> + <dockerFile>Dockerfile</dockerFile> + <tags> + <tag>${project.version}</tag> + </tags> + + <assembly> + <targetDir>/</targetDir> + <inline> + <files> + <file> + <source>${project.build.directory}/${build.finalName}.${project.packaging}</source> + </file> + </files> + <fileSet> + <directory>${basedir}/opt/etc</directory> + <outputDirectory>opt/etc</outputDirectory> + <includes> + <include>**</include> + </includes> + </fileSet> + </inline> + </assembly> + + + </build> + </image> + </images> + </configuration> + <executions> + <execution> + <id>generate-images</id> + <phase>package</phase> + <goals> + <goal>build</goal> + </goals> + </execution> + + <execution> + <id>push-images</id> + <phase>deploy</phase> + <goals> + <goal>build</goal> + <goal>push</goal> + </goals> + </execution> + </executions> + </plugin> + --> + <plugin> <groupId>com.spotify</groupId> <artifactId>docker-maven-plugin</artifactId> <version>0.4.11</version> <configuration> - <imageName>${docker.registry}/org.onap.ccsdk.apps/${serviceArtifactName}</imageName> + <imageName>${docker.registry}/org.onap.ccsdk.apps/${serviceArtifactName}:${project.version}</imageName> <dockerDirectory>src/main/docker</dockerDirectory> <serverId>docker-hub</serverId> <registryUrl>https://${docker.registry}</registryUrl> @@ -441,6 +536,62 @@ </includes> </resource> </resources> + <pluginManagement> + <plugins> + <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> + <plugin> + <groupId>org.eclipse.m2e</groupId> + <artifactId>lifecycle-mapping</artifactId> + <version>1.0.0</version> + <configuration> + <lifecycleMappingMetadata> + <pluginExecutions> + <pluginExecution> + <pluginExecutionFilter> + <groupId> + org.apache.maven.plugins + </groupId> + <artifactId> + maven-checkstyle-plugin + </artifactId> + <versionRange> + [2.17,) + </versionRange> + <goals> + <goal>check</goal> + </goals> + </pluginExecutionFilter> + <action> + <ignore></ignore> + </action> + </pluginExecution> + <pluginExecution> + <pluginExecutionFilter> + <groupId> + org.codehaus.mojo + </groupId> + <artifactId> + properties-maven-plugin + </artifactId> + <versionRange> + [1.0.0,) + </versionRange> + <goals> + <goal> + set-system-properties + </goal> + </goals> + </pluginExecutionFilter> + <action> + <ignore></ignore> + </action> + </pluginExecution> + </pluginExecutions> + </lifecycleMappingMetadata> + </configuration> + </plugin> + </plugins> + </pluginManagement> </build> </project> |