blob: 692709370be01342d9619c49c9bf507634b624f3 [file] [log] [blame]
Eran (ev672n), Voskb9708a72018-08-07 14:15:05 +03001<project xmlns="http://maven.apache.org/POM/4.0.0"
2 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
4 <modelVersion>4.0.0</modelVersion>
5 <groupId>org.onap.sdc.dcae-d.dt</groupId>
6 <artifactId>dcae-dt</artifactId>
7 <version>1.2.0-SNAPSHOT</version>
8 <packaging>war</packaging>
9 <name>dcae-dt</name>
10 <url>DCAE FE</url>
11
12 <parent>
13 <groupId>org.springframework.boot</groupId>
14 <artifactId>spring-boot-starter-parent</artifactId>
15 <version>1.5.9.RELEASE</version>
16 <relativePath /> <!-- lookup parent from repository -->
17 </parent>
18
19 <properties>
20 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
21 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
22 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
23 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
25 <java.version>1.8</java.version>
26 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
27 <staging.profile.id>176c31dfe190a</staging.profile.id>
28 <sitePath>/content/sites/site/org/openecomp/sdc/${project.version}</sitePath>
29 <sonar.branch>${project.version}</sonar.branch>
30 </properties>
31 <dependencies>
32 <dependency>
33 <groupId>org.eclipse.jetty</groupId>
34 <artifactId>jetty-proxy</artifactId>
35 <version>${jetty.version}</version>
36 </dependency>
37 </dependencies>
38 <profiles>
39 <profile>
40 <id>local</id>
41 <activation>
42 <activeByDefault>false</activeByDefault>
43 </activation>
44 <dependencies>
45 <dependency>
46 <groupId>org.springframework.boot</groupId>
47 <artifactId>spring-boot-starter-web</artifactId>
48 <exclusions>
49 <exclusion>
50 <groupId>org.springframework.boot</groupId>
51 <artifactId>spring-boot-starter-tomcat</artifactId>
52 </exclusion>
53 </exclusions>
54 </dependency>
55 <dependency>
56 <groupId>org.springframework.boot</groupId>
57 <artifactId>spring-boot-starter-jetty</artifactId>
58 <exclusions>
59 <exclusion>
60 <groupId>org.eclipse.jetty.websocket</groupId>
61 <artifactId>*</artifactId>
62 </exclusion>
63 </exclusions>
64 </dependency>
65 <dependency>
66 <groupId>org.springframework.boot</groupId>
67 <artifactId>spring-boot-starter-test</artifactId>
68 <scope>test</scope>
69 </dependency>
70 <dependency>
71 <groupId>org.apache.commons</groupId>
72 <artifactId>commons-lang3</artifactId>
73 <version>3.5</version>
74 </dependency>
75 <dependency>
76 <groupId>commons-net</groupId>
77 <artifactId>commons-net</artifactId>
78 <version>3.3</version>
79 </dependency>
80 <dependency>
81 <groupId>com.jcraft</groupId>
82 <artifactId>jsch</artifactId>
83 <version>0.1.54</version>
84 </dependency>
85 <dependency>
86 <groupId>com.google.code.gson</groupId>
87 <artifactId>gson</artifactId>
88 </dependency>
89 <dependency>
90 <groupId>org.json</groupId>
91 <artifactId>json</artifactId>
92 <version>20160810</version>
93 </dependency>
94 <dependency>
95 <groupId>javax.servlet</groupId>
96 <artifactId>servlet-api</artifactId>
97 <version>2.5</version>
98 <scope>provided</scope>
99 </dependency>
100 <dependency>
101 <groupId>org.onap.sdc.dcae-d.dt-be-property</groupId>
102 <artifactId>DCAE-DT-PROPERTY</artifactId>
103 <version>1.2.0-SNAPSHOT</version>
104 <exclusions>
105 <exclusion>
106 <groupId>org.slf4j</groupId>
107 <artifactId>slf4j-api</artifactId>
108 </exclusion>
109 <exclusion>
110 <groupId>log4j</groupId>
111 <artifactId>log4j</artifactId>
112 </exclusion>
113 </exclusions>
114 </dependency>
115 </dependencies>
116 </profile>
117
118 <profile>
119 <id>server</id>
120 <activation>
121 <activeByDefault>true</activeByDefault>
122 </activation>
123 <dependencies>
124 <dependency>
125 <groupId>org.springframework.boot</groupId>
126 <artifactId>spring-boot-starter-web</artifactId>
127 <exclusions>
128 <exclusion>
129 <groupId>org.springframework.boot</groupId>
130 <artifactId>spring-boot-starter-tomcat</artifactId>
131 </exclusion>
132 </exclusions>
133 </dependency>
134 <dependency>
135 <groupId>org.springframework.boot</groupId>
136 <artifactId>spring-boot-starter-test</artifactId>
137 <scope>test</scope>
138 </dependency>
139 <dependency>
140 <groupId>org.apache.commons</groupId>
141 <artifactId>commons-lang3</artifactId>
142 <version>3.5</version>
143 </dependency>
144 <dependency>
145 <groupId>commons-net</groupId>
146 <artifactId>commons-net</artifactId>
147 <version>3.3</version>
148 </dependency>
149 <dependency>
150 <groupId>com.jcraft</groupId>
151 <artifactId>jsch</artifactId>
152 <version>0.1.54</version>
153 </dependency>
154 <dependency>
155 <groupId>com.google.code.gson</groupId>
156 <artifactId>gson</artifactId>
157 </dependency>
158 <dependency>
159 <groupId>org.json</groupId>
160 <artifactId>json</artifactId>
161 </dependency>
162 <dependency>
163 <groupId>javax.servlet</groupId>
164 <artifactId>javax.servlet-api</artifactId>
165 <scope>provided</scope>
166 </dependency>
167 <dependency>
168 <groupId>org.onap.sdc.dcae-d.dt-be-property</groupId>
169 <artifactId>DCAE-DT-PROPERTY</artifactId>
170 <version>1.2.0-SNAPSHOT</version>
171 <exclusions>
172 <exclusion>
173 <groupId>org.slf4j</groupId>
174 <artifactId>slf4j-api</artifactId>
175 </exclusion>
176 <exclusion>
177 <groupId>log4j</groupId>
178 <artifactId>log4j</artifactId>
179 </exclusion>
180 </exclusions>
181 </dependency>
182 </dependencies>
183 </profile>
184
185 <!-- Docker -->
186 <profile>
187 <id>docker</id>
188 <activation>
189 <activeByDefault>false</activeByDefault>
190 </activation>
191 <properties>
192 <fabric8.version>0.23.0</fabric8.version>
193 <docker.registry>nexus3.onap.org:10001</docker.registry>
194 <docker.username>docker</docker.username>
195 <docker.password>docker</docker.password>
196 <docker.namespace>onap</docker.namespace>
197 </properties>
198 <build>
199 <plugins>
200 <plugin>
201 <groupId>io.fabric8</groupId>
202 <artifactId>docker-maven-plugin</artifactId>
203 <version>${fabric8.version}</version>
204
205 <configuration>
206 <verbose>true</verbose>
207 <apiVersion>1.23</apiVersion>
208 <registry>${docker.registry}</registry>
209 <authConfig>
210 <username>${docker.username}</username>
211 <password>${docker.password}</password>
212 </authConfig>
213 <images>
214 <!-- Build backend image -->
215 <image>
216 <name>${docker.namespace}/${project.artifactId}</name>
217 <alias>${project.artifactId}</alias>
218 <build>
219 <cleanup>try</cleanup>
220 <dockerFileDir>${project.basedir}</dockerFileDir>
221 <tags>
222 <tag>${docker.tag}</tag>
223 <tag>${docker.latest.tag}</tag>
224 <tag>${docker.staging.tag}</tag>
225 </tags>
226 </build>
227 </image>
228 </images>
229 </configuration>
230 <executions>
231 <execution>
232 <id>clean-images</id>
233 <phase>pre-clean</phase>
234 <goals>
235 <goal>remove</goal>
236 </goals>
237 <configuration>
238 <removeAll>true</removeAll>
239 </configuration>
240 </execution>
241 <execution>
242 <id>generate-images</id>
243 <phase>install</phase>
244 <goals>
245 <goal>build</goal>
246 </goals>
247 </execution>
248 <execution>
249 <id>push-images</id>
250 <phase>deploy</phase>
251 <goals>
252 <goal>push</goal>
253 </goals>
254 </execution>
255 </executions>
256 </plugin>
257 </plugins>
258 </build>
259 </profile>
260
261
262
263 </profiles>
264
265 <build>
266 <finalName>dcae-dt</finalName>
267
268 <!-- CLEAN -->
269 <plugins>
270 <plugin>
271 <artifactId>maven-clean-plugin</artifactId>
272 <executions>
273 <execution>
274 <id>auto-clean</id>
275 <phase>initialize</phase>
276 <goals>
277 <goal>clean</goal>
278 </goals>
279 </execution>
280 </executions>
281 </plugin>
282
283 <!-- GRUNT + WEBAPP -->
284 <plugin>
285 <groupId>com.github.eirslett</groupId>
286 <artifactId>frontend-maven-plugin</artifactId>
287 <version>1.4</version>
288 <executions>
289 <execution>
290 <id>install node and npm</id>
291 <goals>
292 <goal>install-node-and-npm</goal>
293 </goals>
294 <configuration>
295 <!-- See https://nodejs.org/en/download/ for latest node and npm (lts)
296 versions -->
297 <nodeVersion>v6.9.5</nodeVersion>
298 <npmVersion>3.10.10</npmVersion>
299 </configuration>
300 </execution>
301 <execution>
302 <id>npm run setup</id>
303 <goals>
304 <goal>npm</goal>
305 </goals>
306 <!-- Optional configuration which provides for running any npm command -->
307 <configuration>
308 <arguments>run setup</arguments>
309 </configuration>
310 </execution>
311 <execution>
312 <id>npm run build</id>
313 <goals>
314 <goal>npm</goal>
315 </goals>
316 <configuration>
317 <arguments>run build:prod</arguments>
318 <arguments>run build</arguments>
319 </configuration>
320 </execution>
321 </executions>
322 </plugin>
323
324 <!-- COPT FROM DIST TO WEBAPPS -->
325 <plugin>
326 <artifactId>maven-resources-plugin</artifactId>
327 <executions>
328 <execution>
329 <id>copy-resources</id>
330 <phase>prepare-package</phase>
331 <goals>
332 <goal>copy-resources</goal>
333 </goals>
334 <configuration>
335 <outputDirectory>src/main/webapp</outputDirectory>
336 <resources>
337 <resource>
338 <directory>${project.basedir}/dist/exploded</directory>
339 <filtering>false</filtering>
340 </resource>
341 </resources>
342 </configuration>
343 </execution>
344 </executions>
345 </plugin>
346 <plugin>
347 <groupId>org.sonatype.plugins</groupId>
348 <artifactId>nexus-staging-maven-plugin</artifactId>
349 <version>1.6.7</version>
350 <extensions>true</extensions>
351 <configuration>
352 <nexusUrl>${nexus.proxy}</nexusUrl>
353 <stagingProfileId>${staging.profile.id}</stagingProfileId>
354 <serverId>ecomp-staging</serverId>
355 </configuration>
356 </plugin>
357
358 <!-- ENRICH WITH SPRING BOOT JARS -->
359 <plugin>
360 <groupId>org.springframework.boot</groupId>
361 <artifactId>spring-boot-maven-plugin</artifactId>
362 <configuration>
363 <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
364 <webResources>
365 <resource>
366 <!-- this is relative to the pom.xml directory -->
367 <directory>src/main/webapp/</directory>
368 </resource>
369 </webResources>
370 <archive>
371 <manifest>
372 <mainClass>org.openecomp.sdc.dcae.FeApp</mainClass>
373 </manifest>
374 </archive>
375 </configuration>
376 </plugin>
377
378 <plugin>
379 <groupId>org.apache.maven.plugins</groupId>
380 <artifactId>maven-war-plugin</artifactId>
381 <configuration>
382 <archive>
383 <manifestEntries>
384 <Specification-Version>${project.version}</Specification-Version>
385 </manifestEntries>
386 </archive>
387 </configuration>
388 </plugin>
389 <!-- Site Plugin -->
390 <plugin>
391 <groupId>org.apache.maven.plugins</groupId>
392 <artifactId>maven-site-plugin</artifactId>
393 <version>3.4</version>
394 <dependencies>
395 <dependency>
396 <groupId>org.apache.maven.wagon</groupId>
397 <artifactId>wagon-webdav-jackrabbit</artifactId>
398 <version>2.10</version>
399 </dependency>
400 </dependencies>
401 </plugin>
402 </plugins>
403 </build>
404 <repositories>
405 <!-- LF repositories -->
406 <repository>
407 <id>ecomp-releases</id>
408 <name>Release Repository</name>
409 <url>${nexus.proxy}/content/repositories/releases/</url>
410 </repository>
411 <repository>
412 <id>ecomp-snapshots</id>
413 <name>Snapshots Repository</name>
414 <url>${nexus.proxy}/content/repositories/snapshots/</url>
415 </repository>
416 <repository>
417 <id>ecomp-public</id>
418 <name>Public Repository</name>
419 <url>${nexus.proxy}/content/repositories/public/</url>
420 </repository>
421 <!-- LF repositories END-->
422 </repositories>
423
424 <distributionManagement>
425 <repository>
426 <id>ecomp-releases</id>
427 <name>Release Repository</name>
428 <url>${nexus.proxy}/content/repositories/releases/</url>
429 </repository>
430 <snapshotRepository>
431 <id>ecomp-snapshots</id>
432 <name>Snapshot Repository</name>
433 <url>${nexus.proxy}/content/repositories/snapshots/</url>
434 </snapshotRepository>
435 <site>
436 <id>ecomp-site</id>
437 <url>dav:${nexus.proxy}${sitePath}</url>
438 </site>
439 </distributionManagement>
440 <!-- <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId>
441 <artifactId>maven-war-plugin</artifactId> <version>3.0.0</version> <configuration>
442 <webResources> <resource> <directory>dist/imploded</directory> <targetPath>/</targetPath>
443 </resource> </webResources> </configuration> </plugin> </plugins> </build> -->
444
445</project>