blob: b60729950cc29421ce61b7159382377225697f89 [file] [log] [blame]
Stone, Avi (as206k)aa5abad2018-05-10 18:02:10 +03001<project
2 xmlns="http://maven.apache.org/POM/4.0.0"
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +03003 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>
Stone, Avi (as206k)aa5abad2018-05-10 18:02:10 +03005 <groupId>org.onap.sdc.dcae-d.fe</groupId>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +03006 <artifactId>dcae_fe</artifactId>
Stone, Avi (as206k)aa5abad2018-05-10 18:02:10 +03007 <version>1.2.0-SNAPSHOT</version>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +03008 <packaging>war</packaging>
9 <name>DCAE FE application</name>
10 <description>DCAE FE</description>
11 <parent>
12 <groupId>org.springframework.boot</groupId>
13 <artifactId>spring-boot-starter-parent</artifactId>
14 <version>1.5.9.RELEASE</version>
15 <relativePath />
16 <!-- lookup parent from repository -->
17 </parent>
18 <properties>
19 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
Stone, Avi (as206k)52591e42018-05-08 11:51:27 +030021 <nexus.proxy>https://nexus.onap.org</nexus.proxy>
Stone, Avi (as206k)aa5abad2018-05-10 18:02:10 +030022 <staging.profile.id>176c31dfe190a</staging.profile.id>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +030023 </properties>
24 <dependencies>
25 <dependency>
26 <groupId>org.eclipse.jetty</groupId>
27 <artifactId>jetty-proxy</artifactId>
28 <version>${jetty.version}</version>
29 </dependency>
30 </dependencies>
31 <profiles>
32 <profile>
33 <id>local</id>
34 <activation>
35 <activeByDefault>false</activeByDefault>
36 </activation>
37 <dependencies>
38 <dependency>
39 <groupId>org.springframework.boot</groupId>
40 <artifactId>spring-boot-starter-web</artifactId>
41 <exclusions>
42 <exclusion>
43 <groupId>org.springframework.boot</groupId>
44 <artifactId>spring-boot-starter-tomcat</artifactId>
45 </exclusion>
46 </exclusions>
47 </dependency>
48 <dependency>
49 <groupId>org.springframework.boot</groupId>
50 <artifactId>spring-boot-starter-jetty</artifactId>
51 <exclusions>
52 <exclusion>
53 <groupId>org.eclipse.jetty.websocket</groupId>
54 <artifactId>*</artifactId>
55 </exclusion>
56 </exclusions>
57 </dependency>
58 <dependency>
59 <groupId>org.springframework.boot</groupId>
60 <artifactId>spring-boot-starter-test</artifactId>
61 <scope>test</scope>
62 </dependency>
63 <dependency>
64 <groupId>org.apache.commons</groupId>
65 <artifactId>commons-lang3</artifactId>
66 <version>3.5</version>
67 </dependency>
68 <dependency>
69 <groupId>commons-net</groupId>
70 <artifactId>commons-net</artifactId>
71 <version>3.3</version>
72 </dependency>
73 <dependency>
74 <groupId>com.jcraft</groupId>
75 <artifactId>jsch</artifactId>
76 <version>0.1.54</version>
77 </dependency>
78 <dependency>
79 <groupId>com.google.code.gson</groupId>
80 <artifactId>gson</artifactId>
81 </dependency>
82 <dependency>
83 <groupId>org.json</groupId>
84 <artifactId>json</artifactId>
85 <version>20160810</version>
86 </dependency>
87 <dependency>
88 <groupId>javax.servlet</groupId>
89 <artifactId>servlet-api</artifactId>
90 <version>2.5</version>
91 <scope>provided</scope>
92 </dependency>
93 <dependency>
Stone, Avi (as206k)aa5abad2018-05-10 18:02:10 +030094 <groupId>org.onap.sdc.dcae-d.dt-be-property</groupId>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +030095 <artifactId>DCAE-DT-PROPERTY</artifactId>
Stone, Avi (as206k)e9a91532018-05-16 13:15:15 +030096 <version>1.2.0-SNAPSHOT</version>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +030097 </dependency>
98 </dependencies>
99 </profile>
100 <profile>
101 <id>server</id>
102 <activation>
103 <activeByDefault>true</activeByDefault>
104 </activation>
105 <dependencies>
106 <dependency>
107 <groupId>org.springframework.boot</groupId>
108 <artifactId>spring-boot-starter-web</artifactId>
109 <exclusions>
110 <exclusion>
111 <groupId>org.springframework.boot</groupId>
112 <artifactId>spring-boot-starter-tomcat</artifactId>
113 </exclusion>
114 </exclusions>
115 </dependency>
116 <dependency>
117 <groupId>org.springframework.boot</groupId>
118 <artifactId>spring-boot-starter-test</artifactId>
119 <scope>test</scope>
120 </dependency>
121 <dependency>
122 <groupId>org.apache.commons</groupId>
123 <artifactId>commons-lang3</artifactId>
124 <version>3.5</version>
125 </dependency>
126 <dependency>
127 <groupId>commons-net</groupId>
128 <artifactId>commons-net</artifactId>
129 <version>3.3</version>
130 </dependency>
131 <dependency>
132 <groupId>com.jcraft</groupId>
133 <artifactId>jsch</artifactId>
134 <version>0.1.54</version>
135 </dependency>
136 <dependency>
137 <groupId>com.google.code.gson</groupId>
138 <artifactId>gson</artifactId>
139 </dependency>
140 <dependency>
141 <groupId>org.json</groupId>
142 <artifactId>json</artifactId>
143 </dependency>
144 <dependency>
145 <groupId>javax.servlet</groupId>
146 <artifactId>javax.servlet-api</artifactId>
147 <scope>provided</scope>
148 </dependency>
149 <dependency>
Stone, Avi (as206k)aa5abad2018-05-10 18:02:10 +0300150 <groupId>org.onap.sdc.dcae-d.dt-be-property</groupId>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +0300151 <artifactId>DCAE-DT-PROPERTY</artifactId>
Stone, Avi (as206k)e414ec52018-05-17 16:55:12 +0300152 <version>1.2.0-SNAPSHOT</version>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +0300153 </dependency>
154 </dependencies>
155 </profile>
Stone, Avi (as206k)aa5abad2018-05-10 18:02:10 +0300156
157
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +0300158 <profile>
159 <id>docker</id>
160 <properties>
161 <!-- Docker tags -->
162 <maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
163 <docker.tag>${project.version}-${maven.build.timestamp}</docker.tag>
164 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
165 <docker.staging.tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</docker.staging.tag>
166 </properties>
167 <activation>
168 <activeByDefault>false</activeByDefault>
169 </activation>
170 <build>
171 <plugins>
172 <plugin>
173 <groupId>org.codehaus.mojo</groupId>
174 <artifactId>build-helper-maven-plugin</artifactId>
175 <version>1.8</version>
176 <executions>
177 <execution>
178 <id>parse-version</id>
179 <goals>
180 <goal>parse-version</goal>
181 </goals>
182 </execution>
183 </executions>
184 </plugin>
185 <plugin>
186 <artifactId>maven-resources-plugin</artifactId>
187 <version>3.0.2</version>
188 <executions>
189 <execution>
190 <id>copy-dcae-fe-war</id>
191 <phase>validate</phase>
192 <goals>
193 <goal>copy-resources</goal>
194 </goals>
195 <configuration>
196 <outputDirectory>${project.basedir}/docker/target</outputDirectory>
197 <resources>
198 <resource>
199 <directory>${project.basedir}/dcaedt_fe/target</directory>
200 <includes>
201 <include>dcae.war</include>
202 </includes>
203 </resource>
204 </resources>
205 </configuration>
206 </execution>
207 <!-- Require to collect also war of Rule Engine -->
208 <!-- T. B. D. -->
209 </executions>
210 </plugin>
211 <plugin>
212 <groupId>io.fabric8</groupId>
213 <artifactId>docker-maven-plugin</artifactId>
214 <version>0.23.0</version>
215 <configuration>
216 <verbose>true</verbose>
217 <apiVersion>1.23</apiVersion>
218 <images>
219 <!-- Build front image -->
220 <image>
221 <name>onap/dcae-fe</name>
222 <alias>dcae-fe</alias>
223 <build>
224 <cleanup>try</cleanup>
225 <dockerFileDir>${project.basedir}/docker</dockerFileDir>
226 <tags>
227 <tag>${docker.tag}</tag>
228 <tag>${docker.latest.tag}</tag>
229 <tag>${docker.staging.tag}</tag>
230 </tags>
231 </build>
232 </image>
233 </images>
234 </configuration>
235 <executions>
236 <execution>
237 <id>clean-images</id>
238 <phase>pre-clean</phase>
239 <goals>
240 <goal>remove</goal>
241 </goals>
242 <configuration>
243 <removeAll>true</removeAll>
244 <image>onap/dcae-fe</image>
245 </configuration>
246 </execution>
247 <execution>
248 <id>generate-images</id>
249 <phase>package</phase>
250 <goals>
251 <goal>build</goal>
252 </goals>
253 </execution>
254 <execution>
255 <id>push-images</id>
256 <phase>deploy</phase>
257 <goals>
258 <goal>push</goal>
259 </goals>
260 <configuration>
261 <image>onap/dcae-fe</image>
262 </configuration>
263 </execution>
264 </executions>
265 </plugin>
266 </plugins>
267 </build>
Stone, Avi (as206k)aa5abad2018-05-10 18:02:10 +0300268 </profile>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +0300269 </profiles>
270 <build>
271 <finalName>dcae_fe</finalName>
272 <!-- CLEAN -->
273 <plugins>
274 <plugin>
275 <artifactId>maven-clean-plugin</artifactId>
276 <executions>
277 <execution>
278 <id>auto-clean</id>
279 <phase>initialize</phase>
280 <goals>
281 <goal>clean</goal>
282 </goals>
283 </execution>
284 </executions>
285 </plugin>
286 <!-- install node+yarn and run yarn build -->
287 <plugin>
288 <groupId>com.github.eirslett</groupId>
289 <artifactId>frontend-maven-plugin</artifactId>
290 <version>1.6</version>
291 <configuration>
292 <workingDirectory>${project.basedir}/public</workingDirectory>
293 <installDirectory>target</installDirectory>
Stone, Avi (as206k)63e12f72018-05-14 14:04:34 +0300294 <nodeVersion>v9.11.1</nodeVersion>
295 <yarnVersion>v1.6.0</yarnVersion>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +0300296 </configuration>
297 <executions>
298 <execution>
299 <id>install node and yarn</id>
300 <goals>
301 <goal>install-node-and-yarn</goal>
302 </goals>
303 <phase>generate-resources</phase>
304 </execution>
305 <execution>
Stone, Avi (as206k)63e12f72018-05-14 14:04:34 +0300306 <id>yarn-install</id>
307 <goals>
308 <goal>yarn</goal>
309 </goals>
310 <configuration>
Stone, Avi (as206k)e414ec52018-05-17 16:55:12 +0300311 <arguments>global add node-gyp --network-timeout 1000000</arguments>
Stone, Avi (as206k)63e12f72018-05-14 14:04:34 +0300312 </configuration>
313 </execution>
314 <execution>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +0300315 <id>yarn install</id>
316 <goals>
317 <goal>yarn</goal>
318 </goals>
319 <configuration>
Stone, Avi (as206k)42aee2d2018-05-17 14:57:53 +0300320 <arguments>install --network-timeout 1000000</arguments>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +0300321 </configuration>
322 </execution>
323 <execution>
324 <id>angular cli build</id>
325 <goals>
326 <goal>yarn</goal>
327 </goals>
328 <phase>generate-resources</phase>
329 <configuration>
330 <arguments>run build</arguments>
331 </configuration>
332 </execution>
333 </executions>
334 </plugin>
335 <!-- COPT FROM DIST TO WEBAPPS -->
336 <plugin>
337 <artifactId>maven-resources-plugin</artifactId>
338 <executions>
339 <execution>
340 <id>copy-resources</id>
341 <phase>prepare-package</phase>
342 <goals>
343 <goal>copy-resources</goal>
344 </goals>
345 <configuration>
346 <outputDirectory>src/main/webapp</outputDirectory>
347 <resources>
348 <resource>
349 <directory>${project.basedir}/public/dist</directory>
350 <filtering>false</filtering>
351 </resource>
352 </resources>
353 </configuration>
354 </execution>
355 </executions>
356 </plugin>
357 <plugin>
358 <groupId>org.apache.maven.plugins</groupId>
359 <artifactId>maven-war-plugin</artifactId>
360 <version>3.0.0</version>
361 </plugin>
Stone, Avi (as206k)aa5abad2018-05-10 18:02:10 +0300362 <!-- Site Plugin -->
363 <plugin>
364 <groupId>org.apache.maven.plugins</groupId>
365 <artifactId>maven-site-plugin</artifactId>
366 <version>3.4</version>
367 <dependencies>
368 <dependency>
369 <groupId>org.apache.maven.wagon</groupId>
370 <artifactId>wagon-webdav-jackrabbit</artifactId>
371 <version>2.10</version>
372 </dependency>
373 </dependencies>
374 </plugin>
375 <!-- Staging Plugin -->
376 <plugin>
377 <groupId>org.sonatype.plugins</groupId>
378 <artifactId>nexus-staging-maven-plugin</artifactId>
379 <version>1.6.7</version>
380 <extensions>true</extensions>
381 <configuration>
382 <nexusUrl>${nexus.proxy}</nexusUrl>
383 <stagingProfileId>${staging.profile.id}</stagingProfileId>
384 <serverId>ecomp-staging</serverId>
385 </configuration>
386 </plugin>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +0300387 </plugins>
388 </build>
Stone, Avi (as206k)52591e42018-05-08 11:51:27 +0300389 <repositories>
390 <!-- LF repositories -->
391 <repository>
392 <id>ecomp-releases</id>
393 <name>Release Repository</name>
394 <url>${nexus.proxy}/content/repositories/releases/</url>
395 </repository>
396 <repository>
397 <id>ecomp-snapshots</id>
398 <name>Snapshots Repository</name>
399 <url>${nexus.proxy}/content/repositories/snapshots/</url>
400 </repository>
401 <repository>
402 <id>ecomp-public</id>
403 <name>Public Repository</name>
404 <url>${nexus.proxy}/content/repositories/public/</url>
405 </repository>
406 <!-- LF repositories END-->
407 </repositories>
408
409 <distributionManagement>
410 <repository>
411 <id>ecomp-releases</id>
412 <name>Release Repository</name>
413 <url>${nexus.proxy}/content/repositories/releases/</url>
414 </repository>
415 <snapshotRepository>
416 <id>ecomp-snapshots</id>
417 <name>Snapshot Repository</name>
418 <url>${nexus.proxy}/content/repositories/snapshots/</url>
419 </snapshotRepository>
420 <site>
421 <id>ecomp-site</id>
422 <url>dav:${nexus.proxy}${sitePath}</url>
423 </site>
424 </distributionManagement>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +0300425</project>