1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
6 <groupId>org.onap.oparent</groupId>
7 <artifactId>oparent</artifactId>
8 <version>3.1.0</version>
11 <modelVersion>4.0.0</modelVersion>
13 <groupId>org.onap.cps</groupId>
14 <artifactId>cps-parent</artifactId>
15 <version>0.0.1-SNAPSHOT</version>
16 <packaging>pom</packaging>
19 <app>org.onap.cps.Application</app>
20 <base.image>openjdk:11-jre-slim</base.image>
21 <java.version>11</java.version>
22 <jib-maven-plugin.version>2.6.0</jib-maven-plugin.version>
23 <oparent.version>3.1.0</oparent.version>
24 <repository.name>nexus3.onap.org:10001/onap/cps-service</repository.name>
25 <spring-boot-maven-plugin.version>2.3.3.RELEASE</spring-boot-maven-plugin.version>
26 <swagger-codegen-maven-plugin.version>3.0.18</swagger-codegen-maven-plugin.version>
27 <tag.version>${project.version}</tag.version>
30 <dependencyManagement>
33 <groupId>org.onap.cps</groupId>
34 <artifactId>cps-dependencies</artifactId>
35 <version>${project.version}</version>
40 <groupId>org.onap.cps</groupId>
41 <artifactId>cps-bom</artifactId>
42 <version>${project.version}</version>
47 </dependencyManagement>
52 <directory>src/main/resources</directory>
53 <filtering>true</filtering>
56 <directory>target/generated-sources/license</directory>
58 <include>third-party-licenses.txt</include>
62 <directory>target/generated-resources/licenses</directory>
64 <include>*.*</include>
66 <targetPath>third-party-licenses</targetPath>
72 <groupId>org.springframework.boot</groupId>
73 <artifactId>spring-boot-maven-plugin</artifactId>
74 <version>${spring-boot-maven-plugin.version}</version>
78 <goal>build-info</goal>
79 <goal>repackage</goal>
84 <!-- Swagger code generation. -->
86 <groupId>io.swagger.codegen.v3</groupId>
87 <artifactId>swagger-codegen-maven-plugin</artifactId>
88 <version>${swagger-codegen-maven-plugin.version}</version>
95 <inputSpec>${project.basedir}/docs/api/swagger/openapi.yml</inputSpec>
96 <invokerPackage>org.onap.cps.rest.controller</invokerPackage>
97 <modelPackage>org.onap.cps.rest.model</modelPackage>
98 <apiPackage>org.onap.cps.rest.api</apiPackage>
99 <language>spring</language>
100 <generateSupportingFiles>false</generateSupportingFiles>
102 <sourceFolder>src/gen/java</sourceFolder>
103 <dateLibrary>java11</dateLibrary>
104 <interfaceOnly>true</interfaceOnly>
105 <useTags>true</useTags>
115 <groupId>org.apache.maven.plugins</groupId>
116 <artifactId>maven-compiler-plugin</artifactId>
118 <source>${java.version}</source>
119 <target>${java.version}</target>
123 <groupId>org.apache.maven.plugins</groupId>
124 <artifactId>maven-checkstyle-plugin</artifactId>
127 <id>onap-java-style</id>
131 <phase>process-sources</phase>
133 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
134 <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
135 <includeResources>true</includeResources>
136 <includeTestSourceDirectory>true</includeTestSourceDirectory>
137 <includeTestResources>true</includeTestResources>
138 <consoleOutput>false</consoleOutput>
139 <violationSeverity>warning</violationSeverity>
140 <failOnViolation>true</failOnViolation>
146 <groupId>org.onap.oparent</groupId>
147 <artifactId>checkstyle</artifactId>
148 <version>${oparent.version}</version>
152 <!-- Mandatory plugins for using Spock -->
154 <!-- The gmavenplus plugin is used to compile Groovy code.
155 To learn more about this plugin, visit https://github.com/groovy/GMavenPlus/wiki -->
156 <groupId>org.codehaus.gmavenplus</groupId>
157 <artifactId>gmavenplus-plugin</artifactId>
158 <version>1.9.0</version>
162 <goal>compileTests</goal>
167 <!-- Required because names of spec classes don't match default
168 Surefire patterns (`*Test` etc.) -->
170 <groupId>org.apache.maven.plugins</groupId>
171 <artifactId>maven-surefire-plugin</artifactId>
172 <version>3.0.0-M5</version>
174 <useFile>false</useFile>
176 <include>**/*Spec.java</include>
177 <include>**/*Test.java</include> <!-- Just in case of having also "normal" JUnit tests -->
182 <groupId>com.google.cloud.tools</groupId>
183 <artifactId>jib-maven-plugin</artifactId>
184 <version>${jib-maven-plugin.version}</version>
187 <mainClass>${app}</mainClass>
188 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
191 <image>${base.image}</image>
194 <image>${repository.name}</image>
196 <tag>${tag.version}</tag>
202 <phase>package</phase>
205 <goal>dockerBuild</goal>
209 <phase>deploy</phase>
210 <id>buildAndPush</id>