Exclude jsr library
[music.git] / music-rest / 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-rest</artifactId>
29     <packaging>jar</packaging>
30     <version>3.2.37-SNAPSHOT</version>
31     <description>
32             This is the MUSIC Spring-based REST service.
33     </description>
34     <name>music-rest</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         <start-class>org.onap.music.MusicApplication</start-class>
44         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
45         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
46         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
47         <java.version>1.8</java.version>
48         <jersey1.version>1.19</jersey1.version>
49         <jersey2.version>2.25.1</jersey2.version>
50         <jaxrs.version>2.0.1</jaxrs.version>
51
52         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
53         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
54         <!--nexus -->
55         <nexusproxy>https://nexus.onap.org</nexusproxy>
56         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
57         <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
58         <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
59         <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
60         <sitePath>/content/sites/site/org/onap/music/${project.version}</sitePath>
61         <!--maven -->
62         <timestamp>${maven.build.timestamp}</timestamp>
63         <maven.build.timestamp.format>yyyy.MM.dd.HH.mm</maven.build.timestamp.format>
64         <!--skip checkstyle -->
65         <maven.check.skip>false</maven.check.skip>
66         <!--docker -->
67         <docker.tag>${project.version}-${timestamp}</docker.tag>
68         <docker.latest.tag>${project.version}-latest</docker.latest.tag>
69         <maven.compiler.source>1.8</maven.compiler.source>
70         <maven.compiler.target>1.8</maven.compiler.target>
71     </properties>
72
73     <dependencyManagement>
74         <dependencies>
75             <dependency>
76                 <groupId>org.springframework.boot</groupId>
77                 <artifactId>spring-boot-dependencies</artifactId>
78                 <version>2.1.1.RELEASE</version>
79                 <type>pom</type>
80                 <scope>import</scope>
81             </dependency>
82         </dependencies>
83     </dependencyManagement>
84
85     <dependencies>
86
87         <dependency>
88             <groupId>org.springframework.boot</groupId>
89             <artifactId>spring-boot-starter</artifactId>
90         </dependency>
91         <dependency>
92             <groupId>org.springframework.data</groupId>
93             <artifactId>spring-data-cassandra</artifactId>
94         </dependency>
95         <dependency>
96             <groupId>org.springframework.boot</groupId>
97             <artifactId>spring-boot-starter-jersey</artifactId>
98         </dependency>
99         <dependency>
100             <groupId>org.springframework.boot</groupId>
101             <artifactId>spring-boot-starter-web</artifactId>
102         </dependency>
103         <dependency>
104             <groupId>org.springframework.boot</groupId>
105             <artifactId>spring-boot-starter-tomcat</artifactId>
106         </dependency>
107         <dependency>
108             <groupId>org.springframework.boot</groupId>
109             <artifactId>spring-boot-starter-test</artifactId>
110             <scope>test</scope>
111         </dependency>
112         <dependency>
113             <groupId>org.springframework</groupId>
114             <artifactId>spring-aop</artifactId>
115             <scope>compile</scope>
116         </dependency>
117         <dependency>
118             <groupId>org.springframework.boot</groupId>
119             <artifactId>spring-boot-autoconfigure</artifactId>
120         </dependency>
121         <dependency>
122             <groupId>org.aspectj</groupId>
123             <artifactId>aspectjweaver</artifactId>
124             <scope>compile</scope>
125         </dependency>
126         <!-- Springboot -->
127         <dependency>
128           <groupId>org.onap.music</groupId>
129           <artifactId>MUSIC-core</artifactId>
130           <version>3.2.37-SNAPSHOT</version>
131         </dependency>
132         <!-- Jersey -->
133         <dependency>
134             <groupId>com.sun.jersey</groupId>
135             <artifactId>jersey-client</artifactId>
136             <version>${jersey1.version}</version>
137             <exclusions>
138                 <exclusion>
139                     <groupId>javax.ws.rs</groupId>
140                     <artifactId>jsr311-api</artifactId>
141                 </exclusion>
142             </exclusions>
143         </dependency>
144         <dependency>
145             <groupId>com.sun.jersey</groupId>
146             <artifactId>jersey-server</artifactId>
147             <version>${jersey1.version}</version>
148         </dependency>
149         <dependency>
150             <groupId>com.sun.jersey</groupId>
151             <artifactId>jersey-json</artifactId>
152             <version>${jersey1.version}</version>
153             <exclusions>
154                 <exclusion>
155                     <groupId>org.codehaus.jackson</groupId>
156                     <artifactId>jackson-jaxrs</artifactId>
157                 </exclusion>
158             </exclusions>
159         </dependency>
160         <dependency>
161             <groupId>com.sun.jersey</groupId>
162             <artifactId>jersey-servlet</artifactId>
163             <version>${jersey1.version}</version>
164         </dependency>
165         <!-- /Jersey -->
166         <!-- Testing -->
167         <dependency>
168             <groupId>junit</groupId>
169             <artifactId>junit</artifactId>
170             <version>4.12</version>
171             <scope>test</scope>
172         </dependency>
173         <dependency>
174             <groupId>org.cassandraunit</groupId>
175             <artifactId>cassandra-unit-spring</artifactId>
176             <version>3.5.0.1</version>
177             <scope>test</scope>
178             <exclusions>
179                 <exclusion>
180                     <groupId>org.slf4j</groupId>
181                     <artifactId>slf4j-log4j12</artifactId>
182                 </exclusion>
183                 <exclusion>
184                     <groupId>ch.qos.logback</groupId>
185                     <artifactId>logback-core</artifactId>
186                 </exclusion>
187                 <exclusion>
188                     <groupId>ch.qos.logback</groupId>
189                     <artifactId>logback-classic</artifactId>
190                 </exclusion>
191                 <exclusion>
192                     <groupId>org.cassandraunit</groupId>
193                     <artifactId>cassandra-unit</artifactId>
194                 </exclusion>
195                 <exclusion>
196                     <groupId>io.dropwizard.metrics</groupId>
197                     <artifactId>metrics-core</artifactId>
198                 </exclusion>
199                 <exclusion>
200                     <groupId>com.addthis.metrics</groupId>
201                     <artifactId>reporter-config-base</artifactId>
202                 </exclusion>
203             </exclusions>
204         </dependency>
205         <dependency>
206             <groupId>org.cassandraunit</groupId>
207             <artifactId>cassandra-unit-shaded</artifactId>
208             <version>3.5.0.1</version>
209             <scope>test</scope>
210         </dependency>
211         <dependency>
212             <groupId>org.mockito</groupId>
213             <artifactId>mockito-core</artifactId>
214             <version>2.23.4</version>
215             <scope>test</scope>
216         </dependency>
217         <!--  /Testing -->
218     </dependencies>
219
220     <build>
221         <plugins>
222             <plugin>
223                 <groupId>org.springframework.boot</groupId>
224                 <artifactId>spring-boot-maven-plugin</artifactId>
225                 <version>2.1.1.RELEASE</version>
226                 <configuration>
227                     <mainClass>org.onap.music.MusicApplication</mainClass>
228                     <outputDirectory>${project.basedir}/distribution/music/</outputDirectory>
229                     <addResources>true</addResources>
230                     <finalName>MUSIC-SB</finalName>
231                 </configuration>
232                 <executions>
233                     <execution>
234                         <phase>package</phase>
235                         <goals>
236                             <goal>repackage</goal>
237                         </goals>
238                     </execution>
239                 </executions>
240             </plugin>
241         </plugins>
242         <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
243             <plugins>
244                 <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
245                 <plugin>
246                     <artifactId>maven-clean-plugin</artifactId>
247                     <version>3.1.0</version>
248                 </plugin>
249                 <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
250                 <plugin>
251                     <artifactId>maven-resources-plugin</artifactId>
252                     <version>3.0.2</version>
253                 </plugin>
254                 <plugin>
255                     <artifactId>maven-compiler-plugin</artifactId>
256                     <version>3.8.0</version>
257                 </plugin>
258                 <plugin>
259                     <artifactId>maven-surefire-plugin</artifactId>
260                     <version>2.22.1</version>
261                 </plugin>
262                 <plugin>
263                     <artifactId>maven-jar-plugin</artifactId>
264                     <version>3.0.2</version>
265                 </plugin>
266                 <plugin>
267                     <artifactId>maven-install-plugin</artifactId>
268                     <version>2.5.2</version>
269                 </plugin>
270                 <plugin>
271                     <artifactId>maven-deploy-plugin</artifactId>
272                     <version>2.8.2</version>
273                 </plugin>
274                 <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
275                 <plugin>
276                     <artifactId>maven-site-plugin</artifactId>
277                     <version>3.7.1</version>
278                 </plugin>
279                 <plugin>
280                     <artifactId>maven-project-info-reports-plugin</artifactId>
281                     <version>3.0.0</version>
282                 </plugin>
283             </plugins>
284         </pluginManagement>
285     </build>
286     <profiles>
287         <profile>
288             <id>docker</id>
289             <build>
290                 <plugins>
291                     <plugin>
292                         <groupId>io.fabric8</groupId>
293                         <artifactId>docker-maven-plugin</artifactId>
294                         <version>0.19.1</version>
295                         <configuration>
296                             <verbose>true</verbose>
297                             <apiVersion>1.23</apiVersion>
298                             <registry>nexus3.onap.org:10003</registry>
299                             <images>
300                                 <!-- MUSIC War -->
301                                 <image>
302                                     <name>onap/music/music_sb</name>
303                                     <alias>docker_music</alias>
304                                     <build>
305                                         <cleanup>true</cleanup>
306                                         <tags>
307                                             <tag>${docker.tag}</tag>
308                                             <tag>${docker.latest.tag}</tag>
309                                         </tags>
310                                         <dockerFileDir>${project.basedir}/distribution/music</dockerFileDir>
311                                     </build>
312                                 </image>
313                                 <!-- Cassandra -->
314                                 <image>
315                                     <name>onap/music/cassandra_3_11</name>
316                                     <alias>docker_cassandra_sec</alias>
317                                     <build>
318                                         <cleanup>true</cleanup>
319                                         <tags>
320                                             <tag>${docker.tag}</tag>
321                                             <tag>${docker.latest.tag}</tag>
322                                         </tags>
323                                         <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
324                                     </build>
325                                 </image>
326                                 <!-- Cassandra Job -->
327                                 <image>
328                                     <name>onap/music/cassandra_job</name>
329                                     <alias>docker_cassandra_job</alias>
330                                     <build>
331                                         <cleanup>true</cleanup>
332                                         <tags>
333                                             <tag>${docker.tag}</tag>
334                                             <tag>${docker.latest.tag}</tag>
335                                         </tags>
336                                         <dockerFileDir>${project.basedir}/distribution/cassandra_job</dockerFileDir>
337                                     </build>
338                                 </image>
339                             </images>
340                         </configuration>
341                         <executions>
342                             <execution>
343                                 <id>clean-images</id>
344                                 <phase>pre-clean</phase>
345                                 <goals>
346                                     <goal>remove</goal>
347                                 </goals>
348                                 <configuration>
349                                     <removeAll>true</removeAll>
350                                     <image>music</image>
351                                 </configuration>
352                             </execution>
353                             <execution>
354                                 <id>generate-images</id>
355                                 <phase>package</phase>
356                                 <goals>
357                                     <goal>build</goal>
358                                 </goals>
359                             </execution>
360                             <execution>
361                                 <id>push-images</id>
362                                 <phase>deploy</phase>
363                                 <goals>
364                                     <goal>push</goal>
365                                 </goals>
366                                 <configuration>
367                                     <image>onap/music/music</image>
368                                 </configuration>
369                             </execution>
370                         </executions>
371                     </plugin>
372                 </plugins>
373             </build>
374         </profile>
375         <profile>
376             <id>default</id>
377         </profile>
378     </profiles>
379 </project>