diff options
Diffstat (limited to 'openo-portal/portal-package')
-rw-r--r-- | openo-portal/portal-package/pom.xml | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/openo-portal/portal-package/pom.xml b/openo-portal/portal-package/pom.xml index a1a45ee9..e93b04a5 100644 --- a/openo-portal/portal-package/pom.xml +++ b/openo-portal/portal-package/pom.xml @@ -26,6 +26,10 @@ <artifactId>portal-package</artifactId> <packaging>war</packaging> + <properties> + <packagename>openo-portal</packagename> + </properties> + <dependencies> <dependency> <groupId>org.openo.gso.gui</groupId> @@ -113,7 +117,7 @@ </goals> <configuration> <tasks name="${project.artifactId}"> - <zip destfile="target/openo-portal-${project.version}.zip" update="true"> + <zip destfile="target/${packagename}-${project.version}.zip" update="true"> <zipfileset dir="target" includes="*.war"/> </zip> </tasks> @@ -121,6 +125,27 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>attach-artifacts</id> + <phase>package</phase> + <goals> + <goal>attach-artifact</goal> + </goals> + <configuration> + <artifacts> + <artifact> + <file>target/${packagename}-${project.version}.zip</file> + <type>zip</type> + </artifact> + </artifacts> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </project> |