Reorganize pom for docker build 27/35527/1
authordglFromAtt <dgl@research.att.com>
Tue, 13 Mar 2018 04:50:42 +0000 (00:50 -0400)
committerdglFromAtt <dgl@research.att.com>
Tue, 13 Mar 2018 04:50:56 +0000 (00:50 -0400)
Change-Id: I9282ca2be2f331c7c311bdf7623c20a40a9c4fcc
Signed-off-by: dglFromAtt <dgl@research.att.com>
Issue-ID: DMAAP-327

pom.xml

diff --git a/pom.xml b/pom.xml
index 961076a..82df7de 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -37,7 +37,7 @@
               <fail>true</fail>
             </configuration>
           </execution>
-        </executions>
+            </executions>
       </plugin>
          <plugin>
         <!--Special goal to populate target/libs with dependencies to place in docker image -->
              </execution>
        </executions>
       </plugin>
+
+       <!-- for Distribution management -->
+               <plugin>
+                 <groupId>org.apache.maven.plugins</groupId>
+                 <artifactId>maven-site-plugin</artifactId>
+                 <version>3.6</version>
+                 <dependencies>
+                       <dependency>
+                         <groupId>org.apache.maven.wagon</groupId>
+                         <artifactId>wagon-webdav-jackrabbit</artifactId>
+                         <version>2.10</version>
+                       </dependency>
+                 </dependencies>
+               </plugin>
+
+    </plugins>
+    <pluginManagement>
+      <plugins>
+        <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
+        <plugin>
+          <groupId>org.eclipse.m2e</groupId>
+          <artifactId>lifecycle-mapping</artifactId>
+          <version>1.0.0</version>
+          <configuration>
+            <lifecycleMappingMetadata>
+              <pluginExecutions>
+                <pluginExecution>
+                  <pluginExecutionFilter>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-dependency-plugin</artifactId>
+                    <versionRange>[2.10,)</versionRange>
+                                           <phase>install</phase>
+                        <goals>
+                          <goal>copy-dependencies</goal>
+                        </goals>
+                  </pluginExecutionFilter>
+                  <action>
+                    <ignore/>
+                  </action>
+                </pluginExecution>
+              </pluginExecutions>
+            </lifecycleMappingMetadata>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+  </build>
+  <profiles>
+   <profile>
+    <id>docker</id>
+       <build>
+        <plugins>
       <plugin>
                <groupId>com.spotify</groupId>
                 <artifactId>docker-maven-plugin</artifactId>
                                 </execution>
                 </executions>
       </plugin>
-
-       <!-- for Distribution management -->
-               <plugin>
-                 <groupId>org.apache.maven.plugins</groupId>
-                 <artifactId>maven-site-plugin</artifactId>
-                 <version>3.6</version>
-                 <dependencies>
-                       <dependency>
-                         <groupId>org.apache.maven.wagon</groupId>
-                         <artifactId>wagon-webdav-jackrabbit</artifactId>
-                         <version>2.10</version>
-                       </dependency>
-                 </dependencies>
-               </plugin>
-
-    </plugins>
-    <pluginManagement>
-      <plugins>
-        <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
-        <plugin>
-          <groupId>org.eclipse.m2e</groupId>
-          <artifactId>lifecycle-mapping</artifactId>
-          <version>1.0.0</version>
-          <configuration>
-            <lifecycleMappingMetadata>
-              <pluginExecutions>
-                <pluginExecution>
-                  <pluginExecutionFilter>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-dependency-plugin</artifactId>
-                    <versionRange>[2.10,)</versionRange>
-                                           <phase>install</phase>
-                        <goals>
-                          <goal>copy-dependencies</goal>
-                        </goals>
-                  </pluginExecutionFilter>
-                  <action>
-                    <ignore/>
-                  </action>
-                </pluginExecution>
-              </pluginExecutions>
-            </lifecycleMappingMetadata>
-          </configuration>
-        </plugin>
-      </plugins>
-    </pluginManagement>
-  </build>
+        </plugins>
+       </build>
+   </profile>
+  </profiles>
   <dependencyManagement>
     <dependencies>