Code changes needed to resolve openjdk17 issues
[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>blueprintsprocessor-parent</artifactId>
26         <version>1.5.0-SNAPSHOT</version>
27         <relativePath>../parent</relativePath>
28     </parent>
29
30     <artifactId>blueprintsprocessor-application</artifactId>
31     <packaging>jar</packaging>
32
33     <name>MS Blueprints Processor Application</name>
34
35     <properties>
36         <serviceArtifactName>blueprintsprocessor</serviceArtifactName>
37         <image.name>onap/ccsdk-blueprintsprocessor</image.name>
38     </properties>
39
40     <dependencies>
41         <dependency>
42             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
43             <artifactId>blueprint-core</artifactId>
44             <exclusions>
45                 <exclusion>
46                     <groupId>org.springframework.boot</groupId>
47                     <artifactId>spring-boot-starter-logging</artifactId>
48                 </exclusion>
49             </exclusions>
50         </dependency>
51         <dependency>
52             <groupId>org.springframework.boot</groupId>
53             <artifactId>spring-boot-starter-security</artifactId>
54             <exclusions>
55                 <exclusion>
56                     <groupId>org.springframework.boot</groupId>
57                     <artifactId>spring-boot-starter-logging</artifactId>
58                 </exclusion>
59             </exclusions>
60         </dependency>
61
62         <!-- Error Catalog Services -->
63         <dependency>
64             <groupId>org.onap.ccsdk.cds.error.catalog</groupId>
65             <artifactId>error-catalog-services</artifactId>
66         </dependency>
67
68         <!-- North Bound - Modules -->
69         <dependency>
70             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
71             <artifactId>designer-api</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
75             <artifactId>resource-api</artifactId>
76         </dependency>
77         <dependency>
78             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
79             <artifactId>selfservice-api</artifactId>
80         </dependency>
81         <dependency>
82             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
83             <artifactId>configs-api</artifactId>
84         </dependency>
85         <dependency>
86             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
87             <artifactId>health-api</artifactId>
88         </dependency>
89         <dependency>
90             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
91             <artifactId>health-api-common</artifactId>
92         </dependency>
93
94         <!-- Functions -->
95         <dependency>
96             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
97             <artifactId>python-executor</artifactId>
98         </dependency>
99         <dependency>
100             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
101             <artifactId>restful-executor</artifactId>
102         </dependency>
103         <dependency>
104             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
105             <artifactId>ansible-awx-executor</artifactId>
106         </dependency>
107         <dependency>
108             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
109             <artifactId>netconf-executor</artifactId>
110         </dependency>
111         <dependency>
112             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
113             <artifactId>restconf-executor</artifactId>
114         </dependency>
115         <dependency>
116             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
117             <artifactId>cli-executor</artifactId>
118         </dependency>
119         <dependency>
120             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
121             <artifactId>config-snapshots</artifactId>
122         </dependency>
123         <dependency>
124             <groupId>org.onap.ccsdk.cds.blueprintsprocessor.functions</groupId>
125             <artifactId>k8s-connection-plugin</artifactId>
126         </dependency>
127
128         <!-- Test Dependencies -->
129         <dependency>
130             <groupId>com.h2database</groupId>
131             <artifactId>h2</artifactId>
132         </dependency>
133         <dependency>
134             <groupId>org.powermock</groupId>
135             <artifactId>powermock-api-mockito2</artifactId>
136             <scope>test</scope>
137         </dependency>
138         <dependency>
139             <groupId>org.springframework.boot</groupId>
140             <artifactId>spring-boot-starter-test</artifactId>
141             <scope>test</scope>
142         </dependency>
143         <dependency>
144             <groupId>org.jetbrains.kotlin</groupId>
145             <artifactId>kotlin-test-junit</artifactId>
146             <scope>test</scope>
147         </dependency>
148         <dependency>
149             <groupId>io.projectreactor</groupId>
150             <artifactId>reactor-test</artifactId>
151             <scope>test</scope>
152         </dependency>
153
154         <!-- BEGIN UAT -->
155         <dependency>
156             <groupId>org.skyscreamer</groupId>
157             <artifactId>jsonassert</artifactId>
158         </dependency>
159         <dependency>
160             <groupId>org.yaml</groupId>
161             <artifactId>snakeyaml</artifactId>
162         </dependency>
163         <dependency>
164             <groupId>com.nhaarman.mockitokotlin2</groupId>
165             <artifactId>mockito-kotlin</artifactId>
166             <!-- It's unusual but 'compile' here is the right scope since mockito is being used at runtime by
167                  the UatServices (/api/v1/uat/spy and /api/v1/uat/verify endpoints) -->
168             <scope>compile</scope>
169         </dependency>
170         <dependency>
171             <groupId>com.schibsted.spt.data</groupId>
172             <artifactId>jslt</artifactId>
173         </dependency>
174         <dependency>
175             <groupId>org.apache.httpcomponents</groupId>
176             <artifactId>httpclient</artifactId>
177             <version>${apache.httpcomponents.client.version}</version>
178         </dependency>
179         <dependency>
180             <groupId>org.apache.httpcomponents</groupId>
181             <artifactId>httpmime</artifactId>
182             <version>${apache.httpcomponents.client.version}</version>
183         </dependency>
184         <dependency>
185             <groupId>com.github.tomakehurst</groupId>
186             <artifactId>wiremock-jre8</artifactId>
187             <version>2.25.0</version>
188             <scope>test</scope>
189         </dependency>
190         <!-- END UAT -->
191         <dependency>
192             <groupId>ch.qos.logback</groupId>
193             <artifactId>logback-classic</artifactId>
194         </dependency>
195     </dependencies>
196
197     <build>
198         <resources>
199             <resource>
200                 <!--config and resource files -->
201                 <directory>${basedir}/etc</directory>
202                 <targetPath>${basedir}/target/etc</targetPath>
203                 <filtering>true</filtering>
204                 <includes>
205                     <include>**/*</include>
206                 </includes>
207             </resource>
208             <resource>
209                 <!--config and resource files -->
210                 <directory>${basedir}/src/main/resources</directory>
211                 <targetPath>${basedir}/target/src/main/resources</targetPath>
212                 <filtering>true</filtering>
213                 <includes>
214                     <include>**/*</include>
215                 </includes>
216             </resource>
217             <resource>
218                 <directory>src/main/resources</directory>
219                 <includes>
220                     <include>**/*</include>
221                 </includes>
222                 <filtering>true</filtering>
223             </resource>
224         </resources>
225         <plugins>
226             <plugin>
227                 <groupId>org.apache.maven.plugins</groupId>
228                 <artifactId>maven-surefire-plugin</artifactId>
229                 <version>${maven-surefire-plugin.version}</version>
230                 <configuration>
231                     <!-- Sets the VM argument line used when unit tests are run. -->
232                     <argLine>-Xmx1024m -XX:MaxPermSize=256m ${surefireArgLine}</argLine>
233                     <!-- Excludes integration tests when unit tests are run. -->
234                     <excludes>
235                         <exclude>**/IT*.java</exclude>
236                     </excludes>
237                     <reuseForks>false</reuseForks>
238                     <forkCount>1</forkCount>
239                 </configuration>
240             </plugin>
241             <plugin>
242                 <artifactId>maven-resources-plugin</artifactId>
243                 <version>2.6</version>
244                 <executions>
245                     <execution>
246                         <id>copy-dockerfile</id>
247                         <goals>
248                             <goal>copy-resources</goal>
249                         </goals><!-- here the phase you need -->
250                         <phase>validate</phase>
251                         <configuration>
252                             <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
253                             <resources>
254                                 <resource>
255                                     <directory>src/main/docker</directory>
256                                     <includes>
257                                         <include>*</include>
258                                     </includes>
259                                     <filtering>true</filtering>
260                                 </resource>
261                             </resources>
262                         </configuration>
263                     </execution>
264                 </executions>
265             </plugin>
266             <plugin>
267                 <groupId>org.apache.maven.plugins</groupId>
268                 <artifactId>maven-antrun-plugin</artifactId>
269                 <executions>
270                     <execution>
271                         <id>ant-test</id>
272                         <phase>package</phase>
273                         <configuration>
274                             <tasks>
275                                 <fixcrlf srcdir="${basedir}" eol="unix" includes="**/*.sh, **/*.source"/>
276                             </tasks>
277                         </configuration>
278                         <goals>
279                             <goal>run</goal>
280                         </goals>
281                     </execution>
282                 </executions>
283             </plugin>
284             <plugin><!--build the final artifact for docker deployment -->
285                 <artifactId>maven-assembly-plugin</artifactId>
286                 <version>3.1.0</version>
287                 <configuration>
288                     <!-- <skipAssembly>${skip.assembly}</skipAssembly> -->
289                     <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
290                     <descriptors>
291                         <descriptor>src/main/docker/distribution.xml</descriptor>
292                     </descriptors>
293                     <tarLongFileMode>posix</tarLongFileMode>
294                 </configuration>
295                 <executions>
296                     <execution>
297                         <id>${assembly.id}</id>
298                         <phase>package</phase>
299                         <goals>
300                             <goal>single</goal>
301                         </goals>
302                     </execution>
303                 </executions>
304             </plugin>
305             <plugin>
306                 <groupId>org.codehaus.gmaven</groupId>
307                 <artifactId>groovy-maven-plugin</artifactId>
308                 <version>2.1.1</version>
309                 <executions>
310                     <execution>
311                         <phase>validate</phase>
312                         <goals>
313                             <goal>execute</goal>
314                         </goals>
315                         <configuration>
316                             <source>${basedir}/../../../TagVersion.groovy</source>
317                         </configuration>
318                     </execution>
319                 </executions>
320             </plugin>
321             <plugin>
322                 <groupId>pl.project13.maven</groupId>
323                 <artifactId>git-commit-id-plugin</artifactId>
324             </plugin>
325             <plugin>
326                 <groupId>com.github.kongchen</groupId>
327                 <artifactId>swagger-maven-plugin</artifactId>
328                 <version>3.1.8</version>
329                 <configuration>
330                     <apiSources>
331                         <apiSource>
332                             <springmvc>true</springmvc>
333                             <locations>
334                                 <location>org.onap.ccsdk.cds.blueprintsprocessor.designer.api.BlueprintModelController</location>
335                                 <location>org.onap.ccsdk.cds.blueprintsprocessor.designer.api.ResourceDictionaryController</location>
336                                 <location>org.onap.ccsdk.cds.blueprintsprocessor.designer.api.ModelTypeController</location>
337                                 <location>org.onap.ccsdk.cds.blueprintsprocessor.resource.api</location>
338                                 <location>org.onap.ccsdk.cds.blueprintsprocessor.configs.api</location>
339                                 <!-- This location is not implemented yet
340                                 <location>org.onap.ccsdk.cds.blueprintsprocessor.healthapi</location>
341                                 -->
342                             </locations>
343                             <schemes>
344                                 <scheme>http</scheme>
345                             </schemes>
346                             <host>localhost:8080</host>
347                             <info>
348                                 <title>CDS Blueprint Processor API Reference</title>
349                                 <version>v1</version>
350                                 <description>
351                                     Shows all resources and endpoints which CDS BP processor currently provides with sample requests/responses, parameter description and other information.
352                                 </description>
353                                 <termsOfService>
354                                     https://www.onap.org/
355                                 </termsOfService>
356                                 <contact>
357                                     <email>onap-discuss@lists.onap.org</email>
358                                     <name>ONAP Community</name>
359                                     <url>https://www.onap.org/</url>
360                                 </contact>
361                                 <license>
362                                     <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
363                                     <name>Apache 2.0</name>
364                                 </license>
365                             </info>
366                             <securityDefinitions>
367                                 <securityDefinition>
368                                     <name>Basic Auth</name>
369                                     <type>basic</type>
370                                 </securityDefinition>
371                             </securityDefinitions>
372                             <outputFormats>json</outputFormats>
373                             <swaggerDirectory>${basedir}/../../../docs/api-reference/media</swaggerDirectory>
374                             <swaggerFileName>cds-bp-processor-api-swagger</swaggerFileName>
375                             <jsonExampleValues>true</jsonExampleValues>
376                             <operationIdFormat>{{className}}_{{methodName}}_{{httpMethod}}.{{packageName}}</operationIdFormat>
377                         </apiSource>
378                     </apiSources>
379                 </configuration>
380                 <executions>
381                     <execution>
382                         <phase>compile</phase>
383                         <goals>
384                             <goal>generate</goal>
385                         </goals>
386                     </execution>
387                 </executions>
388             </plugin>
389         </plugins>
390     </build>
391
392     <profiles>
393         <profile>
394             <id>docker</id>
395             <build>
396                 <plugins>
397                     <plugin>
398                         <groupId>io.fabric8</groupId>
399                         <artifactId>docker-maven-plugin</artifactId>
400                         <version>0.34.0</version>
401                         <inherited>false</inherited>
402                         <configuration>
403                             <images>
404                                 <image>
405                                     <name>${image.name}</name>
406                                     <build>
407                                         <cleanup>try</cleanup>
408                                         <noCache>true</noCache>
409                                         <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
410                                         <tags>
411                                             <tag>${project.docker.latestminortag.version}</tag>
412                                             <tag>${project.docker.latestfulltag.version}</tag>
413                                             <tag>${project.docker.latesttagtimestamp.version}</tag>
414                                         </tags>
415                                     </build>
416                                 </image>
417                             </images>
418                             <verbose>${docker.verbose}</verbose>
419                             <skipPush>${docker.skip.push}</skipPush>
420                         </configuration>
421                         <executions>
422                             <execution>
423                                 <id>build-push-images</id>
424                                 <goals>
425                                     <goal>build</goal>
426                                     <goal>push</goal>
427                                 </goals>
428                             </execution>
429                         </executions>
430                     </plugin>
431                 </plugins>
432             </build>
433         </profile>
434     </profiles>
435 </project>