blob: 98c7474f837595d3e57e5252c7d408d5125164ee [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>
96 <version>${project.version}</version>
97 </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>
152 <version>${project.version}</version>
153 </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>
294 <nodeVersion>v8.7.0</nodeVersion>
295 <yarnVersion>v1.3.2</yarnVersion>
296 </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>
306 <id>yarn install</id>
307 <goals>
308 <goal>yarn</goal>
309 </goals>
310 <configuration>
311 <arguments>install</arguments>
312 </configuration>
313 </execution>
314 <execution>
315 <id>angular cli build</id>
316 <goals>
317 <goal>yarn</goal>
318 </goals>
319 <phase>generate-resources</phase>
320 <configuration>
321 <arguments>run build</arguments>
322 </configuration>
323 </execution>
324 </executions>
325 </plugin>
326 <!-- COPT FROM DIST TO WEBAPPS -->
327 <plugin>
328 <artifactId>maven-resources-plugin</artifactId>
329 <executions>
330 <execution>
331 <id>copy-resources</id>
332 <phase>prepare-package</phase>
333 <goals>
334 <goal>copy-resources</goal>
335 </goals>
336 <configuration>
337 <outputDirectory>src/main/webapp</outputDirectory>
338 <resources>
339 <resource>
340 <directory>${project.basedir}/public/dist</directory>
341 <filtering>false</filtering>
342 </resource>
343 </resources>
344 </configuration>
345 </execution>
346 </executions>
347 </plugin>
348 <plugin>
349 <groupId>org.apache.maven.plugins</groupId>
350 <artifactId>maven-war-plugin</artifactId>
351 <version>3.0.0</version>
352 </plugin>
Stone, Avi (as206k)aa5abad2018-05-10 18:02:10 +0300353 <!-- Site Plugin -->
354 <plugin>
355 <groupId>org.apache.maven.plugins</groupId>
356 <artifactId>maven-site-plugin</artifactId>
357 <version>3.4</version>
358 <dependencies>
359 <dependency>
360 <groupId>org.apache.maven.wagon</groupId>
361 <artifactId>wagon-webdav-jackrabbit</artifactId>
362 <version>2.10</version>
363 </dependency>
364 </dependencies>
365 </plugin>
366 <!-- Staging Plugin -->
367 <plugin>
368 <groupId>org.sonatype.plugins</groupId>
369 <artifactId>nexus-staging-maven-plugin</artifactId>
370 <version>1.6.7</version>
371 <extensions>true</extensions>
372 <configuration>
373 <nexusUrl>${nexus.proxy}</nexusUrl>
374 <stagingProfileId>${staging.profile.id}</stagingProfileId>
375 <serverId>ecomp-staging</serverId>
376 </configuration>
377 </plugin>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +0300378 </plugins>
379 </build>
Stone, Avi (as206k)52591e42018-05-08 11:51:27 +0300380 <repositories>
381 <!-- LF repositories -->
382 <repository>
383 <id>ecomp-releases</id>
384 <name>Release Repository</name>
385 <url>${nexus.proxy}/content/repositories/releases/</url>
386 </repository>
387 <repository>
388 <id>ecomp-snapshots</id>
389 <name>Snapshots Repository</name>
390 <url>${nexus.proxy}/content/repositories/snapshots/</url>
391 </repository>
392 <repository>
393 <id>ecomp-public</id>
394 <name>Public Repository</name>
395 <url>${nexus.proxy}/content/repositories/public/</url>
396 </repository>
397 <!-- LF repositories END-->
398 </repositories>
399
400 <distributionManagement>
401 <repository>
402 <id>ecomp-releases</id>
403 <name>Release Repository</name>
404 <url>${nexus.proxy}/content/repositories/releases/</url>
405 </repository>
406 <snapshotRepository>
407 <id>ecomp-snapshots</id>
408 <name>Snapshot Repository</name>
409 <url>${nexus.proxy}/content/repositories/snapshots/</url>
410 </snapshotRepository>
411 <site>
412 <id>ecomp-site</id>
413 <url>dav:${nexus.proxy}${sitePath}</url>
414 </site>
415 </distributionManagement>
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +0300416</project>