diff options
author | dglFromAtt <dgl@research.att.com> | 2018-03-14 07:21:04 -0400 |
---|---|---|
committer | dglFromAtt <dgl@research.att.com> | 2018-03-14 07:21:14 -0400 |
commit | 8ca57a82c2e6ca8a0baf9ffb3db4eec6f212a76f (patch) | |
tree | d22f9d4591a43ccac08381fb4cfb4f3df4d0ef92 /pom.xml | |
parent | 0113d283d1a1eb9e1f824e33eaf1a33711155b0d (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.xml | 73 |
1 files changed, 41 insertions, 32 deletions
@@ -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> |