2 ============LICENSE_START=======================================================
3 Copyright (c) 2021 Nordix Foundation.
4 ================================================================================
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
9 http://www.apache.org/licenses/LICENSE-2.0
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 ============LICENSE_END=========================================================
19 <project xmlns="http://maven.apache.org/POM/4.0.0"
20 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
22 <modelVersion>4.0.0</modelVersion>
25 <groupId>org.onap.oparent</groupId>
26 <artifactId>oparent</artifactId>
27 <version>3.2.0</version>
32 <name>ONAP - CPS</name>
33 <url>http://www.onap.org/</url>
36 <groupId>org.onap.cps</groupId>
37 <artifactId>ncmp-dmi-plugin</artifactId>
38 <version>0.0.1-SNAPSHOT</version>
39 <name>ncmp-dmi-plugin</name>
40 <description>DMI Plugin Service</description>
43 <app>org.onap.cps.ncmp.Application</app>
44 <groovy.version>3.0.8</groovy.version>
45 <java.version>11</java.version>
46 <oparent.version>3.1.0</oparent.version>
47 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
48 <spock-core.version>2.0-M5-groovy-3.0</spock-core.version>
49 <spock-spring.version>2.0-M5-groovy-3.0</spock-spring.version>
50 <springboot.version>2.5.0</springboot.version>
51 <swagger.version>2.1.4</swagger.version>
52 <swagger-annotations-version>1.6.2</swagger-annotations-version>
53 <swagger-codegen-maven-plugin.version>3.0.18</swagger-codegen-maven-plugin.version>
56 <dependencyManagement>
59 <groupId>org.springframework.boot</groupId>
60 <artifactId>spring-boot-dependencies</artifactId>
61 <version>${springboot.version}</version>
66 <groupId>io.swagger</groupId>
67 <artifactId>swagger-annotations</artifactId>
68 <version>${swagger-annotations-version}</version>
71 <groupId>org.codehaus.groovy</groupId>
72 <artifactId>groovy</artifactId>
73 <version>${groovy.version}</version>
76 <groupId>org.spockframework</groupId>
77 <artifactId>spock-core</artifactId>
78 <version>${spock-core.version}</version>
81 <groupId>org.spockframework</groupId>
82 <artifactId>spock-spring</artifactId>
83 <version>${spock-spring.version}</version>
86 </dependencyManagement>
90 <groupId>org.springframework.boot</groupId>
91 <artifactId>spring-boot-starter-web</artifactId>
94 <groupId>org.springframework.boot</groupId>
95 <artifactId>spring-boot-starter-validation</artifactId>
98 <groupId>org.codehaus.groovy</groupId>
99 <artifactId>groovy</artifactId>
100 <version>${groovy.version}</version>
103 <groupId>org.springframework.boot</groupId>
104 <artifactId>spring-boot-starter-test</artifactId>
108 <groupId>org.junit.vintage</groupId>
109 <artifactId>junit-vintage-engine</artifactId>
114 <groupId>org.spockframework</groupId>
115 <artifactId>spock-core</artifactId>
119 <groupId>org.spockframework</groupId>
120 <artifactId>spock-spring</artifactId>
124 <groupId>io.swagger</groupId>
125 <artifactId>swagger-annotations</artifactId>
126 <version>${swagger-annotations-version}</version>
133 <directory>src/main/resources</directory>
134 <filtering>true</filtering>
137 <directory>target/generated-sources/license</directory>
139 <include>third-party-licenses.txt</include>
143 <directory>target/generated-resources/licenses</directory>
145 <include>*.*</include>
147 <targetPath>third-party-licenses</targetPath>
152 <groupId>io.swagger.codegen.v3</groupId>
153 <artifactId>swagger-codegen-maven-plugin</artifactId>
154 <version>${swagger-codegen-maven-plugin.version}</version>
158 <goal>generate</goal>
161 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
162 <language>spring</language>
163 <generateSupportingFiles>false</generateSupportingFiles>
164 <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage>
165 <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage>
167 <sourceFolder>src/gen/java</sourceFolder>
168 <dateLibrary>java11</dateLibrary>
169 <interfaceOnly>true</interfaceOnly>
170 <useTags>true</useTags>
177 <groupId>org.springframework.boot</groupId>
178 <artifactId>spring-boot-maven-plugin</artifactId>
182 <goal>build-info</goal>
183 <goal>repackage</goal>
189 <groupId>org.codehaus.gmavenplus</groupId>
190 <artifactId>gmavenplus-plugin</artifactId>
194 <goal>compileTests</goal>
200 <groupId>org.apache.maven.plugins</groupId>
201 <artifactId>maven-surefire-plugin</artifactId>
203 <argLine>${surefireArgLine}</argLine>
205 <include>**/*Spec.java</include>
208 <exclude>**/IT*.java</exclude>