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