blob: 7052e31176c7c0383855fdefe50d80c5a8cfba56 [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 Shlosberg9dde9262017-09-12 14:11:48 +03002 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
Yuli Shlosberg9dde9262017-09-12 14:11:48 +03004 <modelVersion>4.0.0</modelVersion>
Michael Lando451a3402017-02-19 10:28:42 +02005
Yuli Shlosberg9dde9262017-09-12 14:11:48 +03006 <artifactId>sdc-os-chef</artifactId>
Tal Gitelman0c3b1892017-10-04 16:56:23 +03007 <packaging>pom</packaging>
8
Michael Lando451a3402017-02-19 10:28:42 +02009
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030010 <parent>
11 <groupId>org.openecomp.sdc</groupId>
12 <artifactId>sdc-main</artifactId>
Michael Lando0ad3c802017-09-19 16:32:59 +030013 <version>1.2.0-SNAPSHOT</version>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030014 </parent>
Michael Lando451a3402017-02-19 10:28:42 +020015
Michael Landoed64b5e2017-06-09 03:19:04 +030016
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030017 <build>
18 <plugins>
19 <plugin>
20 <artifactId>maven-clean-plugin</artifactId>
21 <version>3.0.0</version>
22 <executions>
23 <execution>
24 <id>clean.tosca.chef.os.folder</id>
25 <phase>clean</phase>
26 <goals>
27 <goal>clean</goal>
28 </goals>
29 <configuration>
30 <filesets>
Tal Gitelman0c3b1892017-10-04 16:56:23 +030031 <!-- static configuration files -->
32 <fileset>
33 <directory>${project.parent.basedir}/sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default</directory>
34 <followSymlinks>false</followSymlinks>
35 <includes>
Yuli Shlosberg0566f582017-11-26 19:05:23 +020036 <include>Artifact-Generator.properties</include>
37 <include>error-configuration.yaml</include>
38 <include>ecomp-error-configuration.yaml</include>
39 <include>logback.xml</include>
40 </includes>
41 </fileset>
Tal Gitelman0c3b1892017-10-04 16:56:23 +030042 <!-- BE WAR's -->
43 <fileset>
44 <directory>${project.parent.basedir}/sdc-os-chef/sdc-backend</directory>
45 <followSymlinks>false</followSymlinks>
46 <includes>
47 <include>*.war</include>
48 </includes>
49 </fileset>
50 <!-- FE WAR's -->
51 <fileset>
52 <directory>${project.parent.basedir}/sdc-os-chef/sdc-frontend/</directory>
53 <followSymlinks>false</followSymlinks>
54 <includes>
55 <include>*.war</include>
56 </includes>
57 </fileset>
58 <fileset>
59 <directory>${project.basedir}/sdc-backend/chef-repo/cookbooks/sdc-normatives/files/default</directory>
60 <followSymlinks>false</followSymlinks>
61 <includes>
62 <include>normatives.tar.gz</include>
63 </includes>
64 </fileset>
Yuli Shlosberg0566f582017-11-26 19:05:23 +020065 <fileset>
66 <directory>${project.basedir}/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/attributes/</directory>
67 <followSymlinks>false</followSymlinks>
68 <includes>
69 <include>**/default.rb</include>
70 </includes>
71 </fileset>
Tal Gitelman15c2ce72017-10-18 19:47:40 +030072 <!-- Sanity jar -->
73 <fileset>
74 <directory>${project.basedir}/sdc-sanity</directory>
75 <followSymlinks>false</followSymlinks>
76 <includes>
77 <include>*.jar</include>
78 </includes>
79 </fileset>
80 <!-- Sanity test suites -->
81 <fileset>
82 <directory>${project.basedir}/sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/testSuites</directory>
83 <followSymlinks>false</followSymlinks>
84 </fileset>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +030085 </filesets>
86 </configuration>
87 </execution>
88 </executions>
89 </plugin>
90 <plugin>
91 <groupId>ru.yaal.maven</groupId>
92 <artifactId>write-text-files-maven-plugin</artifactId>
93 <version>1.1</version>
94 <configuration>
95 <charset>UTF-8</charset>
96 <files>
97 <file>
98 <path>
99 ${project.basedir}\sdc-cassandra\chef-repo\cookbooks\cassandra-actions\attributes\default.rb
100 </path>
101 <lines>
Yuli Shlosberg0566f582017-11-26 19:05:23 +0200102 <line>normal['version'] ="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"</line>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300103 </lines>
104 </file>
105 </files>
106 </configuration>
107 <executions>
108 <execution>
109 <id>write-text-files</id>
110 <phase>prepare-package</phase>
111 <goals>
112 <goal>write-text-files</goal>
113 </goals>
114 </execution>
115 </executions>
116 </plugin>
117 </plugins>
118 </build>
Michael Lando9dd269d2017-02-20 01:04:22 +0200119
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300120 <profiles>
121 <profile>
122 <id>docker-staging</id>
123 <properties>
124 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
125 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
126 </properties>
127 </profile>
Michael Landoed64b5e2017-06-09 03:19:04 +0300128
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300129 <profile>
130 <id>docker</id>
131 <activation>
132 <activeByDefault>false</activeByDefault>
133 </activation>
134 <build>
135 <plugins>
136 <plugin>
137 <artifactId>maven-resources-plugin</artifactId>
138 <version>3.0.2</version>
139 <executions>
140 <execution>
141 <id>copy-resources-apidocs</id>
142 <phase>validate</phase>
143 <goals>
144 <goal>copy-resources</goal>
145 </goals>
146 <configuration>
147 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
148 <resources>
149 <resource>
150 <directory>
151 ${project.parent.basedir}/openecomp-be/tools/swagger-ui/api-docs
152 </directory>
153 <includes>
154 <include>api-docs.war</include>
155 </includes>
156 </resource>
157 </resources>
158 </configuration>
159 </execution>
Tal Gitelman004829c2017-09-10 20:06:45 +0300160
161 <execution>
162 <id>copy-static-configuration-files</id>
163 <phase>validate</phase>
164 <goals>
165 <goal>copy-resources</goal>
166 </goals>
167 <configuration>
168 <outputDirectory>${project.parent.basedir}/sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default</outputDirectory>
169 <resources>
170 <resource>
171 <directory>${project.parent.basedir}/catalog-be/src/main/resources/config</directory>
172 <includes>
173 <include>Artifact-Generator.properties</include>
174 <include>error-configuration.yaml</include>
175 <include>ecomp-error-configuration.yaml</include>
176 <include>logback.xml</include>
177 </includes>
178 </resource>
179 </resources>
180 </configuration>
181 </execution>
182
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300183 <execution>
184 <id>copy-resources-be</id>
185 <phase>validate</phase>
186 <goals>
187 <goal>copy-resources</goal>
188 </goals>
189 <configuration>
190 <outputDirectory>${basedir}/sdc-backend</outputDirectory>
191 <resources>
Tal Gitelman0c3b1892017-10-04 16:56:23 +0300192 <resource>
193 <directory>${project.parent.basedir}/catalog-be/target</directory>
194 <includes>
195 <include>catalog-be-${project.version}.war</include>
196 </includes>
197 </resource>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300198 <resource>
199 <directory>
200 ${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
201 </directory>
202 <includes>
203 <include>onboarding-be-${project.version}.war</include>
204 </includes>
205 </resource>
206 </resources>
207 </configuration>
208 </execution>
Tal Gitelman0c3b1892017-10-04 16:56:23 +0300209
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300210 <execution>
211 <id>copy-resources-fe</id>
212 <phase>validate</phase>
213 <goals>
214 <goal>copy-resources</goal>
215 </goals>
216 <configuration>
217 <outputDirectory>${basedir}/sdc-frontend</outputDirectory>
218 <resources>
Tal Gitelman0c3b1892017-10-04 16:56:23 +0300219 <resource>
220 <directory>${project.parent.basedir}/catalog-fe/target</directory>
221 <includes>
222 <include>catalog-fe-${project.version}.war</include>
223 </includes>
224 </resource>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300225 <resource>
226 <directory>${project.parent.basedir}/openecomp-ui/target</directory>
227 <includes>
228 <include>onboarding-fe-${project.version}.war</include>
229 </includes>
230 </resource>
231 </resources>
232 </configuration>
233 </execution>
Tal Gitelman0c3b1892017-10-04 16:56:23 +0300234
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300235 <execution>
236 <id>copy-tests-suites</id>
237 <phase>validate</phase>
238 <goals>
239 <goal>copy-resources</goal>
240 </goals>
241 <configuration>
242 <outputDirectory>sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/testSuites</outputDirectory>
243 <resources>
244 <resource>
245 <directory>${project.parent.basedir}/test-apis-ci/src/main/resources/ci/testSuites</directory>
246 <includes>
247 <include>*</include>
248 </includes>
249 </resource>
250 </resources>
251 </configuration>
252 </execution>
Yuli Shlosberg0566f582017-11-26 19:05:23 +0200253
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300254 <execution>
255 <id>copy-resources-test-apis-ci</id>
256 <phase>validate</phase>
257 <goals>
258 <goal>copy-resources</goal>
259 </goals>
260 <configuration>
261 <outputDirectory>${basedir}/sdc-sanity</outputDirectory>
262 <resources>
263 <resource>
264 <directory>${project.parent.basedir}/test-apis-ci/target</directory>
265 <includes>
266 <include>test-apis-ci-${project.version}-jar-with-dependencies.jar</include>
267 </includes>
268 </resource>
269 </resources>
270 </configuration>
Yuli Shlosberg0875ce02018-01-25 13:53:36 +0200271 </execution>
Tal Gitelman0c3b1892017-10-04 16:56:23 +0300272 <execution>
273 <id>copy-normatives</id>
274 <phase>validate</phase>
275 <goals>
276 <goal>copy-resources</goal>
277 </goals>
278 <configuration>
279 <outputDirectory>${project.parent.basedir}/sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-normatives/files/default</outputDirectory>
280 <resources>
281 <resource>
282 <directory>${project.parent.basedir}/catalog-be/target</directory>
283 <includes>
284 <include>normatives.tar.gz</include>
285 </includes>
286 </resource>
287 </resources>
288 </configuration>
Yuli Shlosberg0875ce02018-01-25 13:53:36 +0200289 </execution>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300290 </executions>
291 </plugin>
Tal Gitelman51d50f02017-12-10 18:55:03 +0200292
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300293 <plugin>
294 <groupId>io.fabric8</groupId>
295 <artifactId>docker-maven-plugin</artifactId>
Idan Amita63a1aa2017-11-08 11:25:03 +0200296 <version>0.23.0</version>
Michael Lando9dd269d2017-02-20 01:04:22 +0200297
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300298 <configuration>
299 <verbose>true</verbose>
300 <apiVersion>1.23</apiVersion>
Yuli Shlosberg44144952017-11-09 13:34:49 +0200301 <registry>nexus3.onap.org:10001</registry>
Idan Amit7cb00e62017-10-26 10:02:20 +0300302 <authConfig>
Idan Amitbc51da22017-10-26 16:56:53 +0300303 <pull>
Yuli Shlosberg0566f582017-11-26 19:05:23 +0200304 <username>docker</username>
305 <password>docker</password>
306 </pull>
307 </authConfig>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300308 <images>
Michael Lando9dd269d2017-02-20 01:04:22 +0200309
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300310 <!-- Build backend image -->
311 <image>
Idan Amit55dda1a2017-12-06 17:21:38 +0200312 <name>onap/sdc-backend</name>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300313 <alias>sdc-backend</alias>
314 <build>
315 <cleanup>try</cleanup>
316 <dockerFileDir>${project.basedir}/sdc-backend</dockerFileDir>
317 <tags>
318 <tag>${docker.tag}</tag>
Michael Lando3a875fb2017-09-23 18:37:09 +0300319 <tag>${docker.latest.tag}</tag>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300320 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
321 </tags>
322 </build>
323 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +0200324
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300325 <!-- Build frontend image -->
326 <image>
Idan Amit55dda1a2017-12-06 17:21:38 +0200327 <name>onap/sdc-frontend</name>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300328 <alias>sdc-frontend</alias>
329 <build>
330 <cleanup>try</cleanup>
331 <dockerFileDir>${project.basedir}/sdc-frontend</dockerFileDir>
332 <tags>
333 <tag>${docker.tag}</tag>
334 <tag>${docker.latest.tag}</tag>
335 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
336 </tags>
337 </build>
338 </image>
Tal Gitelman38211c82018-01-24 17:59:53 +0200339
340 <!-- Build init-elastic search image -->
341 <image>
342 <name>onap/sdc-init-elasticsearch</name>
343 <alias>sdc-init-elasticsearch</alias>
344 <build>
345 <cleanup>try</cleanup>
346 <dockerFileDir>${project.basedir}/sdc-init-elasticsearch</dockerFileDir>
347 <tags>
348 <tag>${docker.tag}</tag>
349 <tag>${docker.latest.tag}</tag>
350 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
351 </tags>
352 </build>
353 </image>
354
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300355 <!-- Build elastic search image -->
356 <image>
Idan Amit55dda1a2017-12-06 17:21:38 +0200357 <name>onap/sdc-elasticsearch</name>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300358 <alias>sdc-elasticsearch</alias>
359 <build>
360 <cleanup>try</cleanup>
361 <dockerFileDir>${project.basedir}/sdc-elasticsearch</dockerFileDir>
362 <tags>
363 <tag>${docker.tag}</tag>
364 <tag>${docker.latest.tag}</tag>
365 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
366 </tags>
367 </build>
368 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +0200369
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300370 <!-- Build kibana image -->
371 <image>
Idan Amit55dda1a2017-12-06 17:21:38 +0200372 <name>onap/sdc-kibana</name>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300373 <alias>sdc-kibana</alias>
374 <build>
375 <cleanup>try</cleanup>
376 <dockerFileDir>${project.basedir}/sdc-kibana</dockerFileDir>
377 <tags>
378 <tag>${docker.tag}</tag>
379 <tag>${docker.latest.tag}</tag>
380 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
381 </tags>
382 </build>
383 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +0200384
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300385 <!-- Build cassandra image -->
386 <image>
Idan Amit55dda1a2017-12-06 17:21:38 +0200387 <name>onap/sdc-cassandra</name>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300388 <alias>sdc-cassandra</alias>
389 <build>
390 <cleanup>try</cleanup>
391 <dockerFileDir>${project.basedir}/sdc-cassandra</dockerFileDir>
392 <tags>
393 <tag>${docker.tag}</tag>
394 <tag>${docker.latest.tag}</tag>
395 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
396 </tags>
397 </build>
398 </image>
Michael Lando9dd269d2017-02-20 01:04:22 +0200399
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300400 <!-- Build sanity image -->
401 <image>
Idan Amit55dda1a2017-12-06 17:21:38 +0200402 <name>onap/sdc-sanity</name>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300403 <alias>sdc-sanity</alias>
404 <build>
405 <cleanup>try</cleanup>
406 <dockerFileDir>${project.basedir}/sdc-sanity</dockerFileDir>
407 <tags>
408 <tag>${docker.tag}</tag>
409 <tag>${docker.latest.tag}</tag>
Tal Gitelman15c2ce72017-10-18 19:47:40 +0300410 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300411 </tags>
412 </build>
413 </image>
Michael Landoed64b5e2017-06-09 03:19:04 +0300414
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300415 </images>
416 </configuration>
417 <executions>
418 <execution>
Michael Landoed64b5e2017-06-09 03:19:04 +0300419 <id>clean-images</id>
420 <phase>pre-clean</phase>
421 <goals>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300422 <goal>remove</goal>
Michael Landoed64b5e2017-06-09 03:19:04 +0300423 </goals>
424 <configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300425 <removeAll>true</removeAll>
Tal Gitelman38211c82018-01-24 17:59:53 +0200426 <image>onap/sdc-backend,onap/sdc-frontend,onap/sdc-init-elasticsearch,onap/sdc-elasticsearch,onap/sdc-kibana,onap/sdc-cassandra,onap/sdc-sanity</image>
Michael Landoed64b5e2017-06-09 03:19:04 +0300427 </configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300428 </execution>
Michael Lando9dd269d2017-02-20 01:04:22 +0200429
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300430 <execution>
431 <id>generate-images</id>
432 <phase>package</phase>
433 <goals>
434 <goal>build</goal>
435 </goals>
436 </execution>
Michael Lando9dd269d2017-02-20 01:04:22 +0200437
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300438 <execution>
Michael Landoed64b5e2017-06-09 03:19:04 +0300439 <id>push-images</id>
440 <phase>deploy</phase>
441 <goals>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300442 <goal>push</goal>
Michael Landoed64b5e2017-06-09 03:19:04 +0300443 </goals>
444 <configuration>
Tal Gitelman38211c82018-01-24 17:59:53 +0200445 <image>onap/sdc-backend,onap/sdc-frontend,onap/sdc-init-elasticsearch,onap/sdc-elasticsearch,onap/sdc-kibana,onap/sdc-cassandra,onap/sdc-sanity</image>
Michael Landoed64b5e2017-06-09 03:19:04 +0300446 </configuration>
Yuli Shlosberg9dde9262017-09-12 14:11:48 +0300447 </execution>
448 </executions>
449 </plugin>
450 </plugins>
451 </build>
452 </profile>
453 </profiles>
Michael Lando451a3402017-02-19 10:28:42 +0200454</project>