modify package pom.xml files to create binary file for Nexus
author“shentao” <shentao@chinamobile.com>
Thu, 29 Sep 2016 10:41:52 +0000 (18:41 +0800)
committerTao Shen <shentao@chinamobile.com>
Thu, 29 Sep 2016 11:15:22 +0000 (11:15 +0000)
Change-Id: If6e29e152d01bbbd0af2a80d49c222639d1a67df
Signed-off-by: “shentao” <shentao@chinamobile.com>
openo-portal/portal-package/pom.xml

index e93419e..a1a45ee 100644 (file)
           </overlays>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>zip</id>
+            <phase>package</phase>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <configuration>
+              <tasks name="${project.artifactId}">
+                <zip destfile="target/openo-portal-${project.version}.zip" update="true">
+                  <zipfileset dir="target" includes="*.war"/>
+                </zip>
+              </tasks>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 </project>