aboutsummaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authordglFromAtt <dgl@research.att.com>2018-03-14 07:21:04 -0400
committerdglFromAtt <dgl@research.att.com>2018-03-14 07:21:14 -0400
commit8ca57a82c2e6ca8a0baf9ffb3db4eec6f212a76f (patch)
treed22f9d4591a43ccac08381fb4cfb4f3df4d0ef92 /pom.xml
parent0113d283d1a1eb9e1f824e33eaf1a33711155b0d (diff)
Put docker plugin within docker profile
Change-Id: I076a4c3c32f7a88273151bd46fc7fa75b9577ccf Signed-off-by: dglFromAtt <dgl@research.att.com> Issue-ID: DMAAP-333
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml73
1 files changed, 41 insertions, 32 deletions
diff --git a/pom.xml b/pom.xml
index 3703507..8ba3911 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,7 +11,7 @@
<version>0.1.1</version>
<relativePath/>
</parent>
- <build>
+ <build>
<finalName>buscontroller</finalName>
<plugins>
@@ -84,37 +84,6 @@
</configuration>
</plugin>
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>1.0.0</version>
- <configuration>
- <imageName>${onap.nexus.dockerregistry.daily}/${docker.image}</imageName>
- <dockerDirectory>${project.basedir}</dockerDirectory>
- <serverId>${onap.nexus.dockerregistry.daily}</serverId>
- <imageTags>
- <imageTag>${artifact.version}</imageTag>
- <imageTag>latest</imageTag>
- </imageTags>
- <forceTags>true</forceTags>
- <resources>
- <resource>
- <targetPath>/</targetPath>
- <directory>${project.basedir}</directory>
- <excludes>
- <exclude>target/**/*</exclude>
- <exclude>pom.xml</exclude>
- </excludes>
- </resource>
-
- <resource>
- <targetPath>/</targetPath>
- <directory>${project.build.directory}</directory>
- <include>**/**</include>
- </resource>
- </resources>
- </configuration>
- </plugin>
<!-- for Distribution management -->
<plugin>
@@ -162,6 +131,46 @@
</plugins>
</pluginManagement>
</build>
+ <profiles>
+ <profile>
+ <id>docker</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.spotify</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>1.0.0</version>
+ <configuration>
+ <imageName>${onap.nexus.dockerregistry.daily}/${docker.image}</imageName>
+ <dockerDirectory>${project.basedir}</dockerDirectory>
+ <serverId>${onap.nexus.dockerregistry.daily}</serverId>
+ <imageTags>
+ <imageTag>${artifact.version}</imageTag>
+ <imageTag>latest</imageTag>
+ </imageTags>
+ <forceTags>true</forceTags>
+ <resources>
+ <resource>
+ <targetPath>/</targetPath>
+ <directory>${project.basedir}</directory>
+ <excludes>
+ <exclude>target/**/*</exclude>
+ <exclude>pom.xml</exclude>
+ </excludes>
+ </resource>
+
+ <resource>
+ <targetPath>/</targetPath>
+ <directory>${project.build.directory}</directory>
+ <include>**/**</include>
+ </resource>
+ </resources>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
<dependencyManagement>
<dependencies>