Add collaboration feature
[sdc.git] / openecomp-ui / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4     <modelVersion>4.0.0</modelVersion>
5
6     <groupId>org.openecomp.sdc</groupId>
7     <artifactId>onboarding-fe</artifactId>
8     <name>onboarding-ui-war</name>
9     <packaging>war</packaging>
10
11     <parent>
12         <groupId>org.openecomp.sdc</groupId>
13         <artifactId>sdc-onboarding</artifactId>
14         <version>1.2.0-SNAPSHOT</version>
15         <relativePath>../onboarding</relativePath>
16     </parent>
17
18     <properties>
19         <maven.war.plugin.version>3.0.0</maven.war.plugin.version>
20     </properties>
21
22     <build>
23         <plugins>
24             <plugin>
25                 <artifactId>maven-clean-plugin</artifactId>
26                 <version>2.6.1</version>
27                 <executions>
28                     <execution>
29                         <id>clean.dist.folder</id>
30                         <phase>clean</phase>
31                         <goals>
32                             <goal>clean</goal>
33                         </goals>
34                         <configuration>
35                             <filesets>
36                                 <fileset>
37                                     <directory>${basedir}/dist</directory>
38                                 </fileset>
39                                 <!--<fileset>-->
40                                     <!--<directory>${basedir}/node_modules</directory>-->
41                                 <!--</fileset>-->
42                                 <fileset>
43                                     <directory>${basedir}/coverage</directory>
44                                 </fileset>
45                                 <fileset>
46                                     <directory>${basedir}/../dox-sequence-diagram-ui/dist
47                                     </directory>
48                                 </fileset>
49                                 <!--<fileset>-->
50                                     <!--<directory>${basedir}/../dox-sequence-diagram-ui/node_modules-->
51                                     <!--</directory>-->
52                                 <!--</fileset>-->
53                             </filesets>
54                         </configuration>
55                     </execution>
56                 </executions>
57             </plugin>
58
59             <!-- ============================================= -->
60             <!-- Build the UI module node code -->
61             <!-- ============================================= -->
62             <plugin>
63                 <groupId>com.github.eirslett</groupId>
64                 <artifactId>frontend-maven-plugin</artifactId>
65                 <version>1.4</version>
66
67                 <configuration>
68                     <installDirectory>${project.parent.parent.basedir}</installDirectory>
69                 </configuration>
70
71                 <executions>
72
73                     <execution>
74                         <id>install node and npm</id>
75                         <goals>
76                             <goal>install-node-and-npm</goal>
77                         </goals>
78                         <configuration>
79                             <nodeVersion>v6.9.5</nodeVersion>
80                             <npmVersion>3.10.10</npmVersion>
81                         </configuration>
82                     </execution>
83
84                     <execution>
85                         <id>npm set progress off</id>
86                         <goals>
87                             <goal>npm</goal>
88                         </goals>
89                         <configuration>
90                             <arguments>set progress=false</arguments>
91                         </configuration>
92                     </execution>
93
94                     <execution>
95                         <id>npm install in dox-sequence-diagram-ui</id>
96                         <goals>
97                             <goal>npm</goal>
98                         </goals>
99                         <configuration>
100                             <workingDirectory>${project.basedir}/../dox-sequence-diagram-ui
101                             </workingDirectory>
102                             <arguments>install</arguments>
103                         </configuration>
104                     </execution>
105
106                     <!-- Fix jQuery dependency in restful-js -->
107                     <execution>
108                         <id>npm restful-js</id>
109                         <goals>
110                             <goal>npm</goal>
111                         </goals>
112                         <configuration>
113                             <arguments>install restful-js</arguments>
114                         </configuration>
115                     </execution>
116                     <execution>
117                         <id>npm install restful-js dependencies</id>
118                         <goals>
119                             <goal>npm</goal>
120                         </goals>
121                         <configuration>
122                             <workingDirectory>${project.basedir}/node_modules/restful-js
123                             </workingDirectory>
124                             <arguments>install --production</arguments>
125                         </configuration>
126                     </execution>
127
128                     <execution>
129                         <id>npm install</id>
130                         <goals>
131                             <goal>npm</goal>
132                         </goals>
133                         <configuration>
134                             <arguments>install</arguments>
135                         </configuration>
136                     </execution>
137
138                     <execution>
139                         <id>npm run build</id>
140                         <goals>
141                             <goal>npm</goal>
142                         </goals>
143                         <configuration>
144                             <arguments>run build -- --version=${project.version}</arguments>
145                         </configuration>
146                     </execution>
147                     <execution>
148                         <id>ui test</id>
149                         <goals>
150                             <goal>npm</goal>
151                         </goals>
152                         <configuration>
153                             <arguments>run test-build</arguments>
154                         </configuration>
155                         <phase>test</phase>
156                     </execution>
157                 </executions>
158             </plugin>
159
160             <plugin>
161                 <artifactId>maven-antrun-plugin</artifactId>
162                 <executions>
163                     <execution>
164                         <id>repack war</id>
165                         <phase>prepare-package</phase>
166                         <configuration>
167                             <tasks>
168                                 <echo message="Building test environment"/>
169                                 <unzip src="dist/onboarding.war" dest="${basedir}/target/dist">
170                                     <patternset>
171                                         <include name="**/*"/>
172                                     </patternset>
173                                 </unzip>
174                             </tasks>
175                         </configuration>
176                         <goals>
177                             <goal>run</goal>
178                         </goals>
179                     </execution>
180                 </executions>
181             </plugin>
182
183             <plugin>
184                 <groupId>org.apache.maven.plugins</groupId>
185                 <artifactId>maven-war-plugin</artifactId>
186                 <version>${maven.war.plugin.version}</version>
187                 <configuration>
188                     <webResources>
189                         <resource>
190                             <directory>${basedir}/target/dist</directory>
191                         </resource>
192                     </webResources>
193                 </configuration>
194             </plugin>
195         </plugins>
196     </build>
197
198 </project>