aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author“shentao” <shentao@chinamobile.com>2016-09-29 18:41:52 +0800
committerTao Shen <shentao@chinamobile.com>2016-09-29 11:15:22 +0000
commit0dd54bed0d0597ec0ca63bc1d0b32bc28f2a8d38 (patch)
tree896e9d1835b82ed2613dde1759db9a0a30dc5064
parentd97d5dcabe0be3e3959bc452efceb22d2ca08ef2 (diff)
modify package pom.xml files to create binary file for Nexus
Change-Id: If6e29e152d01bbbd0af2a80d49c222639d1a67df Signed-off-by: “shentao” <shentao@chinamobile.com>
-rw-r--r--openo-portal/portal-package/pom.xml20
1 files changed, 20 insertions, 0 deletions
diff --git a/openo-portal/portal-package/pom.xml b/openo-portal/portal-package/pom.xml
index e93419e9..a1a45ee9 100644
--- a/openo-portal/portal-package/pom.xml
+++ b/openo-portal/portal-package/pom.xml
@@ -101,6 +101,26 @@
</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>