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 <nexusproxy>https://nexus.onap.org</nexusproxy>
24 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
25 <oparent.version>3.1.0</oparent.version>
26 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
27 <repository.name>nexus3.onap.org:10001/onap/cps-service</repository.name>
28 <spring-boot-maven-plugin.version>2.3.3.RELEASE</spring-boot-maven-plugin.version>
29 <swagger-codegen-maven-plugin.version>3.0.18</swagger-codegen-maven-plugin.version>
30 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
31 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
32 <tag.version>${project.version}</tag.version>
35 <distributionManagement>
37 <id>ecomp-releases</id>
38 <name>ECOMP Release Repository</name>
39 <url>${nexusproxy}${releaseNexusPath}</url>
42 <id>ecomp-snapshots</id>
43 <name>ECOMP Snapshot Repository</name>
44 <url>${nexusproxy}${snapshotNexusPath}</url>
46 </distributionManagement>
52 <activeByDefault>false</activeByDefault>
58 <groupId>com.google.cloud.tools</groupId>
59 <artifactId>jib-maven-plugin</artifactId>
60 <version>${jib-maven-plugin.version}</version>
63 <mainClass>${app}</mainClass>
64 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
67 <image>${base.image}</image>
70 <image>${repository.name}</image>
72 <tag>${tag.version}</tag>
78 <phase>package</phase>
81 <goal>dockerBuild</goal>
99 <dependencyManagement>
102 <groupId>org.onap.cps</groupId>
103 <artifactId>cps-dependencies</artifactId>
104 <version>${project.version}</version>
106 <scope>import</scope>
109 <groupId>org.onap.cps</groupId>
110 <artifactId>cps-bom</artifactId>
111 <version>${project.version}</version>
113 <scope>import</scope>
116 </dependencyManagement>
121 <directory>src/main/resources</directory>
122 <filtering>true</filtering>
125 <directory>target/generated-sources/license</directory>
127 <include>third-party-licenses.txt</include>
131 <directory>target/generated-resources/licenses</directory>
133 <include>*.*</include>
135 <targetPath>third-party-licenses</targetPath>
141 <groupId>org.springframework.boot</groupId>
142 <artifactId>spring-boot-maven-plugin</artifactId>
143 <version>${spring-boot-maven-plugin.version}</version>
147 <goal>build-info</goal>
148 <goal>repackage</goal>
153 <!-- Swagger code generation. -->
155 <groupId>io.swagger.codegen.v3</groupId>
156 <artifactId>swagger-codegen-maven-plugin</artifactId>
157 <version>${swagger-codegen-maven-plugin.version}</version>
161 <goal>generate</goal>
164 <inputSpec>${project.basedir}/docs/api/swagger/openapi.yml</inputSpec>
165 <invokerPackage>org.onap.cps.rest.controller</invokerPackage>
166 <modelPackage>org.onap.cps.rest.model</modelPackage>
167 <apiPackage>org.onap.cps.rest.api</apiPackage>
168 <language>spring</language>
169 <generateSupportingFiles>false</generateSupportingFiles>
171 <sourceFolder>src/gen/java</sourceFolder>
172 <dateLibrary>java11</dateLibrary>
173 <interfaceOnly>true</interfaceOnly>
174 <useTags>true</useTags>
184 <groupId>org.apache.maven.plugins</groupId>
185 <artifactId>maven-compiler-plugin</artifactId>
187 <source>${java.version}</source>
188 <target>${java.version}</target>
192 <groupId>org.apache.maven.plugins</groupId>
193 <artifactId>maven-checkstyle-plugin</artifactId>
196 <id>onap-java-style</id>
200 <phase>process-sources</phase>
202 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
203 <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
204 <includeResources>true</includeResources>
205 <includeTestSourceDirectory>true</includeTestSourceDirectory>
206 <includeTestResources>true</includeTestResources>
207 <consoleOutput>false</consoleOutput>
208 <violationSeverity>warning</violationSeverity>
209 <failOnViolation>true</failOnViolation>
215 <groupId>org.onap.oparent</groupId>
216 <artifactId>checkstyle</artifactId>
217 <version>${oparent.version}</version>
221 <!-- Mandatory plugins for using Spock -->
223 <!-- The gmavenplus plugin is used to compile Groovy code.
224 To learn more about this plugin, visit https://github.com/groovy/GMavenPlus/wiki -->
225 <groupId>org.codehaus.gmavenplus</groupId>
226 <artifactId>gmavenplus-plugin</artifactId>
227 <version>1.9.0</version>
231 <goal>compileTests</goal>
236 <!-- Required because names of spec classes don't match default
237 Surefire patterns (`*Test` etc.) -->
239 <groupId>org.apache.maven.plugins</groupId>
240 <artifactId>maven-surefire-plugin</artifactId>
241 <version>3.0.0-M5</version>
243 <useFile>false</useFile>
245 <include>**/*Spec.java</include>
246 <include>**/*Test.java</include> <!-- Just in case of having also "normal" JUnit tests -->
251 <groupId>com.google.cloud.tools</groupId>
252 <artifactId>jib-maven-plugin</artifactId>
253 <version>${jib-maven-plugin.version}</version>
256 <mainClass>${app}</mainClass>
257 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
260 <image>${base.image}</image>
263 <image>${repository.name}</image>
265 <tag>${tag.version}</tag>