e93b04a5a3cd85edeab586a0145b0acbfb39bf8c
[vnfsdk/refrepo.git] / openo-portal / portal-package / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3     Copyright 2016, CMCC Technologies Co., Ltd.
4
5     Licensed under the Apache License, Version 2.0 (the "License");
6     you may not use this file except in compliance with the License.
7     You may obtain a copy of the License at
8
9             http://www.apache.org/licenses/LICENSE-2.0
10
11     Unless required by applicable law or agreed to in writing, software
12     distributed under the License is distributed on an "AS IS" BASIS,
13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14     See the License for the specific language governing permissions and
15     limitations under the License.
16 -->
17 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
19   <parent>
20     <groupId>org.openo.gso.gui</groupId>
21     <artifactId>openo-portal</artifactId>
22     <version>1.0.0-SNAPSHOT</version>
23   </parent>
24
25   <modelVersion>4.0.0</modelVersion>
26   <artifactId>portal-package</artifactId>
27   <packaging>war</packaging>
28
29   <properties>
30     <packagename>openo-portal</packagename>
31   </properties>
32
33   <dependencies>
34     <dependency>
35       <groupId>org.openo.gso.gui</groupId>
36       <artifactId>portal-common</artifactId>
37       <version>1.0.0-SNAPSHOT</version>
38       <type>war</type>
39     </dependency>
40     <dependency>
41       <groupId>org.openo.gso.gui</groupId>
42       <artifactId>portal-resmgr</artifactId>
43       <version>1.0.0-SNAPSHOT</version>
44       <type>war</type>
45     </dependency>
46     <dependency>
47       <groupId>org.openo.gso.gui</groupId>
48       <artifactId>portal-extsys</artifactId>
49       <version>1.0.0-SNAPSHOT</version>
50       <type>war</type>
51     </dependency>
52     <dependency>
53       <groupId>org.openo.gso.gui</groupId>
54       <artifactId>portal-catalog</artifactId>
55       <version>1.0.0-SNAPSHOT</version>
56       <type>war</type>
57     </dependency>
58     <dependency>
59       <groupId>org.openo.gso.gui</groupId>
60       <artifactId>portal-auth</artifactId>
61       <version>1.0.0-SNAPSHOT</version>
62       <type>war</type>
63     </dependency>
64     <dependency>
65       <groupId>org.openo.gso.gui</groupId>
66       <artifactId>portal-lifecyclemgr</artifactId>
67       <version>1.0.0-SNAPSHOT</version>
68       <type>war</type>
69     </dependency>
70   </dependencies>
71
72   <build>
73     <finalName>openo-portal</finalName>
74     <plugins>
75       <plugin>
76         <groupId>org.apache.maven.plugins</groupId>
77         <artifactId>maven-war-plugin</artifactId>
78         <configuration>
79           <packagingExcludes>WEB-INF/web.xml</packagingExcludes>
80           <overlays>
81             <overlay>
82               <groupId>org.openo.gso.gui</groupId>
83               <artifactId>portal-common</artifactId>
84             </overlay>
85             <overlay>
86               <groupId>org.openo.gso.gui</groupId>
87               <artifactId>portal-resmgr</artifactId>
88             </overlay>
89             <overlay>
90               <groupId>org.openo.gso.gui</groupId>
91               <artifactId>portal-extsys</artifactId>
92             </overlay>
93             <overlay>
94               <groupId>org.openo.gso.gui</groupId>
95               <artifactId>portal-catalog</artifactId>
96             </overlay>
97             <overlay>
98               <groupId>org.openo.gso.gui</groupId>
99               <artifactId>portal-auth</artifactId>
100             </overlay>
101             <overlay>
102               <groupId>org.openo.gso.gui</groupId>
103               <artifactId>portal-lifecyclemgr</artifactId>
104             </overlay>
105           </overlays>
106         </configuration>
107       </plugin>
108       <plugin>
109         <groupId>org.apache.maven.plugins</groupId>
110         <artifactId>maven-antrun-plugin</artifactId>
111         <executions>
112           <execution>
113             <id>zip</id>
114             <phase>package</phase>
115             <goals>
116               <goal>run</goal>
117             </goals>
118             <configuration>
119               <tasks name="${project.artifactId}">
120                 <zip destfile="target/${packagename}-${project.version}.zip" update="true">
121                   <zipfileset dir="target" includes="*.war"/>
122                 </zip>
123               </tasks>
124             </configuration>
125           </execution>
126         </executions>
127       </plugin>
128       <plugin>
129         <groupId>org.codehaus.mojo</groupId>
130         <artifactId>build-helper-maven-plugin</artifactId>
131         <executions>
132           <execution>
133             <id>attach-artifacts</id>
134             <phase>package</phase>
135             <goals>
136               <goal>attach-artifact</goal>
137             </goals>
138             <configuration>
139               <artifacts>
140                 <artifact>
141                   <file>target/${packagename}-${project.version}.zip</file>
142                   <type>zip</type>
143                 </artifact>
144               </artifacts>
145             </configuration>
146           </execution>
147         </executions>
148       </plugin>
149     </plugins>
150   </build>
151 </project>