6c611e8871853afe0da15e202f8d9fdc1213e965
[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         <!-- Springboot -->
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         </dependency>
138         <dependency>
139             <groupId>com.sun.jersey</groupId>
140             <artifactId>jersey-server</artifactId>
141             <version>${jersey1.version}</version>
142         </dependency>
143         <dependency>
144             <groupId>com.sun.jersey</groupId>
145             <artifactId>jersey-json</artifactId>
146             <version>${jersey1.version}</version>
147         </dependency>
148         <dependency>
149             <groupId>com.sun.jersey</groupId>
150             <artifactId>jersey-servlet</artifactId>
151             <version>${jersey1.version}</version>
152         </dependency>
153         <!-- /Jersey -->
154         <!-- Testing -->
155         <dependency>
156             <groupId>junit</groupId>
157             <artifactId>junit</artifactId>
158             <version>4.12</version>
159             <scope>test</scope>
160         </dependency>
161         <dependency>
162             <groupId>org.cassandraunit</groupId>
163             <artifactId>cassandra-unit-spring</artifactId>
164             <version>3.5.0.1</version>
165             <scope>test</scope>
166             <exclusions>
167                 <exclusion>
168                     <groupId>org.slf4j</groupId>
169                     <artifactId>slf4j-log4j12</artifactId>
170                 </exclusion>
171                 <exclusion>
172                     <groupId>ch.qos.logback</groupId>
173                     <artifactId>logback-core</artifactId>
174                 </exclusion>
175                 <exclusion>
176                     <groupId>ch.qos.logback</groupId>
177                     <artifactId>logback-classic</artifactId>
178                 </exclusion>
179                 <exclusion>
180                     <groupId>org.cassandraunit</groupId>
181                     <artifactId>cassandra-unit</artifactId>
182                 </exclusion>
183                 <exclusion>
184                     <groupId>io.dropwizard.metrics</groupId>
185                     <artifactId>metrics-core</artifactId>
186                 </exclusion>
187                 <exclusion>
188                     <groupId>com.addthis.metrics</groupId>
189                     <artifactId>reporter-config-base</artifactId>
190                 </exclusion>
191             </exclusions>
192         </dependency>
193         <dependency>
194             <groupId>org.cassandraunit</groupId>
195             <artifactId>cassandra-unit-shaded</artifactId>
196             <version>3.5.0.1</version>
197             <scope>test</scope>
198         </dependency>
199         <dependency>
200             <groupId>org.mockito</groupId>
201             <artifactId>mockito-core</artifactId>
202             <version>2.23.4</version>
203             <scope>test</scope>
204         </dependency>
205         <!--  /Testing -->
206     </dependencies>
207
208     <build>
209         <plugins>
210             <plugin>
211                 <groupId>org.springframework.boot</groupId>
212                 <artifactId>spring-boot-maven-plugin</artifactId>
213                 <version>2.1.1.RELEASE</version>
214                 <configuration>
215                     <mainClass>org.onap.music.MusicApplication</mainClass>
216                     <outputDirectory>../distribution/music/</outputDirectory>
217                     <addResources>true</addResources>
218                     <finalName>MUSIC-SB</finalName>
219                 </configuration>
220                 <executions>
221                     <execution>
222                         <phase>install</phase>
223                         <goals>
224                             <goal>repackage</goal>
225                         </goals>
226                     </execution>
227                 </executions>
228             </plugin>
229         </plugins>
230         <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
231             <plugins>
232                 <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
233                 <plugin>
234                     <artifactId>maven-clean-plugin</artifactId>
235                     <version>3.1.0</version>
236                 </plugin>
237                 <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
238                 <plugin>
239                     <artifactId>maven-resources-plugin</artifactId>
240                     <version>3.0.2</version>
241                 </plugin>
242                 <plugin>
243                     <artifactId>maven-compiler-plugin</artifactId>
244                     <version>3.8.0</version>
245                 </plugin>
246                 <plugin>
247                     <artifactId>maven-surefire-plugin</artifactId>
248                     <version>2.22.1</version>
249                 </plugin>
250                 <plugin>
251                     <artifactId>maven-jar-plugin</artifactId>
252                     <version>3.0.2</version>
253                 </plugin>
254                 <plugin>
255                     <artifactId>maven-install-plugin</artifactId>
256                     <version>2.5.2</version>
257                 </plugin>
258                 <plugin>
259                     <artifactId>maven-deploy-plugin</artifactId>
260                     <version>2.8.2</version>
261                 </plugin>
262                 <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
263                 <plugin>
264                     <artifactId>maven-site-plugin</artifactId>
265                     <version>3.7.1</version>
266                 </plugin>
267                 <plugin>
268                     <artifactId>maven-project-info-reports-plugin</artifactId>
269                     <version>3.0.0</version>
270                 </plugin>
271             </plugins>
272         </pluginManagement>
273     </build>
274 </project>