Merge "Began adding pluging to lifecycle mapping"
[so.git] / adapters / mso-openstack-adapters / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4   <parent>
5     <groupId>org.onap.so</groupId>
6     <artifactId>adapters</artifactId>
7     <version>1.6.0-SNAPSHOT</version>
8   </parent>
9   <artifactId>mso-openstack-adapters</artifactId>
10   <packaging>jar</packaging>
11   <name>mso-openstack-adapters</name>
12   <description>Consolidate openstack adapters into one Spring Boot project</description>
13   <properties>
14     <openfeign.version>10.1.0</openfeign.version>
15   </properties>
16   <build>
17     <finalName>${project.artifactId}-${project.version}</finalName>
18
19     <plugins>
20       <plugin>
21         <groupId>org.apache.maven.plugins</groupId>
22         <artifactId>maven-dependency-plugin</artifactId>
23       </plugin>
24       <plugin>
25         <groupId>org.springframework.boot</groupId>
26         <artifactId>spring-boot-maven-plugin</artifactId>
27         <configuration>
28           <mainClass>org.onap.so.adapters.openstack.MsoOpenstackAdaptersApplication</mainClass>
29         </configuration>
30         <executions>
31           <execution>
32             <goals>
33               <goal>
34                                                                 repackage
35                                                         </goal>
36             </goals>
37           </execution>
38         </executions>
39       </plugin>
40       <plugin>
41         <groupId>org.apache.maven.plugins</groupId>
42         <artifactId>maven-surefire-plugin</artifactId>
43         <executions>
44           <execution>
45             <id>default-test</id>
46             <goals>
47               <goal>test</goal>
48             </goals>
49             <configuration>
50               <includes>
51                 <include>**/AllTestsTestSuite.java</include>
52               </includes>
53               <parallel>suites</parallel>
54             </configuration>
55           </execution>
56         </executions>
57       </plugin>
58
59       <!--  run the following plugin only when there's a wsdl change and you need to recompile the java classes
60                         <plugin>
61                                 <groupId>org.codehaus.mojo</groupId>
62                                 <artifactId>jaxws-maven-plugin</artifactId>
63                                 <version>2.4.1</version>
64                                 <executions>
65                                         <execution>
66                                                 <id>generate-network-async-stubs</id>
67                                                 <phase>process-classes</phase>
68                                                 <goals>
69                                                         <goal>wsimport</goal>
70                                                 </goals>
71                                                 <configuration>
72                             <vmArgs>
73                                 <vmArg>-Djavax.xml.accessExternalSchema=all</vmArg>
74                             </vmArgs>
75                                                         <wsdlDirectory>src/main/resources/wsdl</wsdlDirectory>
76                                                         <wsdlFiles>
77                                                                 <wsdlFile>NetworkAdapterNotify.wsdl</wsdlFile>
78                                                         </wsdlFiles>
79                                                         <wsdlLocation>/NetworkAdapterNotify.wsdl</wsdlLocation>
80                                                         <packageName>org.onap.so.adapters.network.async.client</packageName>
81                                                         <xnocompile>false</xnocompile>
82                                                         <keep>true</keep>
83                                                 </configuration>
84                                         </execution>
85
86                                         <execution>
87                                                 <id>generate-vnf-async-stubs</id>
88                                                 <phase>process-classes</phase>
89                                                 <goals>
90                                                         <goal>wsimport</goal>
91                                                 </goals>
92                                                 <configuration>
93                                                 <vmArgs>
94                                                     <vmArg>-Djavax.xml.accessExternalSchema=all</vmArg>
95                                                 </vmArgs>
96                                                         <wsdlDirectory>src/main/resources/wsdl</wsdlDirectory>
97                                                         <wsdlFiles>
98                                                                 <wsdlFile>VnfAdapterNotify.wsdl</wsdlFile>
99                                                         </wsdlFiles>
100                                                         <wsdlLocation>/VnfAdapterNotify.wsdl</wsdlLocation>
101                                                         <packageName>org.onap.so.adapters.vnf.async.client</packageName>
102                                                         <xnocompile>false</xnocompile>
103                                                         <keep>true</keep>
104                                                 </configuration>
105                                         </execution>
106                                 </executions>
107                         </plugin>
108                         <plugin>
109                             <groupId>org.codehaus.mojo</groupId>
110                             <artifactId>build-helper-maven-plugin</artifactId>
111                             <version>3.0.0</version>
112                             <executions>
113                                 <execution>
114                                     <id>add-source</id>
115                                     <phase>generate-sources</phase>
116                                     <goals>
117                                         <goal>add-source</goal>
118                                     </goals>
119                                     <configuration>
120                                         <sources>
121                                             <source>${project.build.directory}/generated-sources/wsimport/</source>
122                                         </sources>
123                                     </configuration>
124                                 </execution>
125                             </executions>
126                          </plugin>
127  -->
128       <plugin>
129         <groupId>org.jacoco</groupId>
130         <artifactId>jacoco-maven-plugin</artifactId>
131       </plugin>
132       <plugin>
133         <groupId>org.apache.maven.plugins</groupId>
134         <artifactId>maven-dependency-plugin</artifactId>
135         <executions>
136           <execution>
137             <id>extract-docker-file</id>
138           </execution>
139         </executions>
140       </plugin>
141       <plugin>
142         <groupId>io.fabric8</groupId>
143         <artifactId>docker-maven-plugin</artifactId>
144         <executions>
145           <execution>
146             <id>start</id>
147           </execution>
148         </executions>
149       </plugin>
150       <plugin>
151         <groupId>org.apache.maven.plugins</groupId>
152         <artifactId>maven-jar-plugin</artifactId>
153         <executions>
154           <execution>
155             <id>original</id>
156             <configuration>
157               <skip>false</skip>
158             </configuration>
159           </execution>
160         </executions>
161       </plugin>
162     </plugins>
163
164
165     <pluginManagement>
166       <plugins>
167         <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build 
168           itself. -->
169         <plugin>
170           <groupId>org.eclipse.m2e</groupId>
171           <artifactId>lifecycle-mapping</artifactId>
172           <version>1.0.0</version>
173           <configuration>
174             <lifecycleMappingMetadata>
175               <pluginExecutions>
176                 <pluginExecution>
177                   <pluginExecutionFilter>
178                     <groupId>
179                       org.jvnet.jax-ws-commons
180                     </groupId>
181                     <artifactId>
182                       jaxws-maven-plugin
183                     </artifactId>
184                     <versionRange>
185                       [2.3,)
186                     </versionRange>
187                     <goals>
188                       <goal>wsgen</goal>
189                     </goals>
190                   </pluginExecutionFilter>
191                   <action>
192                     <ignore>
193                     </ignore>
194                   </action>
195                 </pluginExecution>
196                 <pluginExecution>
197                   <pluginExecutionFilter>
198                     <groupId>org.apache.maven.plugins</groupId>
199                     <artifactId>maven-dependency-plugin</artifactId>
200                     <versionRange>[1.0.0,)</versionRange>
201                     <goals>
202                       <goal>unpack</goal>
203                     </goals>
204                   </pluginExecutionFilter>
205                   <action>
206                     <execute />
207                   </action>
208                 </pluginExecution>
209               </pluginExecutions>
210             </lifecycleMappingMetadata>
211           </configuration>
212         </plugin>
213       </plugins>
214     </pluginManagement>
215   </build>
216
217   <dependencies>
218     <!-- added for spring boot support -->
219     <dependency>
220       <groupId>org.springframework.boot</groupId>
221       <artifactId>spring-boot-starter-actuator</artifactId>
222     </dependency>
223     <dependency>
224       <groupId>org.springframework.boot</groupId>
225       <artifactId>spring-boot-starter-web</artifactId>
226     </dependency>
227     <dependency>
228       <groupId>org.springframework.boot</groupId>
229       <artifactId>spring-boot-starter-data-jpa</artifactId>
230     </dependency>
231     <dependency>
232       <groupId>org.apache.cxf</groupId>
233       <artifactId>cxf-spring-boot-starter-jaxws</artifactId>
234       <version>${cxf.version}</version>
235     </dependency>
236     <dependency>
237       <groupId>org.apache.cxf</groupId>
238       <artifactId>cxf-spring-boot-starter-jaxrs</artifactId>
239       <version>${cxf.version}</version>
240     </dependency>
241     <dependency>
242       <groupId>org.apache.cxf</groupId>
243       <artifactId>cxf-rt-rs-service-description-swagger</artifactId>
244       <version>${cxf.version}</version>
245     </dependency>
246     <dependency>
247       <groupId>org.springframework.boot</groupId>
248       <artifactId>spring-boot-starter-test</artifactId>
249       <scope>test</scope>
250     </dependency>
251     <dependency>
252       <groupId>janino</groupId>
253       <artifactId>janino</artifactId>
254       <version>2.5.15</version>
255     </dependency>
256
257     <!-- end added for spring boot support -->
258
259     <dependency>
260       <groupId>org.pacesys</groupId>
261       <artifactId>openstack4j-core</artifactId>
262       <version>3.2.0</version>
263     </dependency>
264     <dependency>
265       <groupId>org.pacesys.openstack4j.connectors</groupId>
266       <artifactId>openstack4j-httpclient</artifactId>
267       <version>3.2.0</version>
268     </dependency>
269
270     <dependency>
271       <groupId>commons-collections</groupId>
272       <artifactId>commons-collections</artifactId>
273       <version>3.2.2</version>
274     </dependency>
275
276     <dependency>
277       <groupId>com.typesafe</groupId>
278       <artifactId>config</artifactId>
279       <version>1.3.2</version>
280     </dependency>
281     <dependency>
282       <groupId>com.google.code.findbugs</groupId>
283       <artifactId>jsr305</artifactId>
284       <version>1.3.9</version>
285     </dependency>
286
287     <dependency>
288       <groupId>commons-validator</groupId>
289       <artifactId>commons-validator</artifactId>
290       <version>1.4.0</version>
291     </dependency>
292
293     <!-- added for unit testing -->
294     <dependency>
295       <groupId>org.onap.so.adapters</groupId>
296       <artifactId>mso-adapter-utils</artifactId>
297       <version>${project.version}</version>
298     </dependency>
299     <dependency>
300       <groupId>org.onap.so.adapters</groupId>
301       <artifactId>mso-adapters-rest-interface</artifactId>
302       <version>${project.version}</version>
303     </dependency>
304     <dependency>
305       <groupId>javax.servlet</groupId>
306       <artifactId>javax.servlet-api</artifactId>
307       <scope>test</scope>
308     </dependency>
309     <dependency>
310       <groupId>org.mariadb.jdbc</groupId>
311       <artifactId>mariadb-java-client</artifactId>
312     </dependency>
313     <dependency>
314       <groupId>org.onap.so</groupId>
315       <artifactId>common</artifactId>
316       <version>${project.version}</version>
317     </dependency>
318     <dependency>
319       <groupId>ch.vorburger.mariaDB4j</groupId>
320       <artifactId>mariaDB4j</artifactId>
321       <version>2.2.3</version>
322       <scope>test</scope>
323     </dependency>
324     <dependency>
325       <groupId>org.springframework.cloud</groupId>
326       <artifactId>spring-cloud-contract-wiremock</artifactId>
327       <version>1.2.4.RELEASE</version>
328       <scope>test</scope>
329     </dependency>
330     <dependency>
331       <groupId>org.onap.so</groupId>
332       <artifactId>cxf-logging</artifactId>
333       <version>${project.version}</version>
334     </dependency>
335     <dependency>
336       <groupId>org.onap.so.libs.openstack-java-sdk</groupId>
337       <artifactId>nova-model</artifactId>
338       <version>${openstack.version}</version>
339     </dependency>
340     <dependency>
341       <groupId>org.camunda.bpm</groupId>
342       <artifactId>camunda-external-task-client</artifactId>
343       <version>1.1.1</version>
344     </dependency>
345   </dependencies>
346 </project>