Merge "sonar fix: Rsrc handling nokia/CommonUtil"
[vfc/nfvo/driver/vnfm/svnfm.git] / nokiav2 / generatedapis / pom.xml
1 <?xml version="1.0"?>
2 <!--
3     Copyright 2017 Nokia Corporation.
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
8
9             http://www.apache.org/licenses/LICENSE-2.0
10
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 -->
17 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
18   <parent>
19     <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm.nokiav2</groupId>
20     <artifactId>vfc-nfvo-driver-vnfm-svnfm-nokiav2</artifactId>
21     <version>1.1.0-SNAPSHOT</version>
22   </parent>
23   <modelVersion>4.0.0</modelVersion>
24   <groupId>org.onap.vfc.nfvo.driver.vnfm.svnfm.nokiav2</groupId>
25   <artifactId>vfc-nfvo-driver-vnfm-svnfm-nokiav2-clients</artifactId>
26   <version>1.1.0-SNAPSHOT</version>
27   <packaging>jar</packaging>
28   <name>vfc/nfvo/driver/vnfm/svnfm/nokiav2/generatedapis</name>
29   <build>
30     <plugins>
31       <plugin>
32         <groupId>io.swagger</groupId>
33         <artifactId>swagger-codegen-maven-plugin</artifactId>
34         <version>2.3.1</version>
35         <executions>
36           <execution>
37             <id>cbamlcm</id>
38             <goals>
39               <goal>generate</goal>
40             </goals>
41             <configuration>
42               <inputSpec>${basedir}/src/main/resources/nokia.vnfm.api.v3.lcm.json</inputSpec>
43               <language>java</language>
44               <output>${project.build.directory}/generated-sources/cbam</output>
45               <apiPackage>com.nokia.cbam.lcm.v32.api</apiPackage>
46               <modelPackage>com.nokia.cbam.lcm.v32.model</modelPackage>
47               <configOptions>
48                 <jackson>true</jackson>
49                 <sourceFolder>src/gen/java/main</sourceFolder>
50                 <withXml>true</withXml>
51                 <useRxJava2>true</useRxJava2>
52               </configOptions>
53             </configuration>
54           </execution>
55           <execution>
56             <id>cbamlcn</id>
57             <goals>
58               <goal>generate</goal>
59             </goals>
60             <configuration>
61               <inputSpec>${basedir}/src/main/resources/nokia.vnfm.api.v3.lcn.subscription.json</inputSpec>
62               <language>java</language>
63               <output>${project.build.directory}/generated-sources/cbam</output>
64               <apiPackage>com.nokia.cbam.lcn.v32.api</apiPackage>
65               <modelPackage>com.nokia.cbam.lcn.v32.model</modelPackage>
66               <configOptions>
67                 <generateSupportingFiles>false</generateSupportingFiles>
68                 <sourceFolder>src/gen/java/main</sourceFolder>
69               </configOptions>
70             </configuration>
71           </execution>
72           <execution>
73             <id>cbamcatalog</id>
74             <goals>
75               <goal>generate</goal>
76             </goals>
77             <configuration>
78               <inputSpec>${basedir}/src/main/resources/nokia.catalog.json</inputSpec>
79               <language>java</language>
80               <output>${project.build.directory}/generated-sources/cbam</output>
81               <apiPackage>com.nokia.cbam.catalog.v1.api</apiPackage>
82               <modelPackage>com.nokia.cbam.catalog.v1.model</modelPackage>
83               <configOptions>
84                 <generateSupportingFiles>false</generateSupportingFiles>
85                 <sourceFolder>src/gen/java/main</sourceFolder>
86               </configOptions>
87             </configuration>
88           </execution>
89           <execution>
90             <id>catalog</id>
91             <goals>
92               <goal>generate</goal>
93             </goals>
94             <configuration>
95               <inputSpec>${basedir}/src/main/resources/vfc.catalog.swagger.json</inputSpec>
96               <language>java</language>
97               <output>${project.build.directory}/generated-sources/vfccatalog</output>
98               <apiPackage>org.onap.vfccatalog.api</apiPackage>
99               <modelPackage>org.onap.vfccatalog.model</modelPackage>
100               <configOptions>
101                 <generateSupportingFiles>false</generateSupportingFiles>
102                 <sourceFolder>src/gen/java/main</sourceFolder>
103               </configOptions>
104             </configuration>
105           </execution>
106           <execution>
107             <id>svnfm</id>
108             <goals>
109               <goal>generate</goal>
110             </goals>
111             <configuration>
112               <inputSpec>${basedir}/src/main/resources/vfc.vnfdriver.swagger.json</inputSpec>
113               <language>java</language>
114               <output>${project.build.directory}/generated-sources/vnfmdriver</output>
115               <apiPackage>org.onap.vnfmdriver.api</apiPackage>
116               <modelPackage>org.onap.vnfmdriver.model</modelPackage>
117               <configOptions>
118                 <generateSupportingFiles>false</generateSupportingFiles>
119                 <sourceFolder>src/gen/java/main</sourceFolder>
120               </configOptions>
121             </configuration>
122           </execution>
123         </executions>
124       </plugin>
125       <plugin>
126         <groupId>org.apache.maven.plugins</groupId>
127         <artifactId>maven-patch-plugin</artifactId>
128         <version>1.2</version>
129         <configuration>
130           <targetDirectory>${project.build.directory}/generated-sources</targetDirectory>
131           <skipApplication>false</skipApplication>
132         </configuration>
133         <executions>
134           <execution>
135             <id>bugfix-patches</id>
136             <configuration>
137               <patchFile>src/main/resources/patch</patchFile>
138               <strip>1</strip>
139             </configuration>
140             <phase>process-sources</phase>
141             <goals>
142               <goal>apply</goal>
143             </goals>
144           </execution>
145         </executions>
146       </plugin>
147       <plugin>
148         <groupId>org.apache.maven.plugins</groupId>
149         <artifactId>maven-compiler-plugin</artifactId>
150         <version>3.7.0</version>
151         <configuration>
152           <source>1.8</source>
153           <target>1.8</target>
154         </configuration>
155       </plugin>
156     </plugins>
157   </build>
158   <dependencies>
159     <dependency>
160       <groupId>com.google.code.gson</groupId>
161       <artifactId>gson</artifactId>
162       <version>2.8.2</version>
163     </dependency>
164     <dependency>
165       <groupId>io.swagger</groupId>
166       <artifactId>swagger-annotations</artifactId>
167       <version>1.5.16</version>
168     </dependency>
169     <dependency>
170       <groupId>joda-time</groupId>
171       <artifactId>joda-time</artifactId>
172       <version>2.9.9</version>
173     </dependency>
174     <dependency>
175       <!-- this does not have a compile time dependency, but is required to be able to deserialize the date to joda time -->
176       <groupId>com.fasterxml.jackson.datatype</groupId>
177       <artifactId>jackson-datatype-joda</artifactId>
178       <!-- this version must be in sync with the dependency comming from spring boot -->
179       <version>2.8.10</version>
180     </dependency>
181     <dependency>
182       <groupId>com.squareup.okhttp</groupId>
183       <artifactId>okhttp</artifactId>
184       <version>2.7.5</version>
185     </dependency>
186     <dependency>
187       <groupId>com.squareup.okhttp</groupId>
188       <artifactId>logging-interceptor</artifactId>
189       <version>2.7.5</version>
190     </dependency>
191     <dependency>
192       <groupId>junit</groupId>
193       <artifactId>junit</artifactId>
194       <version>4.12</version>
195       <!-- the test code is generated into the main source code :( -->
196       <scope>provided</scope>
197     </dependency>
198     <dependency>
199       <groupId>io.gsonfire</groupId>
200       <artifactId>gson-fire</artifactId>
201       <version>1.8.2</version>
202     </dependency>
203     <dependency>
204       <groupId>org.threeten</groupId>
205       <artifactId>threetenbp</artifactId>
206       <version>1.3.6</version>
207     </dependency>
208   </dependencies>
209 </project>