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>repackage</goal>
78 <!-- Swagger code generation. -->
80 <groupId>io.swagger.codegen.v3</groupId>
81 <artifactId>swagger-codegen-maven-plugin</artifactId>
82 <version>${swagger-codegen-maven-plugin.version}</version>
89 <inputSpec>${project.basedir}/docs/api/swagger/openapi.yml</inputSpec>
90 <invokerPackage>org.onap.cps.rest.controller</invokerPackage>
91 <modelPackage>org.onap.cps.rest.model</modelPackage>
92 <apiPackage>org.onap.cps.rest.api</apiPackage>
93 <language>spring</language>
94 <generateSupportingFiles>false</generateSupportingFiles>
96 <sourceFolder>src/gen/java</sourceFolder>
97 <dateLibrary>java11</dateLibrary>
98 <interfaceOnly>true</interfaceOnly>
99 <useTags>true</useTags>
109 <groupId>org.apache.maven.plugins</groupId>
110 <artifactId>maven-compiler-plugin</artifactId>
112 <source>${java.version}</source>
113 <target>${java.version}</target>
117 <groupId>org.apache.maven.plugins</groupId>
118 <artifactId>maven-checkstyle-plugin</artifactId>
121 <id>onap-java-style</id>
125 <phase>process-sources</phase>
127 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
128 <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
129 <includeResources>true</includeResources>
130 <includeTestSourceDirectory>true</includeTestSourceDirectory>
131 <includeTestResources>true</includeTestResources>
132 <consoleOutput>false</consoleOutput>
133 <violationSeverity>warning</violationSeverity>
134 <failOnViolation>true</failOnViolation>
140 <groupId>org.onap.oparent</groupId>
141 <artifactId>checkstyle</artifactId>
142 <version>${oparent.version}</version>
146 <!-- Mandatory plugins for using Spock -->
148 <!-- The gmavenplus plugin is used to compile Groovy code.
149 To learn more about this plugin, visit https://github.com/groovy/GMavenPlus/wiki -->
150 <groupId>org.codehaus.gmavenplus</groupId>
151 <artifactId>gmavenplus-plugin</artifactId>
152 <version>1.9.0</version>
156 <goal>compileTests</goal>
161 <!-- Required because names of spec classes don't match default
162 Surefire patterns (`*Test` etc.) -->
164 <groupId>org.apache.maven.plugins</groupId>
165 <artifactId>maven-surefire-plugin</artifactId>
166 <version>3.0.0-M5</version>
168 <useFile>false</useFile>
170 <include>**/*Spec.java</include>
171 <include>**/*Test.java</include> <!-- Just in case of having also "normal" JUnit tests -->