blob: 5f5da85a889559fa63abbf7ffa8a760c05385d77 [file] [log] [blame]
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04001<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.3.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
14 <build>
15 <finalName>${project.artifactId}-${project.version}</finalName>
16
17 <plugins>
18 <plugin>
19 <groupId>org.apache.maven.plugins</groupId>
20 <artifactId>maven-dependency-plugin</artifactId>
21 </plugin>
22 <plugin>
23 <groupId>org.springframework.boot</groupId>
24 <artifactId>spring-boot-maven-plugin</artifactId>
25 <configuration>
26 <mainClass>org.onap.so.adapters.openstack.MsoOpenstackAdaptersApplication</mainClass>
27 </configuration>
28 <executions>
29 <execution>
30 <goals>
31 <goal>
32 repackage
33 </goal>
34 </goals>
35 </execution>
36 </executions>
37 </plugin>
38
39<!-- run the following plugin only when there's a wsdl change and you need to recompile the java classes
40 <plugin>
41 <groupId>org.codehaus.mojo</groupId>
42 <artifactId>jaxws-maven-plugin</artifactId>
43 <version>2.4.1</version>
44 <executions>
45 <execution>
46 <id>generate-network-async-stubs</id>
47 <phase>process-classes</phase>
48 <goals>
49 <goal>wsimport</goal>
50 </goals>
51 <configuration>
52 <vmArgs>
53 <vmArg>-Djavax.xml.accessExternalSchema=all</vmArg>
54 </vmArgs>
55 <wsdlDirectory>src/main/resources/wsdl</wsdlDirectory>
56 <wsdlFiles>
57 <wsdlFile>NetworkAdapterNotify.wsdl</wsdlFile>
58 </wsdlFiles>
59 <wsdlLocation>/NetworkAdapterNotify.wsdl</wsdlLocation>
60 <packageName>org.onap.so.adapters.network.async.client</packageName>
61 <xnocompile>false</xnocompile>
62 <keep>true</keep>
63 </configuration>
64 </execution>
65
66 <execution>
67 <id>generate-vnf-async-stubs</id>
68 <phase>process-classes</phase>
69 <goals>
70 <goal>wsimport</goal>
71 </goals>
72 <configuration>
73 <vmArgs>
74 <vmArg>-Djavax.xml.accessExternalSchema=all</vmArg>
75 </vmArgs>
76 <wsdlDirectory>src/main/resources/wsdl</wsdlDirectory>
77 <wsdlFiles>
78 <wsdlFile>VnfAdapterNotify.wsdl</wsdlFile>
79 </wsdlFiles>
80 <wsdlLocation>/VnfAdapterNotify.wsdl</wsdlLocation>
81 <packageName>org.onap.so.adapters.vnf.async.client</packageName>
82 <xnocompile>false</xnocompile>
83 <keep>true</keep>
84 </configuration>
85 </execution>
86 </executions>
87 </plugin>
88 <plugin>
89 <groupId>org.codehaus.mojo</groupId>
90 <artifactId>build-helper-maven-plugin</artifactId>
91 <version>3.0.0</version>
92 <executions>
93 <execution>
94 <id>add-source</id>
95 <phase>generate-sources</phase>
96 <goals>
97 <goal>add-source</goal>
98 </goals>
99 <configuration>
100 <sources>
101 <source>${project.build.directory}/generated-sources/wsimport/</source>
102 </sources>
103 </configuration>
104 </execution>
105 </executions>
106 </plugin>
107 --> <plugin>
108 <groupId>org.jacoco</groupId>
109 <artifactId>jacoco-maven-plugin</artifactId>
110 </plugin>
111 <plugin>
112 <groupId>org.apache.maven.plugins</groupId>
113 <artifactId>maven-dependency-plugin</artifactId>
114 <executions>
115 <execution>
116 <id>extract-docker-file</id>
117 </execution>
118 </executions>
119 </plugin>
120 <plugin>
121 <groupId>io.fabric8</groupId>
122 <artifactId>fabric8-maven-plugin</artifactId>
123 <executions>
124 <execution>
125 <id>start</id>
126 </execution>
127 </executions>
128 </plugin>
129 </plugins>
130
131
132 <pluginManagement>
133 <plugins>
134 <!--This plugin's configuration is used to store Eclipse m2e settings
135 only. It has no influence on the Maven build itself. -->
136 <plugin>
137 <groupId>org.eclipse.m2e</groupId>
138 <artifactId>lifecycle-mapping</artifactId>
139 <version>1.0.0</version>
140 <configuration>
141 <lifecycleMappingMetadata>
142 <pluginExecutions>
143 <pluginExecution>
144 <pluginExecutionFilter>
145 <groupId>
146 org.jvnet.jax-ws-commons
147 </groupId>
148 <artifactId>
149 jaxws-maven-plugin
150 </artifactId>
151 <versionRange>
152 [2.3,)
153 </versionRange>
154 <goals>
155 <goal>wsgen</goal>
156 </goals>
157 </pluginExecutionFilter>
158 <action>
159 <ignore></ignore>
160 </action>
161 </pluginExecution>
162 </pluginExecutions>
163 </lifecycleMappingMetadata>
164 </configuration>
165 </plugin>
166 </plugins>
167 </pluginManagement>
168 </build>
169
170 <dependencies>
171 <!-- added for spring boot support -->
172 <dependency>
173 <groupId>org.springframework.boot</groupId>
174 <artifactId>spring-boot-starter-actuator</artifactId>
175 </dependency>
176 <dependency>
177 <groupId>org.springframework.boot</groupId>
178 <artifactId>spring-boot-starter-web</artifactId>
179 </dependency>
180 <dependency>
181 <groupId>org.springframework.boot</groupId>
182 <artifactId>spring-boot-starter-data-jpa</artifactId>
183 <exclusions>
184 <exclusion>
185 <groupId>org.apache.tomcat</groupId>
186 <artifactId>tomcat-jdbc</artifactId>
187 </exclusion>
188 </exclusions>
189 </dependency>
190 <dependency>
191 <groupId>org.apache.commons</groupId>
192 <artifactId>commons-dbcp2</artifactId>
193 </dependency>
194 <dependency>
195 <groupId>org.apache.cxf</groupId>
196 <artifactId>cxf-spring-boot-starter-jaxws</artifactId>
197 <version>3.1.12</version>
198 </dependency>
199 <dependency>
200 <groupId>org.apache.cxf</groupId>
201 <artifactId>cxf-spring-boot-starter-jaxrs</artifactId>
202 <version>3.1.12</version>
203 </dependency>
204 <dependency>
205 <groupId>org.apache.cxf</groupId>
206 <artifactId>cxf-rt-rs-service-description-swagger</artifactId>
207 <version>3.1.11</version>
208 </dependency>
209 <dependency>
210 <groupId>org.webjars</groupId>
211 <artifactId>swagger-ui</artifactId>
212 <version>3.5.0</version>
213 </dependency>
214
215 <dependency>
216 <groupId>org.springframework.boot</groupId>
217 <artifactId>spring-boot-starter-test</artifactId>
218 <scope>test</scope>
219 </dependency>
220 <dependency>
221 <groupId>janino</groupId>
222 <artifactId>janino</artifactId>
223 <version>2.5.15</version>
224 </dependency>
225
226 <!-- end added for spring boot support -->
227
228
229
230 <!-- added for unit testing -->
231 <dependency>
232 <groupId>org.onap.so.adapters</groupId>
233 <artifactId>mso-adapter-utils</artifactId>
234 <version>${project.version}</version>
235 </dependency>
236 <dependency>
237 <groupId>org.onap.so.adapters</groupId>
238 <artifactId>mso-adapters-rest-interface</artifactId>
239 <version>${project.version}</version>
240 </dependency>
241 <dependency>
242 <groupId>javax.servlet</groupId>
243 <artifactId>javax.servlet-api</artifactId>
244 <scope>test</scope>
245 </dependency>
246 <dependency>
247 <groupId>org.mariadb.jdbc</groupId>
248 <artifactId>mariadb-java-client</artifactId>
249 </dependency>
250 <dependency>
251 <groupId>org.onap.so</groupId>
252 <artifactId>common</artifactId>
253 <version>${project.version}</version>
254 </dependency>
255 <dependency>
256 <groupId>ch.vorburger.mariaDB4j</groupId>
257 <artifactId>mariaDB4j</artifactId>
258 <version>2.2.3</version>
259 <scope>test</scope>
260 </dependency>
261 <dependency>
262 <groupId>org.springframework.cloud</groupId>
263 <artifactId>spring-cloud-contract-wiremock</artifactId>
264 <version>1.2.4.RELEASE</version>
265 <scope>test</scope>
266 </dependency>
267 </dependencies>
268</project>