aboutsummaryrefslogtreecommitdiffstats
path: root/ms/neng
diff options
context:
space:
mode:
Diffstat (limited to 'ms/neng')
-rw-r--r--ms/neng/pom.xml50
1 files changed, 26 insertions, 24 deletions
diff --git a/ms/neng/pom.xml b/ms/neng/pom.xml
index 8f6c7b15..81c1e668 100644
--- a/ms/neng/pom.xml
+++ b/ms/neng/pom.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
+<!--
* ============LICENSE_START=======================================================
* ONAP : CCSDK.apps
* ================================================================================
@@ -8,9 +8,9 @@
* 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.
@@ -19,7 +19,7 @@
* ============LICENSE_END=========================================================
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.onap.ccsdk.apps</groupId>
@@ -56,11 +56,9 @@
<ccsdk.distribution.version>0.2.4</ccsdk.distribution.version>
<docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
<docker.push.phase>deploy</docker.push.phase>
- <docker.build.phase>deploy</docker.build.phase>
<docker.verbose>true</docker.verbose>
<ccsdk.project.version>${project.version}</ccsdk.project.version>
<image.name>onap/ccsdk-apps-ms-neng</image.name>
-
</properties>
<profiles>
@@ -129,7 +127,7 @@
<goals>
<goal>copy-resources</goal>
</goals>
- <phase>${docker.build.phase}</phase>
+ <phase>validate</phase>
<configuration>
<outputDirectory>${basedir}/target/docker-stage</outputDirectory>
<resources>
@@ -149,7 +147,7 @@
<goals>
<goal>copy-resources</goal>
</goals>
- <phase>${docker.build.phase}</phase>
+ <phase>validate</phase>
<configuration>
<outputDirectory>${basedir}/target/docker-stage</outputDirectory>
<resources>
@@ -168,7 +166,7 @@
<goals>
<goal>copy-resources</goal>
</goals>
- <phase>${docker.build.phase}</phase>
+ <phase>validate</phase>
<configuration>
<outputDirectory>${basedir}/target/docker-stage/opt/etc/config</outputDirectory>
<resources>
@@ -184,8 +182,8 @@
</execution>
</executions>
</plugin>
-
-
+
+
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
@@ -209,8 +207,15 @@
</configuration>
<executions>
<execution>
+ <id>generate-images</id>
+ <phase>package</phase>
+ <goals>
+ <goal>build</goal>
+ </goals>
+ </execution>
+ <execution>
<id>push-images</id>
- <phase>${docker.build.phase}</phase>
+ <phase>${docker.push.phase}</phase>
<goals>
<goal>build</goal>
<goal>push</goal>
@@ -229,13 +234,13 @@
<id>${userId}</id>
</developer>
</developers>
-
-
+
+
<parent>
<groupId>org.onap.ccsdk.parent</groupId>
<artifactId>odlparent-lite</artifactId>
<version>1.1.0-SNAPSHOT</version>
- <relativePath />
+ <relativePath/>
</parent>
<dependencyManagement>
@@ -387,15 +392,14 @@
<source>
println project.properties['ccsdk.project.version'];
def versionArray;
- if (project.properties['ccsdk.project.version'] != null ) {
+ if (project.properties['ccsdk.project.version'] != null) {
versionArray = project.properties['ccsdk.project.version'].split('\\.');
}
- if (project.properties['ccsdk.project.version'].endsWith("-SNAPSHOT"))
- {
- project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
+ if (project.properties['ccsdk.project.version'].endsWith("-SNAPSHOT")) {
+ project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
} else {
- project.properties['project.docker.latesttag.version']=versionArray[0]+'.' + versionArray[1]+"-STAGING-latest";
+ project.properties['project.docker.latesttag.version'] = versionArray[0] + '.' + versionArray[1] + "-STAGING-latest";
}
println 'New Tag for docker:' + project.properties['project.docker.latesttag.version'];
@@ -516,7 +520,7 @@
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
</plugin>
-
+
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
@@ -630,6 +634,4 @@
</plugins>
</pluginManagement>
</build>
-
-</project>
-
+</project> \ No newline at end of file