blob: edfb4f0f7b33b4e5a2383face99524c234da9cb3 [file] [log] [blame]
Stone, Avi (as206k)aa5abad2018-05-10 18:02:10 +03001<project
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +03002 xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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 <groupId>org.onap.sdc.dcae-d.fe</groupId>
6 <artifactId>dcae_fe</artifactId>
7 <version>1.2.0-SNAPSHOT</version>
8 <packaging>war</packaging>
Stone, Avi (as206k)1fe5ba02018-05-24 14:27:03 +03009 <name>dcae-d fe application</name>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030010 <description>DCAE FE</description>
11
12 <parent>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +030013 <groupId>org.springframework.boot</groupId>
14 <artifactId>spring-boot-starter-parent</artifactId>
Betzer, Rony (rb844h)df0e0922018-05-30 17:44:08 +030015 <version>1.5.13.RELEASE</version>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +030016 <relativePath />
17 <!-- lookup parent from repository -->
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030018 </parent>
19
20 <properties>
Areli, Fuss (af732p)a6eb0af2018-05-22 11:08:23 +030021 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
23 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
24 <staging.profile.id>176c31dfe190a</staging.profile.id>
25 <sitePath>/content/sites/site/org/openecomp/sdc/${project.version}</sitePath>
Stone, Avi (as206k)1fe5ba02018-05-24 14:27:03 +030026 <sonar.branch>${project.version}</sonar.branch>
Stone, Avi (as206k)40bb7dc2018-06-07 16:39:02 +030027 <sonar.coverage.exclusions>**</sonar.coverage.exclusions>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030028 </properties>
29 <dependencies>
Stone, Avi (as206k)ad54f182018-05-24 12:36:16 +030030 <dependency>
31 <groupId>org.eclipse.jetty</groupId>
32 <artifactId>jetty-proxy</artifactId>
33 <version>${jetty.version}</version>
34 </dependency>
35 <dependency>
36 <groupId>org.springframework.boot</groupId>
37 <artifactId>spring-boot-starter-web</artifactId>
38 <exclusions>
39 <exclusion>
40 <groupId>org.springframework.boot</groupId>
41 <artifactId>spring-boot-starter-tomcat</artifactId>
42 </exclusion>
43 </exclusions>
44 </dependency>
45 <dependency>
46 <groupId>org.springframework.boot</groupId>
47 <artifactId>spring-boot-starter-test</artifactId>
48 <scope>test</scope>
49 </dependency>
50 <dependency>
51 <groupId>org.apache.commons</groupId>
52 <artifactId>commons-lang3</artifactId>
53 <version>3.5</version>
54 </dependency>
55 <dependency>
56 <groupId>commons-net</groupId>
57 <artifactId>commons-net</artifactId>
58 <version>3.3</version>
59 </dependency>
60 <dependency>
61 <groupId>com.jcraft</groupId>
62 <artifactId>jsch</artifactId>
63 <version>0.1.54</version>
64 </dependency>
65 <dependency>
66 <groupId>com.google.code.gson</groupId>
67 <artifactId>gson</artifactId>
68 </dependency>
69 <dependency>
70 <groupId>org.json</groupId>
71 <artifactId>json</artifactId>
72 </dependency>
73 <dependency>
74 <groupId>javax.servlet</groupId>
75 <artifactId>javax.servlet-api</artifactId>
76 <scope>provided</scope>
77 </dependency>
78 <dependency>
79 <groupId>org.onap.sdc.dcae-d.dt-be-property</groupId>
80 <artifactId>DCAE-DT-PROPERTY</artifactId>
81 <version>1.2.0-SNAPSHOT</version>
82 </dependency>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030083 </dependencies>
Stone, Avi (as206k)aa5abad2018-05-10 18:02:10 +030084
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030085 <build>
86 <finalName>dcae_fe</finalName>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030087 <!-- CLEAN -->
88 <plugins>
89 <plugin>
90 <artifactId>maven-clean-plugin</artifactId>
91 <executions>
92 <execution>
93 <id>auto-clean</id>
94 <phase>initialize</phase>
95 <goals>
96 <goal>clean</goal>
97 </goals>
98 </execution>
99 </executions>
100 </plugin>
101 <!-- install node+yarn and run yarn build -->
102 <plugin>
103 <groupId>com.github.eirslett</groupId>
104 <artifactId>frontend-maven-plugin</artifactId>
105 <version>1.6</version>
106 <configuration>
107 <workingDirectory>${project.basedir}/public</workingDirectory>
108 <installDirectory>target</installDirectory>
109 <nodeVersion>v9.11.1</nodeVersion>
110 <yarnVersion>v1.6.0</yarnVersion>
111 </configuration>
112 <executions>
113 <execution>
114 <id>install node and yarn</id>
115 <goals>
116 <goal>install-node-and-yarn</goal>
117 </goals>
118 <phase>generate-resources</phase>
119 </execution>
120 <execution>
121 <id>yarn-install</id>
122 <goals>
123 <goal>yarn</goal>
124 </goals>
125 <configuration>
126 <arguments>global add node-gyp --network-timeout 1000000</arguments>
127 </configuration>
128 </execution>
129 <execution>
130 <id>yarn install</id>
131 <goals>
132 <goal>yarn</goal>
133 </goals>
134 <configuration>
135 <arguments>install --network-timeout 1000000</arguments>
136 </configuration>
137 </execution>
138 <execution>
139 <id>angular cli build</id>
140 <goals>
141 <goal>yarn</goal>
142 </goals>
143 <phase>generate-resources</phase>
144 <configuration>
145 <arguments>run build</arguments>
146 </configuration>
147 </execution>
148 </executions>
149 </plugin>
150 <!-- COPT FROM DIST TO WEBAPPS -->
151 <plugin>
152 <artifactId>maven-resources-plugin</artifactId>
153 <executions>
154 <execution>
155 <id>copy-resources-fe</id>
156 <phase>prepare-package</phase>
157 <goals>
158 <goal>copy-resources</goal>
159 </goals>
160 <configuration>
161 <outputDirectory>src/main/webapp</outputDirectory>
162 <resources>
163 <resource>
164 <directory>${project.basedir}/public/dist</directory>
165 <filtering>false</filtering>
166 </resource>
167 </resources>
168 </configuration>
169 </execution>
170 </executions>
171 </plugin>
172 <plugin>
173 <groupId>org.apache.maven.plugins</groupId>
174 <artifactId>maven-war-plugin</artifactId>
175 <version>3.0.0</version>
176 </plugin>
177 <!-- Site Plugin -->
178 <plugin>
179 <groupId>org.apache.maven.plugins</groupId>
180 <artifactId>maven-site-plugin</artifactId>
181 <version>3.4</version>
182 <dependencies>
183 <dependency>
184 <groupId>org.apache.maven.wagon</groupId>
185 <artifactId>wagon-webdav-jackrabbit</artifactId>
186 <version>2.10</version>
187 </dependency>
188 </dependencies>
189 </plugin>
190 <!-- Staging Plugin -->
191 <plugin>
192 <groupId>org.sonatype.plugins</groupId>
193 <artifactId>nexus-staging-maven-plugin</artifactId>
194 <version>1.6.7</version>
195 <extensions>true</extensions>
196 <configuration>
197 <nexusUrl>${nexus.proxy}</nexusUrl>
198 <stagingProfileId>${staging.profile.id}</stagingProfileId>
199 <serverId>ecomp-staging</serverId>
200 </configuration>
201 </plugin>
202 <plugin>
203 <groupId>org.codehaus.mojo</groupId>
204 <artifactId>build-helper-maven-plugin</artifactId>
205 <version>1.8</version>
206 <executions>
207 <execution>
208 <id>parse-version</id>
209 <goals>
210 <goal>parse-version</goal>
211 </goals>
212 </execution>
213 </executions>
214 </plugin>
215 </plugins>
216 </build>
217
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +0300218 <profiles>
219 <profile>
220 <id>local</id>
221 <activation>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +0300222 <activeByDefault>false</activeByDefault>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +0300223 </activation>
224 <dependencies>
225 <dependency>
226 <groupId>org.springframework.boot</groupId>
227 <artifactId>spring-boot-starter-web</artifactId>
228 <exclusions>
229 <exclusion>
230 <groupId>org.springframework.boot</groupId>
231 <artifactId>spring-boot-starter-tomcat</artifactId>
232 </exclusion>
233 </exclusions>
234 </dependency>
235 <dependency>
236 <groupId>org.springframework.boot</groupId>
237 <artifactId>spring-boot-starter-jetty</artifactId>
238 <exclusions>
239 <exclusion>
240 <groupId>org.eclipse.jetty.websocket</groupId>
241 <artifactId>*</artifactId>
242 </exclusion>
243 </exclusions>
244 </dependency>
245 <dependency>
246 <groupId>org.springframework.boot</groupId>
247 <artifactId>spring-boot-starter-test</artifactId>
248 <scope>test</scope>
249 </dependency>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +0300250 </dependencies>
251 </profile>
252
253 <profile>
254 <id>docker</id>
255 <properties>
256 <!-- Docker tags -->
257 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
258 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
259 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
Areli, Fuss (af732p)a6eb0af2018-05-22 11:08:23 +0300260 <docker.staging.tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</docker.staging.tag>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +0300261 </properties>
262 <activation>
263 <activeByDefault>false</activeByDefault>
264 </activation>
265 <build>
266 <plugins>
267 <plugin>
268 <artifactId>maven-clean-plugin</artifactId>
269 <executions>
270 <execution>
271 <id>delete dcae fe war</id>
272 <phase>clean</phase>
273 <goals>
274 <goal>clean</goal>
275 </goals>
276 <configuration>
277 <filesets>
278 <fileset>
279 <directory>${project.parent.basedir}/docker/target</directory>
280 <followSymlinks>false</followSymlinks>
281 <includes>
282 <include>*.war</include>
283 </includes>
284 </fileset>
285 </filesets>
286 </configuration>
287 </execution>
288 </executions>
289 </plugin>
290
291
292 <plugin>
293 <artifactId>maven-resources-plugin</artifactId>
294 <version>3.0.2</version>
295 <executions>
296 <execution>
297 <id>copy-dcae-fe-war</id>
298 <phase>install</phase>
299 <goals>
300 <goal>copy-resources</goal>
301 </goals>
302 <configuration>
303 <outputDirectory>${project.basedir}/docker/target</outputDirectory>
304 <resources>
305 <resource>
306 <directory>${project.basedir}/target</directory>
307 <includes>
308 <include>dcae_fe.war</include>
309 </includes>
310 </resource>
311 </resources>
312 </configuration>
313 </execution>
314 </executions>
315 </plugin>
316 <plugin>
317 <groupId>io.fabric8</groupId>
318 <artifactId>docker-maven-plugin</artifactId>
319 <version>0.23.0</version>
320 <configuration>
321 <verbose>true</verbose>
322 <apiVersion>1.23</apiVersion>
323 <images>
324 <!-- Build front image -->
325 <image>
326 <name>onap/dcae-fe</name>
327 <alias>dcae-fe</alias>
328 <build>
329 <cleanup>try</cleanup>
330 <dockerFileDir>${project.basedir}/docker</dockerFileDir>
331 <tags>
332 <tag>${docker.tag}</tag>
333 <tag>${docker.latest.tag}</tag>
Areli, Fuss (af732p)a6eb0af2018-05-22 11:08:23 +0300334 <tag>${docker.staging.tag}</tag>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +0300335 </tags>
336 </build>
337 </image>
338 </images>
339 </configuration>
340 <executions>
341 <execution>
342 <id>clean-images</id>
343 <phase>pre-clean</phase>
344 <goals>
345 <goal>remove</goal>
346 </goals>
347 <configuration>
348 <removeAll>true</removeAll>
349 <image>onap/dcae-fe</image>
350 </configuration>
351 </execution>
352 <execution>
353 <id>generate-images</id>
354 <phase>install</phase>
355 <goals>
356 <goal>build</goal>
357 </goals>
358 </execution>
359 <execution>
360 <id>push-images</id>
361 <phase>deploy</phase>
362 <goals>
363 <goal>push</goal>
364 </goals>
365 <configuration>
366 <image>onap/dcae-fe</image>
367 </configuration>
368 </execution>
369 </executions>
370 </plugin>
371 </plugins>
372 </build>
373 </profile>
374 </profiles>
Stone, Avi (as206k)52591e42018-05-08 11:51:27 +0300375 <repositories>
376 <!-- LF repositories -->
377 <repository>
378 <id>ecomp-releases</id>
379 <name>Release Repository</name>
380 <url>${nexus.proxy}/content/repositories/releases/</url>
381 </repository>
382 <repository>
383 <id>ecomp-snapshots</id>
384 <name>Snapshots Repository</name>
385 <url>${nexus.proxy}/content/repositories/snapshots/</url>
386 </repository>
387 <repository>
388 <id>ecomp-public</id>
389 <name>Public Repository</name>
390 <url>${nexus.proxy}/content/repositories/public/</url>
391 </repository>
392 <!-- LF repositories END-->
393 </repositories>
394
395 <distributionManagement>
396 <repository>
397 <id>ecomp-releases</id>
398 <name>Release Repository</name>
399 <url>${nexus.proxy}/content/repositories/releases/</url>
400 </repository>
401 <snapshotRepository>
402 <id>ecomp-snapshots</id>
403 <name>Snapshot Repository</name>
404 <url>${nexus.proxy}/content/repositories/snapshots/</url>
405 </snapshotRepository>
406 <site>
407 <id>ecomp-site</id>
408 <url>dav:${nexus.proxy}${sitePath}</url>
409 </site>
410 </distributionManagement>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +0300411</project>