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>
34 <activeByDefault>false</activeByDefault>
40 <groupId>com.google.cloud.tools</groupId>
41 <artifactId>jib-maven-plugin</artifactId>
42 <version>${jib-maven-plugin.version}</version>
45 <mainClass>${app}</mainClass>
46 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
49 <image>${base.image}</image>
52 <image>${repository.name}</image>
54 <tag>${tag.version}</tag>
60 <phase>package</phase>
63 <goal>dockerBuild</goal>
81 <dependencyManagement>
84 <groupId>org.onap.cps</groupId>
85 <artifactId>cps-dependencies</artifactId>
86 <version>${project.version}</version>
91 <groupId>org.onap.cps</groupId>
92 <artifactId>cps-bom</artifactId>
93 <version>${project.version}</version>
98 </dependencyManagement>
103 <directory>src/main/resources</directory>
104 <filtering>true</filtering>
107 <directory>target/generated-sources/license</directory>
109 <include>third-party-licenses.txt</include>
113 <directory>target/generated-resources/licenses</directory>
115 <include>*.*</include>
117 <targetPath>third-party-licenses</targetPath>
123 <groupId>org.springframework.boot</groupId>
124 <artifactId>spring-boot-maven-plugin</artifactId>
125 <version>${spring-boot-maven-plugin.version}</version>
129 <goal>build-info</goal>
130 <goal>repackage</goal>
135 <!-- Swagger code generation. -->
137 <groupId>io.swagger.codegen.v3</groupId>
138 <artifactId>swagger-codegen-maven-plugin</artifactId>
139 <version>${swagger-codegen-maven-plugin.version}</version>
143 <goal>generate</goal>
146 <inputSpec>${project.basedir}/docs/api/swagger/openapi.yml</inputSpec>
147 <invokerPackage>org.onap.cps.rest.controller</invokerPackage>
148 <modelPackage>org.onap.cps.rest.model</modelPackage>
149 <apiPackage>org.onap.cps.rest.api</apiPackage>
150 <language>spring</language>
151 <generateSupportingFiles>false</generateSupportingFiles>
153 <sourceFolder>src/gen/java</sourceFolder>
154 <dateLibrary>java11</dateLibrary>
155 <interfaceOnly>true</interfaceOnly>
156 <useTags>true</useTags>
166 <groupId>org.apache.maven.plugins</groupId>
167 <artifactId>maven-compiler-plugin</artifactId>
169 <source>${java.version}</source>
170 <target>${java.version}</target>
174 <groupId>org.apache.maven.plugins</groupId>
175 <artifactId>maven-checkstyle-plugin</artifactId>
178 <id>onap-java-style</id>
182 <phase>process-sources</phase>
184 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
185 <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
186 <includeResources>true</includeResources>
187 <includeTestSourceDirectory>true</includeTestSourceDirectory>
188 <includeTestResources>true</includeTestResources>
189 <consoleOutput>false</consoleOutput>
190 <violationSeverity>warning</violationSeverity>
191 <failOnViolation>true</failOnViolation>
197 <groupId>org.onap.oparent</groupId>
198 <artifactId>checkstyle</artifactId>
199 <version>${oparent.version}</version>
203 <!-- Mandatory plugins for using Spock -->
205 <!-- The gmavenplus plugin is used to compile Groovy code.
206 To learn more about this plugin, visit https://github.com/groovy/GMavenPlus/wiki -->
207 <groupId>org.codehaus.gmavenplus</groupId>
208 <artifactId>gmavenplus-plugin</artifactId>
209 <version>1.9.0</version>
213 <goal>compileTests</goal>
218 <!-- Required because names of spec classes don't match default
219 Surefire patterns (`*Test` etc.) -->
221 <groupId>org.apache.maven.plugins</groupId>
222 <artifactId>maven-surefire-plugin</artifactId>
223 <version>3.0.0-M5</version>
225 <useFile>false</useFile>
227 <include>**/*Spec.java</include>
228 <include>**/*Test.java</include> <!-- Just in case of having also "normal" JUnit tests -->
233 <groupId>com.google.cloud.tools</groupId>
234 <artifactId>jib-maven-plugin</artifactId>
235 <version>${jib-maven-plugin.version}</version>
238 <mainClass>${app}</mainClass>
239 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
242 <image>${base.image}</image>
245 <image>${repository.name}</image>
247 <tag>${tag.version}</tag>