Add build helper to pom 61/34361/4
authorPatrick Brady <pb071s@att.com>
Tue, 6 Mar 2018 22:07:57 +0000 (17:07 -0500)
committerPatrick Brady <pb071s@att.com>
Tue, 6 Mar 2018 22:40:02 +0000 (17:40 -0500)
Need to re-add the build helper plugin
to pom in order to attach the zip file for
deployment.

Change-Id: I73afb91e622890601cfd723ef33ac9b40352dd7b
Signed-off-by: Patrick Brady <pb071s@att.com>
Issue-ID: APPC-627

pom.xml

diff --git a/pom.xml b/pom.xml
index 833f850..d53701b 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -159,26 +159,49 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
                 </executions>
             </plugin>
 
-      <plugin>
-        <artifactId>maven-assembly-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>maven-repo-zip</id>
-            <goals>
-              <goal>single</goal>
-            </goals>
-            <phase>package</phase>
-            <configuration>
-              <appendAssemblyId>false</appendAssemblyId>
-              <attach>false</attach>
-              <finalName>${project.artifactId}-${project.version}</finalName>
-              <descriptors>
-                <descriptor>assemble_dist_zip.xml</descriptor>
-              </descriptors>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
+            <plugin>
+              <artifactId>maven-assembly-plugin</artifactId>
+              <executions>
+                <execution>
+                  <id>maven-repo-zip</id>
+                  <goals>
+                    <goal>single</goal>
+                  </goals>
+                  <phase>package</phase>
+                  <configuration>
+                    <appendAssemblyId>false</appendAssemblyId>
+                    <attach>false</attach>
+                    <finalName>${project.artifactId}-${project.version}</finalName>
+                    <descriptors>
+                      <descriptor>assemble_dist_zip.xml</descriptor>
+                    </descriptors>
+                  </configuration>
+                </execution>
+              </executions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <version>1.12</version>
+                <executions>
+                    <execution>
+                        <id>attach-artifacts</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>attach-artifact</goal>
+                        </goals>
+                        <configuration>
+                            <artifacts>
+                                <artifact>
+                                    <file>target/${project.artifactId}-${project.version}.zip</file>
+                                    <type>zip</type>
+                                </artifact>
+                            </artifacts>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
 
         </plugins>
     </build>