blob: e6a6e263a8c3719dc29deee61ac52ff41a1e9fcc [file] [log] [blame]
Michael Landob3d48982017-06-11 14:22:02 +03001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Michael Landoa5445102018-03-04 14:53:33 +02002 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Michael Landob3d48982017-06-11 14:22:02 +03003
Michael Landoa5445102018-03-04 14:53:33 +02004 <modelVersion>4.0.0</modelVersion>
Michael Landob3d48982017-06-11 14:22:02 +03005
Michael Landoa5445102018-03-04 14:53:33 +02006 <artifactId>test-apis-ci</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +03007
Michael Landoa5445102018-03-04 14:53:33 +02008 <parent>
9 <groupId>org.openecomp.sdc</groupId>
10 <artifactId>sdc-main</artifactId>
Michael Landod8a0dea2018-06-02 19:23:27 +030011 <version>1.3.0-SNAPSHOT</version>
Michael Landoa5445102018-03-04 14:53:33 +020012 </parent>
Gitelman, Tal (tg851x)e482ae42018-03-11 19:37:06 +020013
14 <properties>
15 <sonar.skip>true</sonar.skip>
16 </properties>
17
Michael Landoa5445102018-03-04 14:53:33 +020018 <dependencies>
19 <dependency>
20 <groupId>com.google.guava</groupId>
21 <artifactId>guava</artifactId>
22 <version>${guava.version}</version>
23 <scope>compile</scope>
24 </dependency>
Michael Lando660b57d2017-10-11 09:45:53 +030025
Michael Landoa5445102018-03-04 14:53:33 +020026 <dependency>
27 <groupId>junit</groupId>
28 <artifactId>junit</artifactId>
29 <version>${junit.version}</version>
30 <scope>compile</scope>
31 </dependency>
Michael Lando5b593492018-07-29 16:13:45 +030032
33 <dependency>
34 <groupId>org.assertj</groupId>
35 <artifactId>assertj-core</artifactId>
36 </dependency>
Michael Landodc856bb2018-08-13 13:27:52 +030037
Michael Landoa5445102018-03-04 14:53:33 +020038 <dependency>
39 <groupId>org.hamcrest</groupId>
40 <artifactId>hamcrest-all</artifactId>
41 <version>1.3</version>
42 <scope>test</scope>
43 </dependency>
44 <dependency>
45 <groupId>org.testng</groupId>
46 <artifactId>testng</artifactId>
47 <version>${testng.version}</version>
48 <scope>compile</scope>
49 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030050
Michael Landoa5445102018-03-04 14:53:33 +020051 <dependency>
52 <groupId>com.aventstack</groupId>
53 <artifactId>extentreports</artifactId>
54 <version>3.0.6</version>
55 <scope>compile</scope>
56 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030057
Michael Landoa5445102018-03-04 14:53:33 +020058 <dependency>
59 <groupId>org.mockito</groupId>
60 <artifactId>mockito-core</artifactId>
61 <scope>test</scope>
62 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030063
Michael Landoa5445102018-03-04 14:53:33 +020064 <dependency>
65 <groupId>com.typesafe</groupId>
66 <artifactId>config</artifactId>
67 <version>1.0.2</version>
68 <scope>compile</scope>
69 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030070
Michael Landoa5445102018-03-04 14:53:33 +020071 <dependency>
72 <groupId>log4j</groupId>
73 <artifactId>log4j</artifactId>
74 <version>1.2.17</version>
75 <scope>compile</scope>
76 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030077
Michael Landoa5445102018-03-04 14:53:33 +020078 <dependency>
79 <groupId>com.jcraft.jsch</groupId>
80 <artifactId>com.springsource.com.jcraft.jsch</artifactId>
81 <version>0.1.41</version>
82 <scope>compile</scope>
83 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030084
Michael Landoa5445102018-03-04 14:53:33 +020085 <dependency>
86 <groupId>org.openecomp.sdc</groupId>
87 <artifactId>common-app-api</artifactId>
88 <version>${project.version}</version>
89 <scope>compile</scope>
90 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030091
Michael Landoa5445102018-03-04 14:53:33 +020092 <dependency>
93 <groupId>org.openecomp.sdc.be</groupId>
94 <artifactId>common-be</artifactId>
95 <version>${project.version}</version>
96 <scope>compile</scope>
97 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +030098
Michael Landoa5445102018-03-04 14:53:33 +020099 <!-- CHECK CATLOG MODEL -->
100 <dependency>
101 <groupId>org.openecomp.sdc.be</groupId>
102 <artifactId>catalog-model</artifactId>
103 <version>${project.version}</version>
104 <scope>compile</scope>
105 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300106
Michael Landoa5445102018-03-04 14:53:33 +0200107 <!-- catalog dao -->
108 <dependency>
109 <groupId>org.openecomp.sdc.be</groupId>
110 <artifactId>catalog-dao</artifactId>
111 <version>${project.version}</version>
112 <scope>compile</scope>
113 </dependency>
114 <!-- functional java -->
115 <dependency>
116 <groupId>org.functionaljava</groupId>
117 <artifactId>functionaljava</artifactId>
118 <version>${functionaljava.version}</version>
119 <scope>compile</scope>
120 </dependency>
121 <!-- CASSANDRA -->
122 <dependency>
123 <groupId>com.datastax.cassandra</groupId>
124 <artifactId>cassandra-driver-core</artifactId>
125 <version>${cassandra.driver.version}</version>
126 <scope>compile</scope>
127 </dependency>
128 <!-- CASSANDRA END -->
Michael Landob3d48982017-06-11 14:22:02 +0300129
Michael Landoa5445102018-03-04 14:53:33 +0200130 <!-- slf4j + logback -->
131 <dependency>
132 <groupId>org.slf4j</groupId>
133 <artifactId>slf4j-api</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300134 <version>${slf4j-api.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200135 <scope>compile</scope>
136 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300137
Michael Landoa5445102018-03-04 14:53:33 +0200138 <dependency>
139 <groupId>ch.qos.logback</groupId>
140 <artifactId>logback-classic</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300141 <version>${logback.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200142 <scope>compile</scope>
143 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300144
Michael Landoa5445102018-03-04 14:53:33 +0200145 <dependency>
146 <groupId>ch.qos.logback</groupId>
147 <artifactId>logback-core</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300148 <version>${logback.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200149 <scope>compile</scope>
150 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300151
Michael Landoa5445102018-03-04 14:53:33 +0200152 <dependency>
153 <groupId>com.googlecode.json-simple</groupId>
154 <artifactId>json-simple</artifactId>
155 <version>${json-simple.version}</version>
156 <scope>compile</scope>
157 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300158
Michael Landoa5445102018-03-04 14:53:33 +0200159 <!-- File changes listener -->
160 <dependency>
161 <groupId>org.apache.commons</groupId>
162 <artifactId>commons-jci-core</artifactId>
163 <version>${commons-jci-core.version}</version>
164 <scope>compile</scope>
165 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300166
Michael Landoa5445102018-03-04 14:53:33 +0200167 <dependency>
168 <groupId>commons-codec</groupId>
169 <artifactId>commons-codec</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300170 <version>${commons-codec}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200171 <scope>compile</scope>
172 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300173
Michael Landoa5445102018-03-04 14:53:33 +0200174 <!-- Gson -->
175 <dependency>
176 <groupId>com.google.code.gson</groupId>
177 <artifactId>gson</artifactId>
178 <version>${gson.version}</version>
179 <scope>compile</scope>
180 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300181
Michael Landoa5445102018-03-04 14:53:33 +0200182 <!-- Snake Yaml -->
183 <dependency>
184 <groupId>org.yaml</groupId>
185 <artifactId>snakeyaml</artifactId>
186 <version>${snakeyaml.version}</version>
187 <scope>compile</scope>
188 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300189
Michael Landoa5445102018-03-04 14:53:33 +0200190 <!-- http client -->
191 <dependency>
192 <groupId>org.apache.httpcomponents</groupId>
193 <artifactId>httpclient</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300194 <version>${httpclient.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200195 <scope>compile</scope>
196 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300197
Michael Landoa5445102018-03-04 14:53:33 +0200198 <dependency>
199 <groupId>org.apache.httpcomponents</groupId>
200 <artifactId>httpmime</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300201 <version>${httpclient.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200202 <scope>compile</scope>
203 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300204
Michael Landoa5445102018-03-04 14:53:33 +0200205 <dependency>
206 <groupId>commons-io</groupId>
207 <artifactId>commons-io</artifactId>
208 <version>2.5</version>
209 <scope>compile</scope>
210 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300211
Michael Landoa5445102018-03-04 14:53:33 +0200212 <dependency>
213 <groupId>commons-logging</groupId>
214 <artifactId>commons-logging</artifactId>
Michael Landob3d48982017-06-11 14:22:02 +0300215 <version>${commons-logging}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200216 <scope>compile</scope>
217 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300218
Michael Landoa5445102018-03-04 14:53:33 +0200219 <!-- http core -->
220 <dependency>
221 <groupId>org.apache.httpcomponents</groupId>
222 <artifactId>httpcore</artifactId>
223 <version>${httpcore.version}</version>
224 <scope>compile</scope>
225 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300226
Michael Landoa5445102018-03-04 14:53:33 +0200227 <!-- TITAN -->
228 <dependency>
229 <groupId>com.thinkaurelius.titan</groupId>
230 <artifactId>titan-core</artifactId>
231 <version>${titan.version}</version>
232 <scope>compile</scope>
233 <exclusions>
234 <exclusion>
235 <artifactId>slf4j-log4j12</artifactId>
236 <groupId>org.slf4j</groupId>
237 </exclusion>
Tal Gitelman76783962018-09-06 18:16:24 +0300238 <exclusion>
239 <artifactId>commons-collections</artifactId>
240 <groupId>commons-collections</groupId>
241 </exclusion>
Michael Landoa5445102018-03-04 14:53:33 +0200242 </exclusions>
243 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300244
Michael Landoa5445102018-03-04 14:53:33 +0200245 <dependency>
Michael Landoc7916a42018-03-20 12:11:07 +0200246 <groupId>org.onap.sdc.sdc-titan-cassandra</groupId>
247 <artifactId>sdc-titan-cassandra</artifactId>
248 <version>${sdc.titan.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200249 <scope>compile</scope>
250 <exclusions>
251 <exclusion>
252 <artifactId>slf4j-log4j12</artifactId>
253 <groupId>org.slf4j</groupId>
254 </exclusion>
255 </exclusions>
256 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300257
Michael Landoa5445102018-03-04 14:53:33 +0200258 <dependency>
259 <groupId>org.codehaus.jackson</groupId>
260 <artifactId>jackson-mapper-asl</artifactId>
261 <version>1.9.2</version>
262 <scope>compile</scope>
263 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300264
Michael Landoa5445102018-03-04 14:53:33 +0200265 <dependency>
266 <groupId>com.fasterxml.jackson.core</groupId>
267 <artifactId>jackson-databind</artifactId>
Gitelman, Tal (tg851x)483c3d92018-03-12 18:41:15 +0200268 <version>${jackson.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200269 <scope>compile</scope>
270 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300271
Michael Landoa5445102018-03-04 14:53:33 +0200272 <dependency>
273 <groupId>com.fasterxml.jackson.core</groupId>
274 <artifactId>jackson-core</artifactId>
Gitelman, Tal (tg851x)483c3d92018-03-12 18:41:15 +0200275 <version>${jackson.version}</version>
Michael Landoa5445102018-03-04 14:53:33 +0200276 <scope>compile</scope>
277 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300278
Michael Landoa5445102018-03-04 14:53:33 +0200279 <dependency>
280 <groupId>org.openecomp.ecompsdkos</groupId>
281 <artifactId>epsdk-fw</artifactId>
282 <version>${ecomp.version}</version>
283 <scope>compile</scope>
284 <exclusions>
285 <exclusion>
286 <artifactId>slf4j-log4j12</artifactId>
287 <groupId>org.slf4j</groupId>
288 </exclusion>
289 </exclusions>
290 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300291
Michael Landoa5445102018-03-04 14:53:33 +0200292 <dependency>
293 <groupId>org.json</groupId>
294 <artifactId>json</artifactId>
295 <version>20131018</version>
296 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300297
Michael Landoa5445102018-03-04 14:53:33 +0200298 <dependency>
Tal Gitelman5a13c232018-07-24 11:47:25 +0300299 <groupId>org.onap.sdc.sdc-tosca</groupId>
Michael Landoa5445102018-03-04 14:53:33 +0200300 <artifactId>sdc-tosca</artifactId>
Michael Lando6e6a1792018-08-04 20:32:31 +0300301 <version>1.4.1</version>
Michael Landoa5445102018-03-04 14:53:33 +0200302 <scope>compile</scope>
303 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300304
Michael Landoa5445102018-03-04 14:53:33 +0200305 <dependency>
306 <groupId>info.cukes</groupId>
307 <artifactId>cucumber-junit</artifactId>
308 <version>1.2.4</version>
309 <scope>test</scope>
310 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300311
Michael Landoa5445102018-03-04 14:53:33 +0200312 <dependency>
313 <groupId>info.cukes</groupId>
314 <artifactId>cucumber-core</artifactId>
315 <version>1.2.4</version>
316 <scope>test</scope>
317 </dependency>
318
319 <dependency>
320 <groupId>info.cukes</groupId>
321 <artifactId>gherkin</artifactId>
322 <version>2.12.2</version>
323 </dependency>
324 <dependency>
325 <groupId>info.cukes</groupId>
326 <artifactId>cucumber-java</artifactId>
327 <version>1.2.5</version>
328 <scope>test</scope>
329 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300330
Michael Landoa5445102018-03-04 14:53:33 +0200331 <dependency>
332 <groupId>info.cukes</groupId>
333 <artifactId>cucumber-jvm-deps</artifactId>
334 <version>1.0.5</version>
335 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300336
Michael Landoa5445102018-03-04 14:53:33 +0200337 <dependency>
338 <groupId>org.mock-server</groupId>
339 <artifactId>mockserver-netty</artifactId>
340 <version>3.10.4</version>
341 <scope>test</scope>
Tal Gitelman76783962018-09-06 18:16:24 +0300342 <exclusions>
343 <exclusion>
344 <artifactId>commons-collections</artifactId>
345 <groupId>commons-collections</groupId>
346 </exclusion>
347 </exclusions>
Michael Landoa5445102018-03-04 14:53:33 +0200348 </dependency>
Michael Landob3d48982017-06-11 14:22:02 +0300349
Michael Landoa5445102018-03-04 14:53:33 +0200350 <dependency>
351 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
352 <artifactId>sdc-distribution-client</artifactId>
353 <version>1.2.2 </version>
354 <scope>test</scope>
355 </dependency>
356
357 <!-- With TestNG -->
358 <dependency>
359 <groupId>info.cukes</groupId>
360 <artifactId>cucumber-testng</artifactId>
361 <version>1.2.5</version>
362 </dependency>
363
364 <!-- spring -->
365 <dependency>
366 <groupId>org.springframework</groupId>
367 <artifactId>spring-context</artifactId>
368 <version>${spring.version}</version>
369 <scope>compile</scope>
370 </dependency>
371
372 <!-- CASSANDRA -->
373 <dependency>
374 <groupId>com.datastax.cassandra</groupId>
375 <artifactId>cassandra-driver-mapping</artifactId>
376 <version>${cassandra.driver.version}</version>
377 <scope>compile</scope>
378 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200379 <!-- CASSANDRA END -->
Tal Gitelmane0199372018-09-18 11:57:53 +0300380
381 <dependency>
382 <groupId>org.codehaus.groovy</groupId>
383 <artifactId>groovy</artifactId>
Tal Gitelmane0199372018-09-18 11:57:53 +0300384 </dependency>
Michael Landoa5445102018-03-04 14:53:33 +0200385 </dependencies>
386
387 <build>
388 <plugins>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200389 <plugin>
Michael Landodc856bb2018-08-13 13:27:52 +0300390 <groupId>org.apache.maven.plugins</groupId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200391 <artifactId>maven-clean-plugin</artifactId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200392 <executions>
393 <execution>
Michael Landodc856bb2018-08-13 13:27:52 +0300394 <id>clean.testsuit.folder</id>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200395 <phase>clean</phase>
396 <goals>
397 <goal>clean</goal>
398 </goals>
399 <configuration>
400 <filesets>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200401 <!-- Sanity jar -->
402 <fileset>
403 <directory>${project.basedir}/sdc-api-tests</directory>
404 <followSymlinks>false</followSymlinks>
405 <includes>
406 <include>*.jar</include>
407 </includes>
408 </fileset>
409 <!-- Sanity test suites -->
410 <fileset>
411 <directory>${project.basedir}/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/testSuites</directory>
412 <followSymlinks>false</followSymlinks>
413 </fileset>
414 </filesets>
415 </configuration>
416 </execution>
417 </executions>
418 </plugin>
419
Michael Landoa5445102018-03-04 14:53:33 +0200420 <plugin>
421 <groupId>org.apache.maven.plugins</groupId>
422 <artifactId>maven-deploy-plugin</artifactId>
Michael Landoa5445102018-03-04 14:53:33 +0200423 <configuration>
424 <skip>true</skip>
425 </configuration>
426 </plugin>
427
428 <!-- ============================================= -->
429 <!-- Create the JAR file with its dependencies -->
430 <!-- ============================================= -->
431 <plugin>
432 <groupId>org.apache.maven.plugins</groupId>
433 <artifactId>maven-assembly-plugin</artifactId>
434 <executions>
435 <execution>
436 <id>create.jar.with.dependencies</id>
437 <phase>package</phase>
438 <goals>
439 <goal>single</goal>
440 </goals>
441 <configuration>
442 <archive>
443 <manifest>
444 <mainClass>org.openecomp.sdc.ci.tests.run.StartTest</mainClass>
445 </manifest>
446 </archive>
447 <descriptorRefs>
448 <descriptorRef>jar-with-dependencies</descriptorRef>
449 </descriptorRefs>
450 </configuration>
451 </execution>
452 </executions>
453 </plugin>
dekstroza37843cb2018-05-18 14:42:24 +0100454 <plugin>
455 <groupId>com.github.sylvainlaurent.maven</groupId>
456 <artifactId>yaml-json-validator-maven-plugin</artifactId>
457 <executions>
458 <execution>
459 <id>validate</id>
460 <phase>validate</phase>
461 <goals>
462 <goal>validate</goal>
463 </goals>
464 <configuration>
465 <validationSets>
466 <validationSet>
467 <includes>
468 <include>src/main/resources/**/*.y*ml</include>
469 <include>src/test/resources/**/*.y*ml</include>
470 </includes>
471 <excludes>
472 <exclude>src/test/resources/CI/tests/importToscaResourceByCreateUrl/occurencyFalure*.y*ml</exclude>
473 <exclude>src/test/resources/CI/tests/importToscaResourceByCreateUrl/noContent*.y*ml</exclude>
474 <exclude>src/test/resources/CI/tests/HeatDeploymentArtifacts/invalid*.y*ml</exclude>
475 </excludes>
476 </validationSet>
477 <validationSet>
478 <includes>
479 <include>src/main/resources/**/*.json</include>
480 <include>src/test/resources/**/*.json</include>
481 </includes>
482 <excludes>
483 <exclude>src/test/resources/CI/tests/HeatDeploymentArtifacts/invalid*.json</exclude>
484 </excludes>
485 </validationSet>
486 </validationSets>
487 </configuration>
488 </execution>
489 </executions>
490 </plugin>
Michael Landoa5445102018-03-04 14:53:33 +0200491 </plugins>
492 </build>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200493 <profiles>
494 <profile>
495 <id>docker</id>
496 <activation>
497 <activeByDefault>false</activeByDefault>
498 </activation>
499 <build>
500 <plugins>
501 <plugin>
Michael Landodc856bb2018-08-13 13:27:52 +0300502 <groupId>org.apache.maven.plugins</groupId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200503 <artifactId>maven-resources-plugin</artifactId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200504 <executions>
505 <execution>
506 <id>copy-tests-suites</id>
507 <phase>verify</phase>
508 <goals>
509 <goal>copy-resources</goal>
510 </goals>
511 <configuration>
512 <outputDirectory>sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/testSuites</outputDirectory>
513 <resources>
514 <resource>
515 <directory>${project.parent.basedir}/test-apis-ci/src/main/resources/ci/testSuites</directory>
516 <includes>
517 <include>*</include>
518 </includes>
519 </resource>
520 </resources>
521 </configuration>
522 </execution>
523
524 <execution>
525 <id>copy-resources-test-apis-ci</id>
526 <phase>verify</phase>
527 <goals>
528 <goal>copy-resources</goal>
529 </goals>
530 <configuration>
531 <outputDirectory>sdc-api-tests</outputDirectory>
532 <resources>
533 <resource>
534 <directory>${project.parent.basedir}/test-apis-ci/target</directory>
535 <includes>
536 <include>test-apis-ci-${project.version}-jar-with-dependencies.jar</include>
537 </includes>
538 </resource>
539 </resources>
540 </configuration>
541 </execution>
542 </executions>
543 </plugin>
544
545 <plugin>
546 <groupId>io.fabric8</groupId>
547 <artifactId>docker-maven-plugin</artifactId>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200548 <configuration>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200549 <apiVersion>1.23</apiVersion>
550 <registry>nexus3.onap.org:10001</registry>
551 <authConfig>
552 <pull>
553 <username>docker</username>
554 <password>docker</password>
555 </pull>
556 </authConfig>
557 <images>
558
559
560 <!-- Build sanity image -->
561 <image>
562 <name>onap/sdc-api-tests</name>
563 <alias>sdc-api-tests</alias>
564 <build>
565 <cleanup>try</cleanup>
566 <dockerFileDir>${project.basedir}/sdc-api-tests</dockerFileDir>
567 <tags>
568 <tag>${docker.tag}</tag>
Yuli Shlosbergf59a2252018-03-21 11:14:08 +0200569 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
570 </tags>
571 </build>
572 </image>
573
574 </images>
575 </configuration>
576 <executions>
577 <execution>
578 <id>clean-images</id>
579 <phase>pre-clean</phase>
580 <goals>
581 <goal>remove</goal>
582 </goals>
583 <configuration>
584 <removeAll>true</removeAll>
585 <image>onap/sdc-api-tests</image>
586 </configuration>
587 </execution>
588
589 <execution>
590 <id>generate-images</id>
591 <phase>install</phase>
592 <goals>
593 <goal>build</goal>
594 </goals>
595 </execution>
596
597 <execution>
598 <id>push-images</id>
599 <phase>deploy</phase>
600 <goals>
601 <goal>push</goal>
602 </goals>
603 <configuration>
604 <image>onap/sdc-api-tests</image>
605 </configuration>
606 </execution>
607 </executions>
608 </plugin>
609 </plugins>
610 </build>
611 </profile>
612</profiles>
Michael Landob3d48982017-06-11 14:22:02 +0300613
Michael Landob3d48982017-06-11 14:22:02 +0300614
Michael Landob3d48982017-06-11 14:22:02 +0300615</project>