Change pom for global-jjb conversion 15/91615/1
authorJimmy Forsyth <jf2512@att.com>
Wed, 17 Jul 2019 16:46:41 +0000 (12:46 -0400)
committerJimmy Forsyth <jf2512@att.com>
Wed, 17 Jul 2019 16:46:43 +0000 (12:46 -0400)
Issue-ID: AAI-2513
Signed-off-by: Jimmy Forsyth <jf2512@att.com>
Change-Id: I81c05ca016491f49cf2e8b118167a0cafd6671f7

champ-service/pom.xml

index bb22cd7..7f5507b 100644 (file)
@@ -345,22 +345,6 @@ limitations under the License.
                 </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>
@@ -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>