aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsblimkie <sb787e@att.com>2019-07-16 13:36:20 -0400
committersblimkie <steven.blimkie@amdocs.com>2019-07-16 13:47:58 -0400
commit23dc949b6f0f4635c21ae8969ad1c5f0efa46aff (patch)
tree30ee49ce4ec8ee2a283409a6e89c186bb9bc99e7
parent7f5890c6fc0fc6ac130b0946e744c23e600832e9 (diff)
Refactor pom for use with global jjb
Change-Id: I45f5617fd7771d442157f6adb5cb72ac616767f0 Issue-ID: AAI-2483 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
-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..93126bd 100644
--- a/champ-service/pom.xml
+++ b/champ-service/pom.xml
@@ -344,23 +344,6 @@ limitations under the License.
</execution>
</executions>
</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>
@@ -371,4 +354,40 @@ limitations under the License.
</plugin>
</plugins>
</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>