blob: b75e161344afda40b8e0eddf8dd0fc6242479b6d [file] [log] [blame]
Muthuramalingam, Brinda Santh(bs2796)4b3c8a02018-08-15 21:31:10 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ Copyright © 2017-2018 AT&T Intellectual Property.
4 ~
Brinda Santhafbc1522018-08-23 23:34:05 -04005 ~ Modifications Copyright © 2018 IBM.
Steve Alphonse Siania5f9b6f2019-01-21 11:55:48 -05006 ~ Modifications Copyright © 2019 Bell Canada.
Brinda Santhafbc1522018-08-23 23:34:05 -04007 ~
Muthuramalingam, Brinda Santh(bs2796)4b3c8a02018-08-15 21:31:10 +00008 ~ Licensed under the Apache License, Version 2.0 (the "License");
9 ~ you may not use this file except in compliance with the License.
10 ~ You may obtain a copy of the License at
11 ~
12 ~ http://www.apache.org/licenses/LICENSE-2.0
13 ~
14 ~ Unless required by applicable law or agreed to in writing, software
15 ~ distributed under the License is distributed on an "AS IS" BASIS,
16 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 ~ See the License for the specific language governing permissions and
18 ~ limitations under the License.
19 -->
Timoney, Dan (dt5972)45bdf842019-08-06 10:19:48 -040020<project xmlns="http://maven.apache.org/POM/4.0.0" 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">
Muthuramalingam, Brinda Santh(bs2796)4b3c8a02018-08-15 21:31:10 +000021 <modelVersion>4.0.0</modelVersion>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +000022
Muthuramalingam, Brinda Santh(bs2796)4b3c8a02018-08-15 21:31:10 +000023 <parent>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040024 <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
Muthuramalingam, Brinda Santh(bs2796)4b3c8a02018-08-15 21:31:10 +000025 <artifactId>parent</artifactId>
Timoney, Dan (dt5972)1926b372019-09-11 10:54:30 -040026 <version>0.7.0-SNAPSHOT</version>
Timoney, Dan (dt5972)60e75d02019-11-21 08:29:13 -050027 <relativePath>../parent</relativePath>
Muthuramalingam, Brinda Santh(bs2796)4b3c8a02018-08-15 21:31:10 +000028 </parent>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +000029
Muthuramalingam, Brinda Santh(bs2796)4b3c8a02018-08-15 21:31:10 +000030 <artifactId>application</artifactId>
31 <packaging>jar</packaging>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +000032
Muthuramalingam, Brinda Santh(bs2796)4b3c8a02018-08-15 21:31:10 +000033 <name>Blueprints Processor Application</name>
34 <description>Blueprints Processor Application</description>
35
Brinda Santh65279622019-09-06 14:37:04 -040036 <properties>
37 <assembly.id>maven</assembly.id>
38 <name.space>org.onap.ccsdk.cds</name.space>
39 <serviceArtifactName>blueprintsprocessor</serviceArtifactName>
40 <image.name>onap/ccsdk-blueprintsprocessor</image.name>
Brinda Santh65279622019-09-06 14:37:04 -040041 <docker.push.phase>deploy</docker.push.phase>
42 <docker.verbose>true</docker.verbose>
43 <ccsdk.project.version>${project.version}</ccsdk.project.version>
44 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
45 </properties>
46
Muthuramalingam, Brinda Santh(bs2796)4b3c8a02018-08-15 21:31:10 +000047 <dependencies>
48 <dependency>
Brinda Santhea84b362019-12-03 16:15:20 -050049 <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
50 <artifactId>blueprint-core</artifactId>
51 <exclusions>
Steve Sianie827a3a2019-07-09 15:53:57 -040052 <exclusion>
53 <groupId>org.springframework.boot</groupId>
54 <artifactId>spring-boot-starter-logging</artifactId>
55 </exclusion>
56 </exclusions>
Steve Alphonse Siania5f9b6f2019-01-21 11:55:48 -050057 </dependency>
58 <dependency>
Muthuramalingam, Brinda Santh(bs2796)4b3c8a02018-08-15 21:31:10 +000059 <groupId>org.springframework.boot</groupId>
Alexis de Talhouëte4a1f832019-03-04 21:37:27 -050060 <artifactId>spring-boot-starter-security</artifactId>
Steve Sianie827a3a2019-07-09 15:53:57 -040061 <exclusions>
62 <exclusion>
63 <groupId>org.springframework.boot</groupId>
64 <artifactId>spring-boot-starter-logging</artifactId>
65 </exclusion>
66 </exclusions>
Alexis de Talhouëte4a1f832019-03-04 21:37:27 -050067 </dependency>
68
Muthuramalingam, Brinda Santh(bs2796)2e942322018-11-15 08:36:28 -050069 <!-- North Bound -->
Muthuramalingam, Brinda Santh(bs2796)4b3c8a02018-08-15 21:31:10 +000070 <dependency>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040071 <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
Brinda Santh8d3f8252019-08-01 11:25:14 -040072 <artifactId>designer-api</artifactId>
73 </dependency>
74 <dependency>
75 <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
Muthuramalingam, Brinda Santh(bs2796)4b3c8a02018-08-15 21:31:10 +000076 <artifactId>resource-api</artifactId>
77 </dependency>
78 <dependency>
Brinda Santh8d3f8252019-08-01 11:25:14 -040079 <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
80 <artifactId>selfservice-api</artifactId>
81 </dependency>
Serge Simard34c42462019-08-08 10:55:57 -040082 <dependency>
83 <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
84 <artifactId>configs-api</artifactId>
85 </dependency>
Singal, Kapil (ks220y)341db212019-11-22 18:06:08 -050086 <dependency>
Shaaban Ebrahimbf305322019-09-10 18:12:32 +020087 <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
88 <artifactId>health-api</artifactId>
89 </dependency>
Shaaban Ebrahim843d1f72019-10-24 12:37:21 +020090 <dependency>
91 <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
92 <artifactId>health-api-common</artifactId>
Shaaban Ebrahim843d1f72019-10-24 12:37:21 +020093 </dependency>
Shaaban Ebrahimbf305322019-09-10 18:12:32 +020094
Brinda Santh8d3f8252019-08-01 11:25:14 -040095 <!-- Functions -->
96 <dependency>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -040097 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
Alexis de Talhouët7aa5df82019-02-11 17:23:48 -050098 <artifactId>python-executor</artifactId>
99 </dependency>
100 <dependency>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400101 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
Huang Chengfdfeef72020-02-04 03:53:15 +0000102 <artifactId>restful-executor</artifactId>
103 </dependency>
104 <dependency>
105 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
Serge Simarda3d9ac82019-05-17 06:39:58 -0400106 <artifactId>ansible-awx-executor</artifactId>
107 </dependency>
108 <dependency>
109 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
Alexis de Talhouëtc55160e2019-02-12 23:05:01 -0500110 <artifactId>netconf-executor</artifactId>
111 </dependency>
112 <dependency>
Alexis de Talhouëtc90edac2019-03-25 13:04:18 -0400113 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
ottero9d334562019-03-11 14:03:09 +0000114 <artifactId>restconf-executor</artifactId>
115 </dependency>
116 <dependency>
Brinda Santh145662f2019-05-16 12:37:55 -0400117 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
118 <artifactId>cli-executor</artifactId>
119 </dependency>
Serge Simard34c42462019-08-08 10:55:57 -0400120 <dependency>
121 <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
122 <artifactId>config-snapshots</artifactId>
123 </dependency>
Brinda Santhafbc1522018-08-23 23:34:05 -0400124 <dependency>
Muthuramalingam, Brinda Santh(bs2796)99b20422018-12-06 16:46:19 -0500125 <groupId>com.h2database</groupId>
126 <artifactId>h2</artifactId>
127 </dependency>
128 <dependency>
Brinda Santhafbc1522018-08-23 23:34:05 -0400129 <groupId>org.powermock</groupId>
130 <artifactId>powermock-api-mockito2</artifactId>
131 <scope>test</scope>
132 </dependency>
133 <dependency>
134 <groupId>org.springframework.boot</groupId>
135 <artifactId>spring-boot-starter-test</artifactId>
136 <scope>test</scope>
137 </dependency>
138 <dependency>
139 <groupId>org.jetbrains.kotlin</groupId>
Muthuramalingam, Brinda Santh(bs2796)c6ffd3c2018-11-10 11:54:05 -0500140 <artifactId>kotlin-test-junit</artifactId>
Brinda Santhafbc1522018-08-23 23:34:05 -0400141 <scope>test</scope>
142 </dependency>
143 <dependency>
144 <groupId>io.projectreactor</groupId>
145 <artifactId>reactor-test</artifactId>
146 <scope>test</scope>
147 </dependency>
ebo3d962092019-09-30 13:23:43 +0100148 <!-- BEGIN UAT -->
149 <dependency>
150 <groupId>org.skyscreamer</groupId>
151 <artifactId>jsonassert</artifactId>
152 </dependency>
Eliezio Oliveira1e7e4a52019-07-31 11:50:26 +0100153 <dependency>
154 <groupId>org.yaml</groupId>
155 <artifactId>snakeyaml</artifactId>
Eliezio Oliveira1e7e4a52019-07-31 11:50:26 +0100156 </dependency>
157 <dependency>
158 <groupId>com.nhaarman.mockitokotlin2</groupId>
159 <artifactId>mockito-kotlin</artifactId>
ebof2003ee2020-03-04 14:17:57 +0000160 <!-- It's unusual but 'compile' here is the right scope since mockito is being used at runtime by
161 the UatServices (/api/v1/uat/spy and /api/v1/uat/verify endpoints) -->
162 <scope>compile</scope>
Eliezio Oliveira1e7e4a52019-07-31 11:50:26 +0100163 </dependency>
164 <dependency>
eboff445e62019-08-16 13:18:47 +0000165 <groupId>com.schibsted.spt.data</groupId>
166 <artifactId>jslt</artifactId>
ebo3d962092019-09-30 13:23:43 +0100167 </dependency>
168 <dependency>
169 <groupId>org.apache.httpcomponents</groupId>
170 <artifactId>httpclient</artifactId>
171 <version>${apache.httpcomponents.client.version}</version>
172 </dependency>
173 <dependency>
174 <groupId>org.apache.httpcomponents</groupId>
175 <artifactId>httpmime</artifactId>
176 <version>${apache.httpcomponents.client.version}</version>
177 </dependency>
178 <dependency>
179 <groupId>com.github.tomakehurst</groupId>
180 <artifactId>wiremock-jre8</artifactId>
181 <version>2.25.0</version>
eboff445e62019-08-16 13:18:47 +0000182 <scope>test</scope>
183 </dependency>
ebo3d962092019-09-30 13:23:43 +0100184 <!-- END UAT -->
eboff445e62019-08-16 13:18:47 +0000185 <dependency>
Eliezio Oliveira1e7e4a52019-07-31 11:50:26 +0100186 <groupId>ch.qos.logback</groupId>
187 <artifactId>logback-classic</artifactId>
Eliezio Oliveira1e7e4a52019-07-31 11:50:26 +0100188 </dependency>
Shaaban Ebrahim843d1f72019-10-24 12:37:21 +0200189
Muthuramalingam, Brinda Santh(bs2796)4b3c8a02018-08-15 21:31:10 +0000190 </dependencies>
SINGAL, KAPIL (ks220y)24f39fd2019-09-17 16:36:59 +0000191
Muthuramalingam, Brinda Santh(bs2796)4b3c8a02018-08-15 21:31:10 +0000192 <build>
Steve Alphonse Siania5f9b6f2019-01-21 11:55:48 -0500193 <resources>
194 <resource>
195 <!--config and resource files -->
196 <directory>${basedir}/etc</directory>
197 <targetPath>${basedir}/target/etc</targetPath>
198 <filtering>true</filtering>
199 <includes>
200 <include>**/*</include>
201 </includes>
202 </resource>
203 <resource>
204 <!--config and resource files -->
205 <directory>${basedir}/src/main/resources</directory>
206 <targetPath>${basedir}/target/src/main/resources</targetPath>
207 <filtering>true</filtering>
208 <includes>
209 <include>**/*</include>
210 </includes>
211 </resource>
212 <resource>
213 <directory>src/main/resources</directory>
214 <includes>
215 <include>**/*</include>
216 </includes>
217 <filtering>true</filtering>
218 </resource>
219 </resources>
Muthuramalingam, Brinda Santh(bs2796)4b3c8a02018-08-15 21:31:10 +0000220 <plugins>
221 <plugin>
Steve Alphonse Siania5f9b6f2019-01-21 11:55:48 -0500222 <artifactId>maven-resources-plugin</artifactId>
223 <version>2.6</version>
224 <executions>
225 <execution>
226 <id>copy-dockerfile</id>
227 <goals>
228 <goal>copy-resources</goal>
229 </goals><!-- here the phase you need -->
230 <phase>validate</phase>
231 <configuration>
232 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
233 <resources>
234 <resource>
235 <directory>src/main/docker</directory>
236 <includes>
237 <include>*</include>
238 </includes>
239 <filtering>true</filtering>
240 </resource>
241 </resources>
242 </configuration>
243 </execution>
244 </executions>
245 </plugin>
246 <plugin>
247 <groupId>org.apache.maven.plugins</groupId>
248 <artifactId>maven-antrun-plugin</artifactId>
249 <executions>
250 <execution>
251 <id>ant-test</id>
252 <phase>package</phase>
253 <configuration>
254 <tasks>
255 <fixcrlf srcdir="${basedir}" eol="unix" includes="**/*.sh, **/*.source"/>
256 </tasks>
257 </configuration>
258 <goals>
259 <goal>run</goal>
260 </goals>
261 </execution>
262 </executions>
263 </plugin>
Brinda Santh65279622019-09-06 14:37:04 -0400264 <plugin><!--build the final artifact for docker deployment -->
265 <artifactId>maven-assembly-plugin</artifactId>
266 <version>3.1.0</version>
267 <configuration>
268 <!-- <skipAssembly>${skip.assembly}</skipAssembly> -->
269 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
270 <descriptors>
271 <descriptor>src/main/docker/distribution.xml</descriptor>
272 </descriptors>
273 <tarLongFileMode>posix</tarLongFileMode>
274 </configuration>
275 <executions>
276 <execution>
277 <id>${assembly.id}</id>
278 <phase>package</phase>
279 <goals>
280 <goal>single</goal>
281 </goals>
282 </execution>
283 </executions>
284 </plugin>
285 <plugin>
286 <groupId>org.codehaus.groovy.maven</groupId>
287 <artifactId>gmaven-plugin</artifactId>
288 <version>1.0</version>
289 <executions>
290 <execution>
291 <phase>validate</phase>
292 <goals>
293 <goal>execute</goal>
294 </goals>
295 <configuration>
296 <source>${basedir}/../../../TagVersion.groovy</source>
297 </configuration>
298 </execution>
299 </executions>
300 </plugin>
Steve Alphonse Siania5f9b6f2019-01-21 11:55:48 -0500301 <plugin>
302 <artifactId>maven-compiler-plugin</artifactId>
303 <version>3.1</version>
304 <configuration>
Steve Alphonse Siania5f9b6f2019-01-21 11:55:48 -0500305 <source>1.8</source>
306 <target>1.8</target>
307 </configuration>
308 </plugin>
Muthuramalingam, Brinda Santh(bs2796)4b3c8a02018-08-15 21:31:10 +0000309 </plugins>
310 </build>
Brinda Santh65279622019-09-06 14:37:04 -0400311
312 <profiles>
313 <profile>
314 <id>docker</id>
315 <build>
316 <plugins>
317 <plugin>
318 <groupId>io.fabric8</groupId>
319 <artifactId>docker-maven-plugin</artifactId>
320 <version>0.26.1</version>
321 <inherited>false</inherited>
322 <configuration>
323 <images>
324 <image>
325 <name>${image.name}</name>
326 <build>
327 <cleanup>try</cleanup>
328 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
329 <tags>
330 <tag>${project.docker.latestminortag.version}</tag>
331 <tag>${project.docker.latestfulltag.version}</tag>
332 <tag>${project.docker.latesttagtimestamp.version}</tag>
333 </tags>
334 </build>
335 </image>
336 </images>
337 <verbose>true</verbose>
338 </configuration>
339 <executions>
340 <execution>
341 <id>generate-images</id>
342 <phase>package</phase>
343 <goals>
344 <goal>build</goal>
345 </goals>
346 </execution>
347 <execution>
348 <id>push-images</id>
349 <phase>${docker.push.phase}</phase>
350 <goals>
351 <goal>build</goal>
352 <goal>push</goal>
353 </goals>
354 </execution>
355 </executions>
356 </plugin>
357 </plugins>
358 </build>
359 </profile>
360 </profiles>
Muthuramalingam, Brinda Santh(bs2796)4b3c8a02018-08-15 21:31:10 +0000361</project>