Merge "Restored /spy and /verify UatServices endpoints"
[ccsdk/cds.git] / ms / blueprintsprocessor / application / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~  Copyright © 2017-2018 AT&T Intellectual Property.
4   ~
5   ~  Modifications Copyright © 2018 IBM.
6   ~  Modifications Copyright © 2019 Bell Canada.
7   ~
8   ~  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   -->
20 <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">
21     <modelVersion>4.0.0</modelVersion>
22
23     <parent>
24         <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
25         <artifactId>parent</artifactId>
26         <version>0.7.0-SNAPSHOT</version>
27         <relativePath>../parent</relativePath>
28     </parent>
29
30     <artifactId>application</artifactId>
31     <packaging>jar</packaging>
32
33     <name>Blueprints Processor Application</name>
34     <description>Blueprints Processor Application</description>
35
36     <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>
41         <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
47     <dependencies>
48         <dependency>
49            <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
50            <artifactId>blueprint-core</artifactId>
51            <exclusions>
52                 <exclusion>
53                     <groupId>org.springframework.boot</groupId>
54                     <artifactId>spring-boot-starter-logging</artifactId>
55                 </exclusion>
56             </exclusions>
57         </dependency>
58         <dependency>
59             <groupId>org.springframework.boot</groupId>
60             <artifactId>spring-boot-starter-security</artifactId>
61             <exclusions>
62                 <exclusion>
63                     <groupId>org.springframework.boot</groupId>
64                     <artifactId>spring-boot-starter-logging</artifactId>
65                 </exclusion>
66             </exclusions>
67         </dependency>
68
69         <!-- North Bound -->
70         <dependency>
71             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
72             <artifactId>designer-api</artifactId>
73         </dependency>
74         <dependency>
75             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
76             <artifactId>resource-api</artifactId>
77         </dependency>
78         <dependency>
79             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
80             <artifactId>selfservice-api</artifactId>
81         </dependency>
82         <dependency>
83             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
84             <artifactId>configs-api</artifactId>
85         </dependency>
86         <dependency>
87             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
88             <artifactId>health-api</artifactId>
89         </dependency>
90         <dependency>
91             <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
92             <artifactId>health-api-common</artifactId>
93         </dependency>
94
95         <!-- Functions -->
96         <dependency>
97             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
98             <artifactId>python-executor</artifactId>
99         </dependency>
100         <dependency>
101             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
102             <artifactId>ansible-awx-executor</artifactId>
103         </dependency>
104         <dependency>
105             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
106             <artifactId>netconf-executor</artifactId>
107         </dependency>
108         <dependency>
109             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
110             <artifactId>restconf-executor</artifactId>
111         </dependency>
112         <dependency>
113             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
114             <artifactId>cli-executor</artifactId>
115         </dependency>
116         <dependency>
117             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
118             <artifactId>config-snapshots</artifactId>
119         </dependency>
120         <dependency>
121             <groupId>com.h2database</groupId>
122             <artifactId>h2</artifactId>
123         </dependency>
124         <dependency>
125             <groupId>org.powermock</groupId>
126             <artifactId>powermock-api-mockito2</artifactId>
127             <scope>test</scope>
128         </dependency>
129         <dependency>
130             <groupId>org.springframework.boot</groupId>
131             <artifactId>spring-boot-starter-test</artifactId>
132             <scope>test</scope>
133         </dependency>
134         <dependency>
135             <groupId>org.jetbrains.kotlin</groupId>
136             <artifactId>kotlin-test-junit</artifactId>
137             <scope>test</scope>
138         </dependency>
139         <dependency>
140             <groupId>io.projectreactor</groupId>
141             <artifactId>reactor-test</artifactId>
142             <scope>test</scope>
143         </dependency>
144         <!-- BEGIN UAT -->
145         <dependency>
146             <groupId>org.skyscreamer</groupId>
147             <artifactId>jsonassert</artifactId>
148         </dependency>
149         <dependency>
150             <groupId>org.yaml</groupId>
151             <artifactId>snakeyaml</artifactId>
152         </dependency>
153         <dependency>
154             <groupId>com.nhaarman.mockitokotlin2</groupId>
155             <artifactId>mockito-kotlin</artifactId>
156             <!-- It's unusual but 'compile' here is the right scope since mockito is being used at runtime by
157                  the UatServices (/api/v1/uat/spy and /api/v1/uat/verify endpoints) -->
158             <scope>compile</scope>
159         </dependency>
160         <dependency>
161             <groupId>com.schibsted.spt.data</groupId>
162             <artifactId>jslt</artifactId>
163         </dependency>
164         <dependency>
165             <groupId>org.apache.httpcomponents</groupId>
166             <artifactId>httpclient</artifactId>
167             <version>${apache.httpcomponents.client.version}</version>
168         </dependency>
169         <dependency>
170             <groupId>org.apache.httpcomponents</groupId>
171             <artifactId>httpmime</artifactId>
172             <version>${apache.httpcomponents.client.version}</version>
173         </dependency>
174         <dependency>
175             <groupId>com.github.tomakehurst</groupId>
176             <artifactId>wiremock-jre8</artifactId>
177             <version>2.25.0</version>
178             <scope>test</scope>
179         </dependency>
180         <!-- END UAT -->
181         <dependency>
182             <groupId>ch.qos.logback</groupId>
183             <artifactId>logback-classic</artifactId>
184         </dependency>
185
186     </dependencies>
187
188     <build>
189         <resources>
190             <resource>
191                 <!--config and resource files -->
192                 <directory>${basedir}/etc</directory>
193                 <targetPath>${basedir}/target/etc</targetPath>
194                 <filtering>true</filtering>
195                 <includes>
196                     <include>**/*</include>
197                 </includes>
198             </resource>
199             <resource>
200                 <!--config and resource files -->
201                 <directory>${basedir}/src/main/resources</directory>
202                 <targetPath>${basedir}/target/src/main/resources</targetPath>
203                 <filtering>true</filtering>
204                 <includes>
205                     <include>**/*</include>
206                 </includes>
207             </resource>
208             <resource>
209                 <directory>src/main/resources</directory>
210                 <includes>
211                     <include>**/*</include>
212                 </includes>
213                 <filtering>true</filtering>
214             </resource>
215         </resources>
216         <plugins>
217             <plugin>
218                 <artifactId>maven-resources-plugin</artifactId>
219                 <version>2.6</version>
220                 <executions>
221                     <execution>
222                         <id>copy-dockerfile</id>
223                         <goals>
224                             <goal>copy-resources</goal>
225                         </goals><!-- here the phase you need -->
226                         <phase>validate</phase>
227                         <configuration>
228                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
229                             <resources>
230                                 <resource>
231                                     <directory>src/main/docker</directory>
232                                     <includes>
233                                         <include>*</include>
234                                     </includes>
235                                     <filtering>true</filtering>
236                                 </resource>
237                             </resources>
238                         </configuration>
239                     </execution>
240                 </executions>
241             </plugin>
242             <plugin>
243                 <groupId>org.apache.maven.plugins</groupId>
244                 <artifactId>maven-antrun-plugin</artifactId>
245                 <executions>
246                     <execution>
247                         <id>ant-test</id>
248                         <phase>package</phase>
249                         <configuration>
250                             <tasks>
251                                 <fixcrlf srcdir="${basedir}" eol="unix" includes="**/*.sh, **/*.source"/>
252                             </tasks>
253                         </configuration>
254                         <goals>
255                             <goal>run</goal>
256                         </goals>
257                     </execution>
258                 </executions>
259             </plugin>
260             <plugin><!--build the final artifact for docker deployment -->
261                 <artifactId>maven-assembly-plugin</artifactId>
262                 <version>3.1.0</version>
263                 <configuration>
264                     <!-- <skipAssembly>${skip.assembly}</skipAssembly> -->
265                     <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
266                     <descriptors>
267                         <descriptor>src/main/docker/distribution.xml</descriptor>
268                     </descriptors>
269                     <tarLongFileMode>posix</tarLongFileMode>
270                 </configuration>
271                 <executions>
272                     <execution>
273                         <id>${assembly.id}</id>
274                         <phase>package</phase>
275                         <goals>
276                             <goal>single</goal>
277                         </goals>
278                     </execution>
279                 </executions>
280             </plugin>
281             <plugin>
282                 <groupId>org.codehaus.groovy.maven</groupId>
283                 <artifactId>gmaven-plugin</artifactId>
284                 <version>1.0</version>
285                 <executions>
286                     <execution>
287                         <phase>validate</phase>
288                         <goals>
289                             <goal>execute</goal>
290                         </goals>
291                         <configuration>
292                             <source>${basedir}/../../../TagVersion.groovy</source>
293                         </configuration>
294                     </execution>
295                 </executions>
296             </plugin>
297             <plugin>
298                 <artifactId>maven-compiler-plugin</artifactId>
299                 <version>3.1</version>
300                 <configuration>
301                     <source>1.8</source>
302                     <target>1.8</target>
303                 </configuration>
304             </plugin>
305         </plugins>
306     </build>
307
308     <profiles>
309         <profile>
310             <id>docker</id>
311             <build>
312                 <plugins>
313                     <plugin>
314                         <groupId>io.fabric8</groupId>
315                         <artifactId>docker-maven-plugin</artifactId>
316                         <version>0.26.1</version>
317                         <inherited>false</inherited>
318                         <configuration>
319                             <images>
320                                 <image>
321                                     <name>${image.name}</name>
322                                     <build>
323                                         <cleanup>try</cleanup>
324                                         <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
325                                         <tags>
326                                             <tag>${project.docker.latestminortag.version}</tag>
327                                             <tag>${project.docker.latestfulltag.version}</tag>
328                                             <tag>${project.docker.latesttagtimestamp.version}</tag>
329                                         </tags>
330                                     </build>
331                                 </image>
332                             </images>
333                             <verbose>true</verbose>
334                         </configuration>
335                         <executions>
336                             <execution>
337                                 <id>generate-images</id>
338                                 <phase>package</phase>
339                                 <goals>
340                                     <goal>build</goal>
341                                 </goals>
342                             </execution>
343                             <execution>
344                                 <id>push-images</id>
345                                 <phase>${docker.push.phase}</phase>
346                                 <goals>
347                                     <goal>build</goal>
348                                     <goal>push</goal>
349                                 </goals>
350                             </execution>
351                         </executions>
352                     </plugin>
353                 </plugins>
354             </build>
355         </profile>
356     </profiles>
357 </project>