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