Missing licence info added in pom file
[cps.git] / cps-rest / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   Copyright (c) 2020 Linux Foundation.
5   Modifications Copyright (C) 2021 Bell Canada.
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10
11         http://www.apache.org/licenses/LICENSE-2.0
12
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ============LICENSE_END=========================================================
19 -->
20
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25     <parent>
26         <groupId>org.onap.cps</groupId>
27         <artifactId>cps-parent</artifactId>
28         <version>1.1.0-SNAPSHOT</version>
29         <relativePath>../cps-parent/pom.xml</relativePath>
30     </parent>
31
32     <artifactId>cps-rest</artifactId>
33
34     <dependencies>
35         <dependency>
36             <groupId>${project.groupId}</groupId>
37             <artifactId>cps-service</artifactId>
38         </dependency>
39         <dependency>
40             <groupId>org.springframework.boot</groupId>
41             <artifactId>spring-boot-starter-web</artifactId>
42             <exclusions>
43                 <exclusion>
44                     <groupId>org.springframework.boot</groupId>
45                     <artifactId>spring-boot-starter-tomcat</artifactId>
46                 </exclusion>
47             </exclusions>
48         </dependency>
49         <dependency>
50             <groupId>org.springframework.boot</groupId>
51             <artifactId>spring-boot-starter-validation</artifactId>
52         </dependency>
53         <dependency>
54             <groupId>org.springframework.boot</groupId>
55             <artifactId>spring-boot-starter-jetty</artifactId>
56         </dependency>
57         <dependency>
58             <groupId>io.swagger.core.v3</groupId>
59             <artifactId>swagger-annotations</artifactId>
60         </dependency>
61         <dependency>
62             <groupId>io.springfox</groupId>
63             <artifactId>springfox-boot-starter</artifactId>
64         </dependency>
65         <dependency>
66             <groupId>io.swagger</groupId>
67             <artifactId>swagger-annotations</artifactId>
68         </dependency>
69         <dependency>
70             <groupId>org.apache.commons</groupId>
71             <artifactId>commons-lang3</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>org.modelmapper</groupId>
75             <artifactId>modelmapper</artifactId>
76         </dependency>
77         <!-- T E S T   D E P E N D E N C I E S -->
78         <dependency>
79             <groupId>org.codehaus.groovy</groupId>
80             <artifactId>groovy</artifactId>
81             <scope>test</scope>
82         </dependency>
83         <dependency>
84             <groupId>org.codehaus.groovy</groupId>
85             <artifactId>groovy-json</artifactId>
86             <scope>test</scope>
87         </dependency>
88         <dependency>
89             <groupId>org.spockframework</groupId>
90             <artifactId>spock-core</artifactId>
91             <scope>test</scope>
92         </dependency>
93         <dependency>
94             <groupId>org.spockframework</groupId>
95             <artifactId>spock-spring</artifactId>
96             <scope>test</scope>
97         </dependency>
98         <dependency>
99             <groupId>cglib</groupId>
100             <artifactId>cglib-nodep</artifactId>
101             <scope>test</scope>
102         </dependency>
103         <dependency>
104             <groupId>org.springframework.boot</groupId>
105             <artifactId>spring-boot-starter-test</artifactId>
106             <scope>test</scope>
107             <exclusions>
108                 <exclusion>
109                     <groupId>org.junit.vintage</groupId>
110                     <artifactId>junit-vintage-engine</artifactId>
111                 </exclusion>
112             </exclusions>
113         </dependency>
114     </dependencies>
115
116     <build>
117         <plugins>
118             <!-- Swagger code generation. -->
119             <plugin>
120                 <groupId>io.swagger.codegen.v3</groupId>
121                 <artifactId>swagger-codegen-maven-plugin</artifactId>
122                 <executions>
123                     <execution>
124                         <goals>
125                             <goal>generate</goal>
126                         </goals>
127                         <configuration>
128                             <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
129                             <invokerPackage>org.onap.cps.rest.controller</invokerPackage>
130                             <modelPackage>org.onap.cps.rest.model</modelPackage>
131                             <apiPackage>org.onap.cps.rest.api</apiPackage>
132                             <language>spring</language>
133                             <generateSupportingFiles>false</generateSupportingFiles>
134                             <configOptions>
135                                 <sourceFolder>src/gen/java</sourceFolder>
136                                 <dateLibrary>java11</dateLibrary>
137                                 <interfaceOnly>true</interfaceOnly>
138                                 <useTags>true</useTags>
139                             </configOptions>
140                         </configuration>
141                     </execution>
142                 </executions>
143             </plugin>
144         </plugins>
145     </build>
146 </project>