1 <?xml version="1.0" encoding="UTF-8"?>
3 ============LICENSE_START==========================================
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
14 http://www.apache.org/licenses/LICENSE-2.0
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.
22 ============LICENSE_END=============================================
23 ====================================================================
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>
32 This is the MUSIC Spring-based REST service.
34 <name>music-rest</name>
37 <groupId>org.onap.music</groupId>
38 <artifactId>MUSIC</artifactId>
39 <version>3.2.37-SNAPSHOT</version>
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>
52 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
53 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
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>
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>
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>
73 <dependencyManagement>
76 <groupId>org.springframework.boot</groupId>
77 <artifactId>spring-boot-dependencies</artifactId>
78 <version>2.1.1.RELEASE</version>
83 </dependencyManagement>
88 <groupId>javax.servlet</groupId>
89 <artifactId>javax.servlet-api</artifactId>
90 <version>4.0.1</version>
91 <scope>provided</scope>
95 <groupId>org.springframework.boot</groupId>
96 <artifactId>spring-boot-starter</artifactId>
99 <groupId>org.springframework.data</groupId>
100 <artifactId>spring-data-cassandra</artifactId>
103 <groupId>org.springframework.boot</groupId>
104 <artifactId>spring-boot-starter-jersey</artifactId>
107 <groupId>org.springframework.boot</groupId>
108 <artifactId>spring-boot-starter-web</artifactId>
111 <groupId>org.springframework.boot</groupId>
112 <artifactId>spring-boot-starter-tomcat</artifactId>
115 <groupId>org.springframework.boot</groupId>
116 <artifactId>spring-boot-starter-test</artifactId>
120 <groupId>org.springframework</groupId>
121 <artifactId>spring-aop</artifactId>
122 <scope>compile</scope>
125 <groupId>org.springframework.boot</groupId>
126 <artifactId>spring-boot-autoconfigure</artifactId>
129 <groupId>org.aspectj</groupId>
130 <artifactId>aspectjweaver</artifactId>
131 <scope>compile</scope>
135 <groupId>org.onap.music</groupId>
136 <artifactId>MUSIC-core</artifactId>
137 <version>3.2.37-SNAPSHOT</version>
141 <groupId>com.sun.jersey</groupId>
142 <artifactId>jersey-client</artifactId>
143 <version>${jersey1.version}</version>
146 <groupId>com.sun.jersey</groupId>
147 <artifactId>jersey-server</artifactId>
148 <version>${jersey1.version}</version>
151 <groupId>com.sun.jersey</groupId>
152 <artifactId>jersey-json</artifactId>
153 <version>${jersey1.version}</version>
156 <groupId>org.codehaus.jackson</groupId>
157 <artifactId>jackson-jaxrs</artifactId>
162 <groupId>com.sun.jersey</groupId>
163 <artifactId>jersey-servlet</artifactId>
164 <version>${jersey1.version}</version>
169 <groupId>junit</groupId>
170 <artifactId>junit</artifactId>
171 <version>4.12</version>
175 <groupId>org.cassandraunit</groupId>
176 <artifactId>cassandra-unit-spring</artifactId>
177 <version>3.5.0.1</version>
181 <groupId>org.slf4j</groupId>
182 <artifactId>slf4j-log4j12</artifactId>
185 <groupId>ch.qos.logback</groupId>
186 <artifactId>logback-core</artifactId>
189 <groupId>ch.qos.logback</groupId>
190 <artifactId>logback-classic</artifactId>
193 <groupId>org.cassandraunit</groupId>
194 <artifactId>cassandra-unit</artifactId>
197 <groupId>io.dropwizard.metrics</groupId>
198 <artifactId>metrics-core</artifactId>
201 <groupId>com.addthis.metrics</groupId>
202 <artifactId>reporter-config-base</artifactId>
207 <groupId>org.cassandraunit</groupId>
208 <artifactId>cassandra-unit-shaded</artifactId>
209 <version>3.5.0.1</version>
213 <groupId>org.mockito</groupId>
214 <artifactId>mockito-core</artifactId>
215 <version>2.23.4</version>
224 <groupId>org.springframework.boot</groupId>
225 <artifactId>spring-boot-maven-plugin</artifactId>
226 <version>2.1.1.RELEASE</version>
228 <mainClass>org.onap.music.MusicApplication</mainClass>
229 <outputDirectory>${project.basedir}/distribution/music/</outputDirectory>
230 <addResources>true</addResources>
231 <finalName>MUSIC-SB</finalName>
235 <phase>package</phase>
237 <goal>repackage</goal>
243 <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
245 <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
247 <artifactId>maven-clean-plugin</artifactId>
248 <version>3.1.0</version>
250 <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
252 <artifactId>maven-resources-plugin</artifactId>
253 <version>3.0.2</version>
256 <artifactId>maven-compiler-plugin</artifactId>
257 <version>3.8.0</version>
260 <artifactId>maven-surefire-plugin</artifactId>
261 <version>2.22.1</version>
264 <artifactId>maven-jar-plugin</artifactId>
265 <version>3.0.2</version>
268 <artifactId>maven-install-plugin</artifactId>
269 <version>2.5.2</version>
272 <artifactId>maven-deploy-plugin</artifactId>
273 <version>2.8.2</version>
275 <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
277 <artifactId>maven-site-plugin</artifactId>
278 <version>3.7.1</version>
281 <artifactId>maven-project-info-reports-plugin</artifactId>
282 <version>3.0.0</version>
293 <groupId>io.fabric8</groupId>
294 <artifactId>docker-maven-plugin</artifactId>
295 <version>0.19.1</version>
297 <verbose>true</verbose>
298 <apiVersion>1.23</apiVersion>
299 <registry>nexus3.onap.org:10003</registry>
303 <name>onap/music/music_sb</name>
304 <alias>docker_music</alias>
306 <cleanup>true</cleanup>
308 <tag>${docker.tag}</tag>
309 <tag>${docker.latest.tag}</tag>
311 <dockerFileDir>${project.basedir}/distribution/music</dockerFileDir>
316 <name>onap/music/cassandra_3_11</name>
317 <alias>docker_cassandra_sec</alias>
319 <cleanup>true</cleanup>
321 <tag>${docker.tag}</tag>
322 <tag>${docker.latest.tag}</tag>
324 <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
327 <!-- Cassandra Job -->
329 <name>onap/music/cassandra_job</name>
330 <alias>docker_cassandra_job</alias>
332 <cleanup>true</cleanup>
334 <tag>${docker.tag}</tag>
335 <tag>${docker.latest.tag}</tag>
337 <dockerFileDir>${project.basedir}/distribution/cassandra_job</dockerFileDir>
344 <id>clean-images</id>
345 <phase>pre-clean</phase>
350 <removeAll>true</removeAll>
355 <id>generate-images</id>
356 <phase>package</phase>
363 <phase>deploy</phase>
368 <image>onap/music/music</image>