blob: 1750df30555582c948894b93a919067d1031bc2e [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>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +030021 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Stone, Avi (as206k)52591e42018-05-08 11:51:27 +030023 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
Stone, Avi (as206k)aa5abad2018-05-10 18:02:10 +030024 <staging.profile.id>176c31dfe190a</staging.profile.id>
Areli, Fuss (af732p)12f66da2018-05-21 16:35:34 +030025 <sitePath>/content/sites/site/org/openecomp/sdc/${project.version}</sitePath>
26 </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>
296 </properties>
297 <activation>
298 <activeByDefault>false</activeByDefault>
299 </activation>
300 <build>
301 <plugins>
302 <plugin>
303 <artifactId>maven-clean-plugin</artifactId>
304 <executions>
305 <execution>
306 <id>delete dcae fe war</id>
307 <phase>clean</phase>
308 <goals>
309 <goal>clean</goal>
310 </goals>
311 <configuration>
312 <filesets>
313 <fileset>
314 <directory>${project.parent.basedir}/docker/target</directory>
315 <followSymlinks>false</followSymlinks>
316 <includes>
317 <include>*.war</include>
318 </includes>
319 </fileset>
320 </filesets>
321 </configuration>
322 </execution>
323 </executions>
324 </plugin>
325
326
327 <plugin>
328 <artifactId>maven-resources-plugin</artifactId>
329 <version>3.0.2</version>
330 <executions>
331 <execution>
332 <id>copy-dcae-fe-war</id>
333 <phase>install</phase>
334 <goals>
335 <goal>copy-resources</goal>
336 </goals>
337 <configuration>
338 <outputDirectory>${project.basedir}/docker/target</outputDirectory>
339 <resources>
340 <resource>
341 <directory>${project.basedir}/target</directory>
342 <includes>
343 <include>dcae_fe.war</include>
344 </includes>
345 </resource>
346 </resources>
347 </configuration>
348 </execution>
349 </executions>
350 </plugin>
351 <plugin>
352 <groupId>io.fabric8</groupId>
353 <artifactId>docker-maven-plugin</artifactId>
354 <version>0.23.0</version>
355 <configuration>
356 <verbose>true</verbose>
357 <apiVersion>1.23</apiVersion>
358 <images>
359 <!-- Build front image -->
360 <image>
361 <name>onap/dcae-fe</name>
362 <alias>dcae-fe</alias>
363 <build>
364 <cleanup>try</cleanup>
365 <dockerFileDir>${project.basedir}/docker</dockerFileDir>
366 <tags>
367 <tag>${docker.tag}</tag>
368 <tag>${docker.latest.tag}</tag>
369 </tags>
370 </build>
371 </image>
372 </images>
373 </configuration>
374 <executions>
375 <execution>
376 <id>clean-images</id>
377 <phase>pre-clean</phase>
378 <goals>
379 <goal>remove</goal>
380 </goals>
381 <configuration>
382 <removeAll>true</removeAll>
383 <image>onap/dcae-fe</image>
384 </configuration>
385 </execution>
386 <execution>
387 <id>generate-images</id>
388 <phase>install</phase>
389 <goals>
390 <goal>build</goal>
391 </goals>
392 </execution>
393 <execution>
394 <id>push-images</id>
395 <phase>deploy</phase>
396 <goals>
397 <goal>push</goal>
398 </goals>
399 <configuration>
400 <image>onap/dcae-fe</image>
401 </configuration>
402 </execution>
403 </executions>
404 </plugin>
405 </plugins>
406 </build>
407 </profile>
408 </profiles>
Stone, Avi (as206k)52591e42018-05-08 11:51:27 +0300409 <repositories>
410 <!-- LF repositories -->
411 <repository>
412 <id>ecomp-releases</id>
413 <name>Release Repository</name>
414 <url>${nexus.proxy}/content/repositories/releases/</url>
415 </repository>
416 <repository>
417 <id>ecomp-snapshots</id>
418 <name>Snapshots Repository</name>
419 <url>${nexus.proxy}/content/repositories/snapshots/</url>
420 </repository>
421 <repository>
422 <id>ecomp-public</id>
423 <name>Public Repository</name>
424 <url>${nexus.proxy}/content/repositories/public/</url>
425 </repository>
426 <!-- LF repositories END-->
427 </repositories>
428
429 <distributionManagement>
430 <repository>
431 <id>ecomp-releases</id>
432 <name>Release Repository</name>
433 <url>${nexus.proxy}/content/repositories/releases/</url>
434 </repository>
435 <snapshotRepository>
436 <id>ecomp-snapshots</id>
437 <name>Snapshot Repository</name>
438 <url>${nexus.proxy}/content/repositories/snapshots/</url>
439 </snapshotRepository>
440 <site>
441 <id>ecomp-site</id>
442 <url>dav:${nexus.proxy}${sitePath}</url>
443 </site>
444 </distributionManagement>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +0300445</project>