blob: 1fb449e475e08306c88988f3dbdead320a8c509b [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Yuli Shlosberg958c32d2018-02-15 12:04:46 +02002 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Michael Lando451a3402017-02-19 10:28:42 +02003
4 <modelVersion>4.0.0</modelVersion>
5 <artifactId>catalog-fe</artifactId>
6 <packaging>war</packaging>
7
Michael Lando451a3402017-02-19 10:28:42 +02008 <parent>
9 <groupId>org.openecomp.sdc</groupId>
10 <artifactId>sdc-main</artifactId>
Sonsino, Ofir (os0695)55c536e2019-05-07 18:30:15 +030011 <version>1.5.0-SNAPSHOT</version>
Michael Lando451a3402017-02-19 10:28:42 +020012 </parent>
13
Michael Lando451a3402017-02-19 10:28:42 +020014 <dependencies>
Michael Lando2e0ef972017-02-28 01:44:21 +020015
Michael Landoc0ac0152017-02-27 23:48:43 +020016 <dependency>
Michael Lando451a3402017-02-19 10:28:42 +020017 <groupId>org.functionaljava</groupId>
18 <artifactId>functionaljava</artifactId>
Michael Landoed64b5e2017-06-09 03:19:04 +030019 <version>${functionaljava.version}</version>
Michael Lando451a3402017-02-19 10:28:42 +020020 <scope>compile</scope>
21 </dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030022
Michael Lando451a3402017-02-19 10:28:42 +020023 <dependency>
24 <groupId>org.openecomp.sdc</groupId>
25 <artifactId>security-utils</artifactId>
Michael Landoed64b5e2017-06-09 03:19:04 +030026 <version>${project.version}</version>
27 <scope>compile</scope>
28 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +020029
Michael Landoed64b5e2017-06-09 03:19:04 +030030 <dependency>
31 <groupId>org.openecomp.sdc</groupId>
32 <artifactId>common-app-api</artifactId>
33 <version>${project.version}</version>
34 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +020035
Michael Landoed64b5e2017-06-09 03:19:04 +030036 <!-- File changes listener -->
37 <dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030038 <groupId>ch.qos.logback</groupId>
39 <artifactId>logback-classic</artifactId>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +020040 <version>${logback.version}</version>
Michael Landoed64b5e2017-06-09 03:19:04 +030041 <scope>compile</scope>
42 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +020043
Michael Landoed64b5e2017-06-09 03:19:04 +030044 <dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +030045 <groupId>org.codehaus.groovy</groupId>
Tal Gitelmana3b79a22018-09-25 17:22:34 +030046 <artifactId>groovy</artifactId>
Michael Landoed64b5e2017-06-09 03:19:04 +030047 <scope>compile</scope>
48 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +020049
Michael Landoed64b5e2017-06-09 03:19:04 +030050 <dependency>
51 <groupId>org.codehaus.janino</groupId>
52 <artifactId>janino</artifactId>
53 <version>${janino.version}</version>
54 <scope>compile</scope>
55 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +020056
Michael Landoed64b5e2017-06-09 03:19:04 +030057 <dependency>
58 <groupId>org.yaml</groupId>
59 <artifactId>snakeyaml</artifactId>
60 <version>${snakeyaml.version}</version>
61 <scope>compile</scope>
62 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +020063
Michael Landoed64b5e2017-06-09 03:19:04 +030064 <dependency>
65 <groupId>org.apache.commons</groupId>
66 <artifactId>commons-jci-core</artifactId>
67 <version>${commons-jci-core.version}</version>
68 <scope>compile</scope>
69 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +020070
Michael Landoed64b5e2017-06-09 03:19:04 +030071 <dependency>
72 <groupId>com.google.code.gson</groupId>
73 <artifactId>gson</artifactId>
74 <version>${gson.version}</version>
75 <scope>compile</scope>
76 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +020077
Michael Landoed64b5e2017-06-09 03:19:04 +030078 <dependency>
79 <groupId>org.glassfish.jersey.containers</groupId>
80 <artifactId>jersey-container-servlet</artifactId>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +020081 <version>${jersey-bom.version}</version>
Michael Landoed64b5e2017-06-09 03:19:04 +030082 <scope>compile</scope>
83 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +020084
Michael Landoed64b5e2017-06-09 03:19:04 +030085 <dependency>
86 <groupId>org.glassfish.jersey.media</groupId>
87 <artifactId>jersey-media-multipart</artifactId>
88 <version>${jersey-bom.version}</version>
89 <scope>compile</scope>
90 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +020091
Michael Landoed64b5e2017-06-09 03:19:04 +030092 <dependency>
93 <groupId>org.glassfish.jersey.media</groupId>
94 <artifactId>jersey-media-moxy</artifactId>
95 <version>${jersey-bom.version}</version>
96 <scope>compile</scope>
97 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +020098
Michael Lando451a3402017-02-19 10:28:42 +020099
Michael Landoed64b5e2017-06-09 03:19:04 +0300100 <dependency>
101 <groupId>org.glassfish.jersey.media</groupId>
102 <artifactId>jersey-media-json-jackson</artifactId>
103 <version>${jersey-bom.version}</version>
104 <scope>compile</scope>
105 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200106
Michael Landoed64b5e2017-06-09 03:19:04 +0300107 <dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200108 <groupId>org.glassfish.jersey.inject</groupId>
109 <artifactId>jersey-hk2</artifactId>
110 <version>${jersey-bom.version}</version>
111 </dependency>
112
113 <dependency>
Michael Landoed64b5e2017-06-09 03:19:04 +0300114 <groupId>com.fasterxml.jackson.core</groupId>
115 <artifactId>jackson-core</artifactId>
116 <version>${jackson.version}</version>
117 <scope>compile</scope>
118 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200119
Michael Landoed64b5e2017-06-09 03:19:04 +0300120 <dependency>
121 <groupId>com.fasterxml.jackson.core</groupId>
122 <artifactId>jackson-databind</artifactId>
123 <version>${jackson.version}</version>
124 <scope>compile</scope>
125 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200126
Michael Landoed64b5e2017-06-09 03:19:04 +0300127 <dependency>
128 <groupId>com.fasterxml.jackson.core</groupId>
129 <artifactId>jackson-annotations</artifactId>
Michael Lando5b593492018-07-29 16:13:45 +0300130 <version>${jackson-annotations.version}</version>
Michael Landoed64b5e2017-06-09 03:19:04 +0300131 <scope>compile</scope>
132 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200133
Michael Landoed64b5e2017-06-09 03:19:04 +0300134 <!-- http client -->
135 <dependency>
136 <groupId>org.apache.httpcomponents</groupId>
137 <artifactId>httpclient</artifactId>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200138 <version>${httpclient.version}</version>
Michael Landoed64b5e2017-06-09 03:19:04 +0300139 <scope>compile</scope>
140 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200141
Michael Landoed64b5e2017-06-09 03:19:04 +0300142 <dependency>
143 <groupId>org.apache.httpcomponents</groupId>
144 <artifactId>httpcore</artifactId>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200145 <version>${httpcore.version}</version>
Michael Landoed64b5e2017-06-09 03:19:04 +0300146 <scope>compile</scope>
147 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200148
Michael Landoed64b5e2017-06-09 03:19:04 +0300149 <dependency>
150 <groupId>org.apache.httpcomponents</groupId>
151 <artifactId>httpmime</artifactId>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200152 <version>${httpclient.version}</version>
Michael Landoed64b5e2017-06-09 03:19:04 +0300153 <scope>compile</scope>
154 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200155
Michael Landoed64b5e2017-06-09 03:19:04 +0300156 <dependency>
157 <groupId>commons-logging</groupId>
158 <artifactId>commons-logging</artifactId>
159 <version>${commons-logging}</version>
160 <scope>compile</scope>
161 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200162
Michael Landoed64b5e2017-06-09 03:19:04 +0300163 <dependency>
164 <groupId>commons-codec</groupId>
165 <artifactId>commons-codec</artifactId>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200166 <version>${commons-codec}</version>
Michael Landoed64b5e2017-06-09 03:19:04 +0300167 <scope>compile</scope>
168 </dependency>
169 <!-- http client END -->
Michael Lando451a3402017-02-19 10:28:42 +0200170
Michael Landoed64b5e2017-06-09 03:19:04 +0300171 <dependency>
172 <groupId>javax.servlet</groupId>
vempod6d12912018-07-09 14:27:57 +0300173 <artifactId>javax.servlet-api</artifactId>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200174 <version>${servlet-api.version}</version>
Michael Landoed64b5e2017-06-09 03:19:04 +0300175 <scope>provided</scope>
176 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200177
Michael Landoed64b5e2017-06-09 03:19:04 +0300178 <!-- JSON and YAML Parsing -->
179 <dependency>
180 <groupId>com.fasterxml.jackson.dataformat</groupId>
181 <artifactId>jackson-dataformat-yaml</artifactId>
182 <version>${jackson.version}</version>
183 <scope>compile</scope>
184 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200185
Michael Landoed64b5e2017-06-09 03:19:04 +0300186 <!-- Jetty Proxy -->
187 <dependency>
188 <groupId>org.eclipse.jetty</groupId>
189 <artifactId>jetty-proxy</artifactId>
190 <version>${jetty.version}</version>
191 <scope>compile</scope>
192 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200193
Michael Landoed64b5e2017-06-09 03:19:04 +0300194 <dependency>
195 <groupId>org.eclipse.jetty</groupId>
196 <artifactId>jetty-servlets</artifactId>
197 <version>${jetty.version}</version>
Tal Gitelmanffdda7d2017-07-02 15:33:25 +0300198 <scope>compile</scope>
Michael Landoed64b5e2017-06-09 03:19:04 +0300199 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200200
Michael Landoed64b5e2017-06-09 03:19:04 +0300201 <!-- Proxy servlet -->
202 <dependency>
203 <groupId>com.google.guava</groupId>
204 <artifactId>guava</artifactId>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200205 <version>${guava.version}</version>
Michael Landoed64b5e2017-06-09 03:19:04 +0300206 <scope>compile</scope>
207 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200208
Michael Landoed64b5e2017-06-09 03:19:04 +0300209 <!-- Aspects -->
210 <dependency>
211 <groupId>com.jcabi</groupId>
212 <artifactId>jcabi-aspects</artifactId>
213 <version>${jcabi.version}</version>
214 <scope>compile</scope>
215 </dependency>
216 <dependency>
217 <groupId>org.aspectj</groupId>
218 <artifactId>aspectjrt</artifactId>
219 <version>${aspectjrt.version}</version>
220 <scope>compile</scope>
221 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200222
Michael Landoed64b5e2017-06-09 03:19:04 +0300223 <dependency>
224 <groupId>org.apache.commons</groupId>
225 <artifactId>commons-lang3</artifactId>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200226 <version>${lang3.version}</version>
Michael Landoed64b5e2017-06-09 03:19:04 +0300227 <scope>compile</scope>
228 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200229
Michael Landoed64b5e2017-06-09 03:19:04 +0300230 <!-- Inserted for ECOMP Portal Integration -->
231 <dependency>
Tal Gitelman7d05e162018-10-10 14:52:54 +0300232 <groupId>org.onap.portal.sdk</groupId>
Michael Landob3d48982017-06-11 14:22:02 +0300233 <artifactId>epsdk-fw</artifactId>
Michael Landoed64b5e2017-06-09 03:19:04 +0300234 <version>${ecomp.version}</version>
235 <scope>compile</scope>
236 <exclusions>
237 <exclusion>
238 <groupId>com.att.nsa</groupId>
239 <artifactId>cambriaClient</artifactId>
240 </exclusion>
241 <exclusion>
242 <artifactId>slf4j-log4j12</artifactId>
243 <groupId>org.slf4j</groupId>
244 </exclusion>
245 </exclusions>
246 </dependency>
247 <!-- System metrics -->
248 <dependency>
249 <groupId>org.fusesource</groupId>
250 <artifactId>sigar</artifactId>
251 <version>${sigar.version}</version>
252 <scope>compile</scope>
253 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200254
Michael Landoed64b5e2017-06-09 03:19:04 +0300255 <!-- TEST -->
256 <dependency>
257 <groupId>org.glassfish.jersey.test-framework.providers</groupId>
258 <artifactId>jersey-test-framework-provider-bundle</artifactId>
259 <version>${jersey-bom.version}</version>
260 <type>pom</type>
261 <scope>test</scope>
262 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200263
Michael Landoed64b5e2017-06-09 03:19:04 +0300264 <dependency>
265 <groupId>org.eclipse.jetty</groupId>
266 <artifactId>jetty-servlet</artifactId>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200267 <version>${jetty.version}</version>
Michael Landoed64b5e2017-06-09 03:19:04 +0300268 <scope>test</scope>
269 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200270
Michael Landoed64b5e2017-06-09 03:19:04 +0300271 <dependency>
272 <groupId>org.eclipse.jetty</groupId>
273 <artifactId>jetty-webapp</artifactId>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200274 <version>${jetty.version}</version>
Michael Landoed64b5e2017-06-09 03:19:04 +0300275 <scope>test</scope>
276 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200277
Michael Landoed64b5e2017-06-09 03:19:04 +0300278 <dependency>
279 <groupId>org.mockito</groupId>
Tal Gitelman51d50f02017-12-10 18:55:03 +0200280 <artifactId>mockito-core</artifactId>
Michael Landoed64b5e2017-06-09 03:19:04 +0300281 <scope>test</scope>
282 </dependency>
Michael Lando451a3402017-02-19 10:28:42 +0200283
Michael Landoed64b5e2017-06-09 03:19:04 +0300284 </dependencies>
Michael Lando451a3402017-02-19 10:28:42 +0200285
Michael Landoed64b5e2017-06-09 03:19:04 +0300286 <build>
Michael Lando451a3402017-02-19 10:28:42 +0200287
Michael Landoed64b5e2017-06-09 03:19:04 +0300288 <finalName>${project.artifactId}-${project.version}</finalName>
289
290 <plugins>
Michael Lando451a3402017-02-19 10:28:42 +0200291 <plugin>
292 <groupId>org.apache.maven.plugins</groupId>
293 <artifactId>maven-war-plugin</artifactId>
Michael Lando451a3402017-02-19 10:28:42 +0200294 <configuration>
295 <archive>
296 <manifest>
297 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
298 </manifest>
299 </archive>
Michael Landoed64b5e2017-06-09 03:19:04 +0300300
Michael Lando451a3402017-02-19 10:28:42 +0200301 <webResources>
302 <resource>
303 <directory>src/main/resources</directory>
304 </resource>
305 </webResources>
306 </configuration>
307 </plugin>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200308
Michael Lando451a3402017-02-19 10:28:42 +0200309 <plugin>
310 <groupId>org.eclipse.jetty</groupId>
311 <artifactId>jetty-maven-plugin</artifactId>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200312 <version>${jetty.version}</version>
Michael Lando451a3402017-02-19 10:28:42 +0200313 <configuration>
Michael Lando451a3402017-02-19 10:28:42 +0200314 <webApp>
315 <contextPath>/</contextPath>
316 <webInfIncludeJarPattern>.*/.*jersey-[^/]\.jar$</webInfIncludeJarPattern>
317 </webApp>
318 <war>${project.build.directory}/${project.build.finalName}.war</war>
319 </configuration>
320 </plugin>
321
322 <plugin>
323 <groupId>org.apache.maven.plugins</groupId>
324 <artifactId>maven-deploy-plugin</artifactId>
Michael Landoed64b5e2017-06-09 03:19:04 +0300325 <configuration>
326 <skip>true</skip>
327 </configuration>
Michael Lando451a3402017-02-19 10:28:42 +0200328 </plugin>
329
330 <plugin>
331 <groupId>com.jcabi</groupId>
332 <artifactId>jcabi-maven-plugin</artifactId>
Michael Landodc856bb2018-08-13 13:27:52 +0300333 <version>${jcabi.maven.plugin.version}</version>
Michael Lando451a3402017-02-19 10:28:42 +0200334 <executions>
335 <execution>
336 <goals>
337 <goal>ajc</goal>
338 </goals>
339 </execution>
340 </executions>
341 </plugin>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200342 <plugin>
Michael Landodc856bb2018-08-13 13:27:52 +0300343 <groupId>org.apache.maven.plugins</groupId>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200344 <artifactId>maven-clean-plugin</artifactId>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200345 <executions>
346 <execution>
347 <id>clean.catalog.fe.folder</id>
348 <phase>clean</phase>
349 <goals>
350 <goal>clean</goal>
351 </goals>
352 <configuration>
353 <filesets>
354 <!-- FE WAR's -->
355 <fileset>
356 <directory>${project.parent.basedir}/catalog-fe/sdc-frontend/</directory>
357 <followSymlinks>false</followSymlinks>
358 <includes>
359 <include>*.war</include>
360 </includes>
361 </fileset>
362 </filesets>
363 </configuration>
364 </execution>
365 </executions>
366 </plugin>
dekstroza37843cb2018-05-18 14:42:24 +0100367 <plugin>
368 <groupId>com.github.sylvainlaurent.maven</groupId>
369 <artifactId>yaml-json-validator-maven-plugin</artifactId>
370 <executions>
371 <execution>
372 <id>validate</id>
373 <phase>validate</phase>
374 <goals>
375 <goal>validate</goal>
376 </goals>
377 <configuration>
378 <validationSets>
379 <validationSet>
380 <includes>
381 <include>src/main/resources/**/*.y*ml</include>
382 <include>src/test/resources/**/*.y*ml</include>
383 </includes>
384 </validationSet>
385 <validationSet>
386 <includes>
387 <include>src/main/resources/**/*.json</include>
388 <include>src/test/resources/**/*.json</include>
389 </includes>
390 </validationSet>
391 </validationSets>
392 </configuration>
393 </execution>
394 </executions>
395 </plugin>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200396
Michael Lando451a3402017-02-19 10:28:42 +0200397 </plugins>
398
Michael Lando451a3402017-02-19 10:28:42 +0200399 <pluginManagement>
400 <plugins>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200401 <!--This plugin's configuration is used to store Eclipse m2e settings
Michael Landoed64b5e2017-06-09 03:19:04 +0300402 only. It has no influence on the Maven build itself. -->
Michael Lando451a3402017-02-19 10:28:42 +0200403 <plugin>
404 <groupId>org.eclipse.m2e</groupId>
405 <artifactId>lifecycle-mapping</artifactId>
406 <version>1.0.0</version>
407 <configuration>
408 <lifecycleMappingMetadata>
409 <pluginExecutions>
Michael Landoed64b5e2017-06-09 03:19:04 +0300410
Michael Lando451a3402017-02-19 10:28:42 +0200411 <pluginExecution>
412 <pluginExecutionFilter>
413 <groupId>com.jcabi</groupId>
414 <artifactId>jcabi-maven-plugin</artifactId>
415 <versionRange>[0.0,)</versionRange>
416 <goals>
417 <goal>ajc</goal>
418 </goals>
419 </pluginExecutionFilter>
420 <action>
421 <execute />
422 </action>
423 </pluginExecution>
Michael Landoed64b5e2017-06-09 03:19:04 +0300424
Michael Lando451a3402017-02-19 10:28:42 +0200425 </pluginExecutions>
426 </lifecycleMappingMetadata>
427 </configuration>
428 </plugin>
Michael Landoed64b5e2017-06-09 03:19:04 +0300429
Michael Lando451a3402017-02-19 10:28:42 +0200430 <!-- jacbi (log injection) -->
431
432 </plugins>
433 </pluginManagement>
Michael Landoed64b5e2017-06-09 03:19:04 +0300434
Michael Lando451a3402017-02-19 10:28:42 +0200435 </build>
436
Michael Landoed64b5e2017-06-09 03:19:04 +0300437 <profiles>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200438 <profile>
439 <id>catalog</id>
440 <activation>
441 <activeByDefault>false</activeByDefault>
442 </activation>
Michael Lando451a3402017-02-19 10:28:42 +0200443
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200444 <build>
445 <finalName>${project.artifactId}-${project.version}</finalName>
446 </build>
447 </profile>
448 <profile>
449 <id>docker-staging</id>
450 <properties>
451 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
452 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
453 </properties>
454 </profile>
455
456 <profile>
457 <id>docker</id>
458 <activation>
459 <activeByDefault>false</activeByDefault>
460 </activation>
Areli, Fuss (af732p)c7941c22018-04-12 13:25:35 +0300461 <properties>
462 <docker.username>docker</docker.username>
463 <docker.password>docker</docker.password>
464 </properties>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200465 <build>
466 <plugins>
467 <plugin>
Michael Landodc856bb2018-08-13 13:27:52 +0300468 <groupId>org.apache.maven.plugins</groupId>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200469 <artifactId>maven-resources-plugin</artifactId>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200470 <executions>
471 <execution>
472 <id>copy-resources-fe</id>
473 <phase>verify</phase>
474 <goals>
475 <goal>copy-resources</goal>
476 </goals>
477 <configuration>
478 <outputDirectory>${basedir}/sdc-frontend</outputDirectory>
479 <resources>
480 <resource>
481 <directory>${project.parent.basedir}/catalog-fe/target</directory>
482 <includes>
483 <include>catalog-fe-${project.version}.war</include>
484 </includes>
485 </resource>
486 <resource>
487 <directory>${project.parent.basedir}/openecomp-ui/target</directory>
488 <includes>
489 <include>onboarding-fe-${project.version}.war</include>
490 </includes>
491 </resource>
492 </resources>
493 </configuration>
494 </execution>
495 </executions>
496 </plugin>
497 <plugin>
498 <groupId>io.fabric8</groupId>
499 <artifactId>docker-maven-plugin</artifactId>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200500 <configuration>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200501 <apiVersion>1.23</apiVersion>
502 <registry>nexus3.onap.org:10001</registry>
503 <authConfig>
504 <pull>
Areli, Fuss (af732p)c7941c22018-04-12 13:25:35 +0300505 <username>${docker.username}</username>
506 <password>${docker.password}</password>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200507 </pull>
508 </authConfig>
509 <images>
510
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200511 <!-- Build frontend image -->
512 <image>
513 <name>onap/sdc-frontend</name>
514 <alias>sdc-frontend</alias>
515 <build>
516 <cleanup>try</cleanup>
517 <dockerFileDir>${project.basedir}/sdc-frontend</dockerFileDir>
518 <tags>
519 <tag>${docker.tag}</tag>
Yuli Shlosberg958c32d2018-02-15 12:04:46 +0200520 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
521 </tags>
522 </build>
523 </image>
524 </images>
525 </configuration>
526 <executions>
527 <execution>
528 <id>clean-images</id>
529 <phase>pre-clean</phase>
530 <goals>
531 <goal>remove</goal>
532 </goals>
533 <configuration>
534 <removeAll>true</removeAll>
535 <image>onap/sdc-frontend</image>
536 </configuration>
537 </execution>
538
539 <execution>
540 <id>generate-images</id>
541 <phase>install</phase>
542 <goals>
543 <goal>build</goal>
544 </goals>
545 </execution>
546
547 <execution>
548 <id>push-images</id>
549 <phase>deploy</phase>
550 <goals>
551 <goal>push</goal>
552 </goals>
553 <configuration>
554 <image>onap/sdc-frontend</image>
555 </configuration>
556 </execution>
557 </executions>
558 </plugin>
559 </plugins>
560 </build>
561 </profile>
Michael Landoed64b5e2017-06-09 03:19:04 +0300562 </profiles>
Michael Lando451a3402017-02-19 10:28:42 +0200563</project>