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 <java.version>11</java.version>
20 <oparent.version>3.1.0</oparent.version>
21 <spring-boot-maven-plugin.version>2.3.3.RELEASE</spring-boot-maven-plugin.version>
22 <swagger-codegen-maven-plugin.version>3.0.18</swagger-codegen-maven-plugin.version>
25 <dependencyManagement>
28 <groupId>org.onap.cps</groupId>
29 <artifactId>cps-dependencies</artifactId>
30 <version>${project.version}</version>
35 <groupId>org.onap.cps</groupId>
36 <artifactId>cps-bom</artifactId>
37 <version>${project.version}</version>
42 </dependencyManagement>
47 <directory>src/main/resources</directory>
48 <filtering>true</filtering>
51 <directory>target/generated-sources/license</directory>
53 <include>third-party-licenses.txt</include>
57 <directory>target/generated-resources/licenses</directory>
59 <include>*.*</include>
61 <targetPath>third-party-licenses</targetPath>
67 <groupId>org.springframework.boot</groupId>
68 <artifactId>spring-boot-maven-plugin</artifactId>
69 <version>${spring-boot-maven-plugin.version}</version>
73 <goal>build-info</goal>
74 <goal>repackage</goal>
79 <!-- Swagger code generation. -->
81 <groupId>io.swagger.codegen.v3</groupId>
82 <artifactId>swagger-codegen-maven-plugin</artifactId>
83 <version>${swagger-codegen-maven-plugin.version}</version>
90 <inputSpec>${project.basedir}/docs/api/swagger/openapi.yml</inputSpec>
91 <invokerPackage>org.onap.cps.rest.controller</invokerPackage>
92 <modelPackage>org.onap.cps.rest.model</modelPackage>
93 <apiPackage>org.onap.cps.rest.api</apiPackage>
94 <language>spring</language>
95 <generateSupportingFiles>false</generateSupportingFiles>
97 <sourceFolder>src/gen/java</sourceFolder>
98 <dateLibrary>java11</dateLibrary>
99 <interfaceOnly>true</interfaceOnly>
100 <useTags>true</useTags>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-compiler-plugin</artifactId>
113 <source>${java.version}</source>
114 <target>${java.version}</target>
118 <groupId>org.apache.maven.plugins</groupId>
119 <artifactId>maven-checkstyle-plugin</artifactId>
122 <id>onap-java-style</id>
126 <phase>process-sources</phase>
128 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
129 <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
130 <includeResources>true</includeResources>
131 <includeTestSourceDirectory>true</includeTestSourceDirectory>
132 <includeTestResources>true</includeTestResources>
133 <consoleOutput>false</consoleOutput>
134 <violationSeverity>warning</violationSeverity>
135 <failOnViolation>true</failOnViolation>
141 <groupId>org.onap.oparent</groupId>
142 <artifactId>checkstyle</artifactId>
143 <version>${oparent.version}</version>
147 <!-- Mandatory plugins for using Spock -->
149 <!-- The gmavenplus plugin is used to compile Groovy code.
150 To learn more about this plugin, visit https://github.com/groovy/GMavenPlus/wiki -->
151 <groupId>org.codehaus.gmavenplus</groupId>
152 <artifactId>gmavenplus-plugin</artifactId>
153 <version>1.9.0</version>
157 <goal>compileTests</goal>
162 <!-- Required because names of spec classes don't match default
163 Surefire patterns (`*Test` etc.) -->
165 <groupId>org.apache.maven.plugins</groupId>
166 <artifactId>maven-surefire-plugin</artifactId>
167 <version>3.0.0-M5</version>
169 <useFile>false</useFile>
171 <include>**/*Spec.java</include>
172 <include>**/*Test.java</include> <!-- Just in case of having also "normal" JUnit tests -->