aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJimmy Forsyth <jf2512@att.com>2019-07-17 12:46:41 -0400
committerJimmy Forsyth <jf2512@att.com>2019-07-17 12:46:43 -0400
commitefbce77406835f2933e6633f78edf15209a1eb05 (patch)
tree65f902e5f810373f578c8bf71430401a9addaca8
parent7f5890c6fc0fc6ac130b0946e744c23e600832e9 (diff)
Change pom for global-jjb conversion
Issue-ID: AAI-2513 Signed-off-by: Jimmy Forsyth <jf2512@att.com> Change-Id: I81c05ca016491f49cf2e8b118167a0cafd6671f7
-rw-r--r--champ-service/pom.xml53
1 files changed, 36 insertions, 17 deletions
diff --git a/champ-service/pom.xml b/champ-service/pom.xml
index bb22cd7..7f5507b 100644
--- a/champ-service/pom.xml
+++ b/champ-service/pom.xml
@@ -346,22 +346,6 @@ limitations under the License.
</plugin>
<plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>0.4.11</version>
- <configuration>
- <verbose>true</verbose>
- <serverId>docker-hub</serverId>
- <imageName>${docker.push.registry}/onap/${docker.name}</imageName>
- <dockerDirectory>${docker.location}</dockerDirectory>
- <imageTags>
- <imageTag>latest</imageTag>
- </imageTags>
- <forceTags>true</forceTags>
- </configuration>
- </plugin>
-
- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
</plugin>
@@ -370,5 +354,40 @@ limitations under the License.
<artifactId>maven-site-plugin</artifactId>
</plugin>
</plugins>
- </build>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>docker</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.spotify</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>0.4.11</version>
+ <configuration>
+ <verbose>true</verbose>
+ <serverId>docker-hub</serverId>
+ <imageName>${docker.push.registry}/onap/${docker.name}</imageName>
+ <dockerDirectory>${docker.location}</dockerDirectory>
+ <imageTags>
+ <imageTag>latest</imageTag>
+ </imageTags>
+ <forceTags>true</forceTags>
+ </configuration>
+ <executions>
+ <execution>
+ <id>default</id>
+ <phase>package</phase>
+ <goals>
+ <goal>build</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
</project>