Exclude jsr library from swagger
[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
275         <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jsr310 -->
276         <dependency>
277             <groupId>com.fasterxml.jackson.datatype</groupId>
278             <artifactId>jackson-datatype-jsr310</artifactId>
279             <version>2.9.9</version>
280         </dependency>
281         <dependency>
282             <groupId>com.fasterxml.jackson.core</groupId>
283             <artifactId>jackson-databind</artifactId>
284             <version>2.9.9.2</version>
285         </dependency>
286         <dependency>
287             <groupId>com.fasterxml.jackson.core</groupId>
288             <artifactId>jackson-core</artifactId>
289             <version>2.9.9</version>
290         </dependency>
291         <dependency>
292             <groupId>com.fasterxml.jackson.core</groupId>
293             <artifactId>jackson-annotations</artifactId>
294             <version>2.9.9</version>
295         </dependency>
296         <dependency>
297             <groupId>org.apache.httpcomponents</groupId>
298             <artifactId>httpclient</artifactId>
299         </dependency>
300         <dependency>
301             <groupId>io.swagger</groupId>
302             <artifactId>swagger-jersey-jaxrs</artifactId>
303             <version>1.5.22</version>
304             <exclusions>
305               <exclusion>
306                 <groupId>javax.ws.rs</groupId>
307                 <artifactId>jsr311-api</artifactId>
308               </exclusion>
309             </exclusions>
310         </dependency>
311         <dependency>
312             <groupId>com.google.guava</groupId>
313             <artifactId>guava</artifactId>
314         </dependency>
315         <dependency>
316             <groupId>de.svenkubiak</groupId>
317             <artifactId>jBCrypt</artifactId>
318             <version>0.4.1</version>
319         </dependency>
320         <dependency>
321             <groupId>io.netty</groupId>
322             <artifactId>netty-handler</artifactId>
323             <version>4.1.33.Final</version>
324         </dependency>
325         <dependency>
326             <groupId>io.netty</groupId>
327             <artifactId>netty-buffer</artifactId>
328             <version>4.1.33.Final</version>
329         </dependency>
330         <dependency>
331             <groupId>io.netty</groupId>
332             <artifactId>netty-codec</artifactId>
333             <version>4.1.33.Final</version>
334         </dependency>
335         <dependency>
336             <groupId>io.netty</groupId>
337             <artifactId>netty-common</artifactId>
338             <version>4.1.33.Final</version>
339         </dependency>
340         <dependency>
341             <groupId>io.netty</groupId>
342             <artifactId>netty-resolver</artifactId>
343             <version>4.1.33.Final</version>
344         </dependency>
345         <dependency>
346             <groupId>io.netty</groupId>
347             <artifactId>netty-transport</artifactId>
348             <version>4.1.33.Final</version>
349         </dependency>
350         <dependency>
351             <groupId>org.onap.aaf.authz</groupId>
352             <artifactId>aaf-cadi-aaf</artifactId>
353             <version>2.1.7</version>
354             <exclusions>
355                 <exclusion>
356                     <groupId>log4j</groupId>
357                     <artifactId>log4j</artifactId>
358                 </exclusion>
359             </exclusions>
360         </dependency>
361         <dependency>
362             <groupId>org.onap.aaf.authz</groupId>
363             <artifactId>aaf-cadi-client</artifactId>
364             <version>2.1.7</version>
365             <exclusions>
366                 <exclusion>
367                     <groupId>javax.servlet</groupId>
368                     <artifactId>javax.servlet-api</artifactId>
369                 </exclusion>
370             </exclusions>        
371         </dependency>
372         <dependency>
373             <groupId>org.onap.aaf.authz</groupId>
374             <artifactId>aaf-cadi-core</artifactId>
375             <version>2.1.7</version>
376             <exclusions>
377                 <exclusion>
378                     <groupId>log4j</groupId>
379                     <artifactId>log4j</artifactId>
380                 </exclusion>
381             </exclusions>
382         </dependency>
383         <dependency>
384             <groupId>com.google.code.gson</groupId>
385             <artifactId>gson</artifactId>
386             <version>2.8.5</version>
387         </dependency>
388     </dependencies>
389
390     <reporting>
391         <plugins>
392             <plugin>
393                 <groupId>org.apache.maven.plugins</groupId>
394                 <artifactId>maven-javadoc-plugin</artifactId>
395                 <version>2.10.3</version>
396                 <configuration>
397                     <author>true</author>
398                     <breakiterator>true</breakiterator>
399                     <version>true</version>
400                     <links>
401                         <link>https://docs.oracle.com/javase/7/docs/api/</link>
402                         <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
403                         <link>http://docs.oracle.com/javaee/7/api/</link>
404                     </links>
405                 </configuration>
406             </plugin>
407             <plugin>
408                 <groupId>org.apache.maven.plugins</groupId>
409                 <artifactId>maven-compiler-plugin</artifactId>
410                 <configuration>
411                     <source>1.8</source>
412                     <target>1.8</target>
413                 </configuration>
414             </plugin>
415         </plugins>
416     </reporting>
417
418     <distributionManagement>
419         <repository>
420             <id>ecomp-releases</id>
421             <name>Release Repository</name>
422             <url>${nexusproxy}/${releaseNexusPath}</url>
423         </repository>
424         <snapshotRepository>
425             <id>ecomp-snapshots</id>
426             <name>Snapshot Repository</name>
427             <url>${nexusproxy}/${snapshotNexusPath}</url>
428         </snapshotRepository>
429         <!-- added for javadoc -->
430         <site>
431             <id>ecomp-site</id>
432             <url>dav:${nexusproxy}${sitePath}</url>
433         </site>
434     </distributionManagement>
435 </project>