Exclude jax-rs 1, force jax-rs 2
[music.git] / music-core / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  ============LICENSE_START==========================================
4  org.onap.music
5  ===================================================================
6   Copyright (c) 2017 AT&T Intellectual Property
7  ===================================================================
8   Modifications Copyright (c) 2019 IBM.
9  ===================================================================
10   Licensed under the Apache License, Version 2.0 (the "License");
11   you may not use this file except in compliance with the License.
12   You may obtain a copy of the License at
13
14      http://www.apache.org/licenses/LICENSE-2.0
15
16   Unless required by applicable law or agreed to in writing, software
17   distributed under the License is distributed on an "AS IS" BASIS,
18   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19   See the License for the specific language governing permissions and
20   limitations under the License.
21
22  ============LICENSE_END=============================================
23  ====================================================================
24 -->
25 <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">
26     <modelVersion>4.0.0</modelVersion>
27     <groupId>org.onap.music</groupId>
28     <artifactId>MUSIC-core</artifactId>
29     <packaging>jar</packaging>
30     <version>3.2.37-SNAPSHOT</version>
31     <description>
32             This is the MUSIC core interface, packaged as a jar file.
33     </description>
34     <name>music-core</name>
35
36     <parent>
37         <groupId>org.onap.music</groupId>
38         <artifactId>MUSIC</artifactId>
39         <version>3.2.37-SNAPSHOT</version>
40     </parent>
41
42     <properties>
43         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
44         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
45         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
46         <java.version>1.8</java.version>
47         <jaxrs.version>2.0.1</jaxrs.version>
48         <cassandra.version>3.6.0</cassandra.version>
49     </properties>
50
51     <repositories>
52         <repository>
53             <id>onap-releases</id>
54             <name>ONAP - Release Repository</name>
55             <url>${nexusproxy}/${releaseNexusPath}</url>
56         </repository>
57         <repository>
58             <id>onap-staging</id>
59             <name>ONAP - Staging Repository</name>
60             <url>${nexusproxy}/${stagingNexusPath}</url>
61         </repository>
62         <repository>
63             <id>onap-snapshots</id>
64             <name>ONAP - Snapshot Repository</name>
65             <url>${nexusproxy}/${snapshotNexusPath}</url>
66         </repository>
67         <repository>
68             <id>onap-public</id>
69             <name>ONAP public Repository</name>
70             <url>${nexusproxy}/content/groups/public</url>
71         </repository>
72     </repositories>
73
74     <build>
75         <finalName>${project.artifactId}</finalName>
76         <sourceDirectory>src/main/java</sourceDirectory>
77         <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>
78         <testSourceDirectory>src/test/java</testSourceDirectory>
79         <testOutputDirectory>target/test-classes</testOutputDirectory>
80         <defaultGoal>validate</defaultGoal>
81         <resources>
82             <resource>
83                 <directory>src/main/resources</directory>
84                 <filtering>true</filtering>
85                 <includes>
86                 <include>**/*.properties</include>
87                 <include>**/*.xml</include>
88                 <include>**/*.ccf</include>
89                 </includes>
90             </resource>
91         </resources>
92         <testResources>
93             <testResource>
94                 <directory>${project.basedir}/src/test/resources</directory>
95             </testResource>
96         </testResources>
97         <plugins>
98             <plugin>
99                 <groupId>org.apache.maven.plugins</groupId>
100                 <artifactId>maven-checkstyle-plugin</artifactId>
101                 <configuration>
102                     <skip>${maven.check.skip}</skip>
103                 </configuration>
104             </plugin>
105
106             <plugin>
107                 <groupId>org.apache.maven.plugins</groupId>
108                 <artifactId>maven-jar-plugin</artifactId>
109                 <version>2.4</version>
110                 <executions>
111                     <execution>
112                         <id>make-a-jar</id>
113                         <phase>compile</phase>
114                         <goals>
115                             <goal>jar</goal>
116                         </goals>
117                         <configuration>
118                             <excludes>
119                                 <exclude>**/Sample*</exclude>
120                             </excludes>
121                         </configuration>
122                     </execution>
123                 </executions>
124             </plugin>
125             <plugin>
126                 <groupId>org.apache.maven.plugins</groupId>
127                 <artifactId>maven-install-plugin</artifactId>
128                 <version>2.4</version>
129                 <executions>
130                     <execution>
131                         <id>core</id>
132                         <phase>install</phase>
133                         <goals>
134                             <goal>install-file</goal>
135                         </goals>
136                         <configuration>
137                             <packaging>jar</packaging>
138                             <artifactId>${project.artifactId}</artifactId>
139                             <groupId>${project.groupId}</groupId>
140                             <version>${project.version}</version>
141                             <file>${project.build.directory}/${project.artifactId}.jar</file>
142                         </configuration>
143                     </execution>
144                 </executions>
145             </plugin>
146         </plugins>
147     </build>
148
149     <dependencies>
150         <!-- Logging -->
151         <dependency>
152             <groupId>ch.qos.logback</groupId>
153             <artifactId>logback-core</artifactId>
154             <version>1.2.3</version>
155             <exclusions>
156                 <exclusion>
157                     <groupId>org.slf4j</groupId>
158                     <artifactId>slf4j-log4j12</artifactId>
159                 </exclusion>
160             </exclusions>
161         </dependency>
162         <dependency>
163             <groupId>ch.qos.logback</groupId>
164             <artifactId>logback-classic</artifactId>
165             <version>1.2.3</version>
166             <exclusions>
167                 <exclusion>
168                     <groupId>org.slf4j</groupId>
169                     <artifactId>slf4j-log4j12</artifactId>
170                 </exclusion>
171             </exclusions>
172         </dependency>
173         <dependency>
174             <groupId>com.att.eelf</groupId>
175             <artifactId>eelf-core</artifactId>
176             <version>1.0.1-oss</version>
177             <exclusions>
178                 <exclusion>
179                     <groupId>org.powermock</groupId>
180                     <artifactId>powermock-api-mockito</artifactId>
181                 </exclusion>
182                 <exclusion>
183                     <groupId>org.powermock</groupId>
184                     <artifactId>powermock-module-junit4</artifactId>
185                 </exclusion>
186             </exclusions>
187         </dependency>
188         <!-- End Logging -->
189         <!-- Cassandra -->
190         <dependency>
191             <groupId>io.dropwizard.metrics</groupId>
192             <artifactId>metrics-core</artifactId>
193             <version>4.1.0-rc3</version>
194         </dependency>
195         <dependency>
196             <groupId>com.datastax.cassandra</groupId>
197             <artifactId>cassandra-driver-core</artifactId>
198             <version>${cassandra.version}</version>
199         </dependency>
200         <dependency>
201             <groupId>com.datastax.cassandra</groupId>
202             <artifactId>cassandra-driver-extras</artifactId>
203             <version>${cassandra.version}</version>
204         </dependency>
205         <!-- /Cassandra -->
206         <dependency>
207             <groupId>org.apache.commons</groupId>
208             <artifactId>commons-jcs-core</artifactId>
209             <version>2.2</version>
210         </dependency>
211         <dependency>
212             <groupId>commons-codec</groupId>
213             <artifactId>commons-codec</artifactId>
214             <version>1.11</version>
215         </dependency>
216         <dependency>
217             <groupId>org.apache.commons</groupId>
218             <artifactId>commons-lang3</artifactId>
219             <version>3.8</version>
220         </dependency>
221
222         <!-- Testing -->
223         <dependency>
224             <groupId>junit</groupId>
225             <artifactId>junit</artifactId>
226             <version>4.12</version>
227             <scope>test</scope>
228         </dependency>
229         <dependency>
230             <groupId>org.cassandraunit</groupId>
231             <artifactId>cassandra-unit-spring</artifactId>
232             <version>3.5.0.1</version>
233             <scope>test</scope>
234             <exclusions>
235                 <exclusion>
236                     <groupId>org.slf4j</groupId>
237                     <artifactId>slf4j-log4j12</artifactId>
238                 </exclusion>
239                 <exclusion>
240                     <groupId>ch.qos.logback</groupId>
241                     <artifactId>logback-core</artifactId>
242                 </exclusion>
243                 <exclusion>
244                     <groupId>ch.qos.logback</groupId>
245                     <artifactId>logback-classic</artifactId>
246                 </exclusion>
247                 <exclusion>
248                     <groupId>org.cassandraunit</groupId>
249                     <artifactId>cassandra-unit</artifactId>
250                 </exclusion>
251                 <exclusion>
252                     <groupId>io.dropwizard.metrics</groupId>
253                     <artifactId>metrics-core</artifactId>
254                 </exclusion>
255                 <exclusion>
256                     <groupId>com.addthis.metrics</groupId>
257                     <artifactId>reporter-config-base</artifactId>
258                 </exclusion>
259             </exclusions>
260         </dependency>
261         <dependency>
262             <groupId>org.cassandraunit</groupId>
263             <artifactId>cassandra-unit-shaded</artifactId>
264             <version>3.5.0.1</version>
265             <scope>test</scope>
266         </dependency>
267         <dependency>
268             <groupId>org.mockito</groupId>
269             <artifactId>mockito-core</artifactId>
270             <version>2.23.4</version>
271             <scope>test</scope>
272         </dependency>
273         <!--  /Testing -->
274         <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jsr310 -->
275         <dependency>
276             <groupId>com.fasterxml.jackson.datatype</groupId>
277             <artifactId>jackson-datatype-jsr310</artifactId>
278             <version>2.9.9</version>
279         </dependency>
280         <dependency>
281             <groupId>com.fasterxml.jackson.core</groupId>
282             <artifactId>jackson-databind</artifactId>
283             <version>2.9.9.2</version>
284         </dependency>
285         <dependency>
286             <groupId>com.fasterxml.jackson.core</groupId>
287             <artifactId>jackson-core</artifactId>
288             <version>2.9.9</version>
289         </dependency>
290         <dependency>
291             <groupId>com.fasterxml.jackson.core</groupId>
292             <artifactId>jackson-annotations</artifactId>
293             <version>2.9.9</version>
294         </dependency>
295         <dependency>
296             <groupId>org.apache.httpcomponents</groupId>
297             <artifactId>httpclient</artifactId>
298         </dependency>
299         <dependency>
300             <groupId>io.swagger</groupId>
301             <artifactId>swagger-jersey-jaxrs</artifactId>
302             <version>1.5.22</version>
303             <exclusions>
304               <exclusion>
305                 <groupId>com.sun.jersey.contribs</groupId>
306                 <artifactId>jersey-multipart</artifactId>
307               </exclusion>
308               <exclusion>
309                 <groupId>com.sun.jersey</groupId>
310                 <artifactId>jersey-core</artifactId>
311               </exclusion>
312               <exclusion>
313                 <groupId>javax.ws.rs</groupId>
314                 <artifactId>jsr311-api</artifactId>
315               </exclusion>
316             </exclusions>
317         </dependency>
318         <dependency>
319                         <groupId>com.sun.jersey.contribs</groupId>
320             <artifactId>jersey-multipart</artifactId>
321             <version>1.19</version>
322             <exclusions>
323               <exclusion>
324                 <groupId>javax.ws.rs</groupId>
325                 <artifactId>jsr311-api</artifactId>
326               </exclusion>
327             </exclusions>
328         </dependency>
329         <dependency>
330             <groupId>javax.ws.rs</groupId>
331             <artifactId>javax.ws.rs-api</artifactId>
332             <version>2.0.1</version>
333             <scope>provided</scope>
334         </dependency>
335         <dependency>
336             <groupId>com.google.guava</groupId>
337             <artifactId>guava</artifactId>
338         </dependency>
339         <dependency>
340             <groupId>de.svenkubiak</groupId>
341             <artifactId>jBCrypt</artifactId>
342             <version>0.4.1</version>
343         </dependency>
344         <dependency>
345             <groupId>io.netty</groupId>
346             <artifactId>netty-handler</artifactId>
347             <version>4.1.33.Final</version>
348         </dependency>
349         <dependency>
350             <groupId>io.netty</groupId>
351             <artifactId>netty-buffer</artifactId>
352             <version>4.1.33.Final</version>
353         </dependency>
354         <dependency>
355             <groupId>io.netty</groupId>
356             <artifactId>netty-codec</artifactId>
357             <version>4.1.33.Final</version>
358         </dependency>
359         <dependency>
360             <groupId>io.netty</groupId>
361             <artifactId>netty-common</artifactId>
362             <version>4.1.33.Final</version>
363         </dependency>
364         <dependency>
365             <groupId>io.netty</groupId>
366             <artifactId>netty-resolver</artifactId>
367             <version>4.1.33.Final</version>
368         </dependency>
369         <dependency>
370             <groupId>io.netty</groupId>
371             <artifactId>netty-transport</artifactId>
372             <version>4.1.33.Final</version>
373         </dependency>
374         <dependency>
375             <groupId>org.onap.aaf.authz</groupId>
376             <artifactId>aaf-cadi-aaf</artifactId>
377             <version>2.1.7</version>
378             <exclusions>
379                 <exclusion>
380                     <groupId>log4j</groupId>
381                     <artifactId>log4j</artifactId>
382                 </exclusion>
383             </exclusions>
384         </dependency>
385         <dependency>
386             <groupId>org.onap.aaf.authz</groupId>
387             <artifactId>aaf-cadi-client</artifactId>
388             <version>2.1.7</version>
389             <exclusions>
390                 <exclusion>
391                     <groupId>javax.servlet</groupId>
392                     <artifactId>javax.servlet-api</artifactId>
393                 </exclusion>
394             </exclusions>        
395         </dependency>
396         <dependency>
397             <groupId>org.onap.aaf.authz</groupId>
398             <artifactId>aaf-cadi-core</artifactId>
399             <version>2.1.7</version>
400             <exclusions>
401                 <exclusion>
402                     <groupId>log4j</groupId>
403                     <artifactId>log4j</artifactId>
404                 </exclusion>
405             </exclusions>
406         </dependency>
407         <dependency>
408             <groupId>com.google.code.gson</groupId>
409             <artifactId>gson</artifactId>
410             <version>2.8.5</version>
411         </dependency>
412     </dependencies>
413
414     <reporting>
415         <plugins>
416             <plugin>
417                 <groupId>org.apache.maven.plugins</groupId>
418                 <artifactId>maven-javadoc-plugin</artifactId>
419                 <version>2.10.3</version>
420                 <configuration>
421                     <author>true</author>
422                     <breakiterator>true</breakiterator>
423                     <version>true</version>
424                     <links>
425                         <link>https://docs.oracle.com/javase/7/docs/api/</link>
426                         <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
427                         <link>http://docs.oracle.com/javaee/7/api/</link>
428                     </links>
429                 </configuration>
430             </plugin>
431             <plugin>
432                 <groupId>org.apache.maven.plugins</groupId>
433                 <artifactId>maven-compiler-plugin</artifactId>
434                 <configuration>
435                     <source>1.8</source>
436                     <target>1.8</target>
437                 </configuration>
438             </plugin>
439         </plugins>
440     </reporting>
441
442     <distributionManagement>
443         <repository>
444             <id>ecomp-releases</id>
445             <name>Release Repository</name>
446             <url>${nexusproxy}/${releaseNexusPath}</url>
447         </repository>
448         <snapshotRepository>
449             <id>ecomp-snapshots</id>
450             <name>Snapshot Repository</name>
451             <url>${nexusproxy}/${snapshotNexusPath}</url>
452         </snapshotRepository>
453         <!-- added for javadoc -->
454         <site>
455             <id>ecomp-site</id>
456             <url>dav:${nexusproxy}${sitePath}</url>
457         </site>
458     </distributionManagement>
459 </project>