blob: f537d2af136e0fa991bb6e926926e5f48576871a [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>
9 <name>DCAE FE application</name>
10 <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>
15 <version>1.5.9.RELEASE</version>
16 <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>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030026 </properties>
27 <dependencies>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +030028 <dependency>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030029 <groupId>org.eclipse.jetty</groupId>
30 <artifactId>jetty-proxy</artifactId>
31 <version>${jetty.version}</version>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +030032 </dependency>
Stone, Avi (as206k)cdbd9242018-05-21 14:21:54 +030033 <dependency>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030034 <groupId>org.springframework.boot</groupId>
35 <artifactId>spring-boot-starter-web</artifactId>
36 <exclusions>
37 <exclusion>
Stone, Avi (as206k)cdbd9242018-05-21 14:21:54 +030038 <groupId>org.springframework.boot</groupId>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030039 <artifactId>spring-boot-starter-tomcat</artifactId>
40 </exclusion>
41 </exclusions>
Stone, Avi (as206k)cdbd9242018-05-21 14:21:54 +030042 </dependency>
43 <dependency>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030044 <groupId>org.springframework.boot</groupId>
45 <artifactId>spring-boot-starter-test</artifactId>
46 <scope>test</scope>
Stone, Avi (as206k)cdbd9242018-05-21 14:21:54 +030047 </dependency>
48 <dependency>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030049 <groupId>org.apache.commons</groupId>
50 <artifactId>commons-lang3</artifactId>
51 <version>3.5</version>
Stone, Avi (as206k)cdbd9242018-05-21 14:21:54 +030052 </dependency>
53 <dependency>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030054 <groupId>commons-net</groupId>
55 <artifactId>commons-net</artifactId>
56 <version>3.3</version>
Stone, Avi (as206k)cdbd9242018-05-21 14:21:54 +030057 </dependency>
58 <dependency>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030059 <groupId>com.jcraft</groupId>
60 <artifactId>jsch</artifactId>
61 <version>0.1.54</version>
Stone, Avi (as206k)cdbd9242018-05-21 14:21:54 +030062 </dependency>
63 <dependency>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030064 <groupId>com.google.code.gson</groupId>
65 <artifactId>gson</artifactId>
Stone, Avi (as206k)cdbd9242018-05-21 14:21:54 +030066 </dependency>
67 <dependency>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030068 <groupId>org.json</groupId>
69 <artifactId>json</artifactId>
Stone, Avi (as206k)cdbd9242018-05-21 14:21:54 +030070 </dependency>
71 <dependency>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030072 <groupId>javax.servlet</groupId>
73 <artifactId>javax.servlet-api</artifactId>
74 <scope>provided</scope>
Stone, Avi (as206k)cdbd9242018-05-21 14:21:54 +030075 </dependency>
76 <dependency>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030077 <groupId>org.onap.sdc.dcae-d.dt-be-property</groupId>
78 <artifactId>DCAE-DT-PROPERTY</artifactId>
79 <version>1.2.0-SNAPSHOT</version>
Stone, Avi (as206k)cdbd9242018-05-21 14:21:54 +030080 </dependency>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030081 </dependencies>
Stone, Avi (as206k)aa5abad2018-05-10 18:02:10 +030082
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030083 <build>
84 <finalName>dcae_fe</finalName>
85
86
87 <!-- 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
218
219 <profiles>
220 <profile>
221 <id>local</id>
222 <activation>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +0300223 <activeByDefault>false</activeByDefault>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +0300224 </activation>
225 <dependencies>
226 <dependency>
227 <groupId>org.springframework.boot</groupId>
228 <artifactId>spring-boot-starter-web</artifactId>
229 <exclusions>
230 <exclusion>
231 <groupId>org.springframework.boot</groupId>
232 <artifactId>spring-boot-starter-tomcat</artifactId>
233 </exclusion>
234 </exclusions>
235 </dependency>
236 <dependency>
237 <groupId>org.springframework.boot</groupId>
238 <artifactId>spring-boot-starter-jetty</artifactId>
239 <exclusions>
240 <exclusion>
241 <groupId>org.eclipse.jetty.websocket</groupId>
242 <artifactId>*</artifactId>
243 </exclusion>
244 </exclusions>
245 </dependency>
246 <dependency>
247 <groupId>org.springframework.boot</groupId>
248 <artifactId>spring-boot-starter-test</artifactId>
249 <scope>test</scope>
250 </dependency>
251 <dependency>
252 <groupId>org.apache.commons</groupId>
253 <artifactId>commons-lang3</artifactId>
254 <version>3.5</version>
255 </dependency>
256 <dependency>
257 <groupId>commons-net</groupId>
258 <artifactId>commons-net</artifactId>
259 <version>3.3</version>
260 </dependency>
261 <dependency>
262 <groupId>com.jcraft</groupId>
263 <artifactId>jsch</artifactId>
264 <version>0.1.54</version>
265 </dependency>
266 <dependency>
267 <groupId>com.google.code.gson</groupId>
268 <artifactId>gson</artifactId>
269 </dependency>
270 <dependency>
271 <groupId>org.json</groupId>
272 <artifactId>json</artifactId>
273 <version>20160810</version>
274 </dependency>
275 <dependency>
276 <groupId>javax.servlet</groupId>
277 <artifactId>servlet-api</artifactId>
278 <version>2.5</version>
279 <scope>provided</scope>
280 </dependency>
281 <dependency>
282 <groupId>org.onap.sdc.dcae-d.dt-be-property</groupId>
283 <artifactId>DCAE-DT-PROPERTY</artifactId>
284 <version>1.2.0-SNAPSHOT</version>
285 </dependency>
286 </dependencies>
287 </profile>
288
289 <profile>
290 <id>docker</id>
291 <properties>
292 <!-- Docker tags -->
293 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
294 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
295 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
Areli, Fuss (af732p)a6eb0af2018-05-22 11:08:23 +0300296 <docker.staging.tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</docker.staging.tag>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +0300297 </properties>
298 <activation>
299 <activeByDefault>false</activeByDefault>
300 </activation>
301 <build>
302 <plugins>
303 <plugin>
304 <artifactId>maven-clean-plugin</artifactId>
305 <executions>
306 <execution>
307 <id>delete dcae fe war</id>
308 <phase>clean</phase>
309 <goals>
310 <goal>clean</goal>
311 </goals>
312 <configuration>
313 <filesets>
314 <fileset>
315 <directory>${project.parent.basedir}/docker/target</directory>
316 <followSymlinks>false</followSymlinks>
317 <includes>
318 <include>*.war</include>
319 </includes>
320 </fileset>
321 </filesets>
322 </configuration>
323 </execution>
324 </executions>
325 </plugin>
326
327
328 <plugin>
329 <artifactId>maven-resources-plugin</artifactId>
330 <version>3.0.2</version>
331 <executions>
332 <execution>
333 <id>copy-dcae-fe-war</id>
334 <phase>install</phase>
335 <goals>
336 <goal>copy-resources</goal>
337 </goals>
338 <configuration>
339 <outputDirectory>${project.basedir}/docker/target</outputDirectory>
340 <resources>
341 <resource>
342 <directory>${project.basedir}/target</directory>
343 <includes>
344 <include>dcae_fe.war</include>
345 </includes>
346 </resource>
347 </resources>
348 </configuration>
349 </execution>
350 </executions>
351 </plugin>
352 <plugin>
353 <groupId>io.fabric8</groupId>
354 <artifactId>docker-maven-plugin</artifactId>
355 <version>0.23.0</version>
356 <configuration>
357 <verbose>true</verbose>
358 <apiVersion>1.23</apiVersion>
359 <images>
360 <!-- Build front image -->
361 <image>
362 <name>onap/dcae-fe</name>
363 <alias>dcae-fe</alias>
364 <build>
365 <cleanup>try</cleanup>
366 <dockerFileDir>${project.basedir}/docker</dockerFileDir>
367 <tags>
368 <tag>${docker.tag}</tag>
369 <tag>${docker.latest.tag}</tag>
Areli, Fuss (af732p)a6eb0af2018-05-22 11:08:23 +0300370 <tag>${docker.staging.tag}</tag>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +0300371 </tags>
372 </build>
373 </image>
374 </images>
375 </configuration>
376 <executions>
377 <execution>
378 <id>clean-images</id>
379 <phase>pre-clean</phase>
380 <goals>
381 <goal>remove</goal>
382 </goals>
383 <configuration>
384 <removeAll>true</removeAll>
385 <image>onap/dcae-fe</image>
386 </configuration>
387 </execution>
388 <execution>
389 <id>generate-images</id>
390 <phase>install</phase>
391 <goals>
392 <goal>build</goal>
393 </goals>
394 </execution>
395 <execution>
396 <id>push-images</id>
397 <phase>deploy</phase>
398 <goals>
399 <goal>push</goal>
400 </goals>
401 <configuration>
402 <image>onap/dcae-fe</image>
403 </configuration>
404 </execution>
405 </executions>
406 </plugin>
407 </plugins>
408 </build>
409 </profile>
410 </profiles>
Stone, Avi (as206k)52591e42018-05-08 11:51:27 +0300411 <repositories>
412 <!-- LF repositories -->
413 <repository>
414 <id>ecomp-releases</id>
415 <name>Release Repository</name>
416 <url>${nexus.proxy}/content/repositories/releases/</url>
417 </repository>
418 <repository>
419 <id>ecomp-snapshots</id>
420 <name>Snapshots Repository</name>
421 <url>${nexus.proxy}/content/repositories/snapshots/</url>
422 </repository>
423 <repository>
424 <id>ecomp-public</id>
425 <name>Public Repository</name>
426 <url>${nexus.proxy}/content/repositories/public/</url>
427 </repository>
428 <!-- LF repositories END-->
429 </repositories>
430
431 <distributionManagement>
432 <repository>
433 <id>ecomp-releases</id>
434 <name>Release Repository</name>
435 <url>${nexus.proxy}/content/repositories/releases/</url>
436 </repository>
437 <snapshotRepository>
438 <id>ecomp-snapshots</id>
439 <name>Snapshot Repository</name>
440 <url>${nexus.proxy}/content/repositories/snapshots/</url>
441 </snapshotRepository>
442 <site>
443 <id>ecomp-site</id>
444 <url>dav:${nexus.proxy}${sitePath}</url>
445 </site>
446 </distributionManagement>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +0300447</project>