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.38-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.38-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>org.springframework.boot</groupId>
89 <artifactId>spring-boot-starter</artifactId>
92 <groupId>org.springframework.data</groupId>
93 <artifactId>spring-data-cassandra</artifactId>
96 <groupId>org.springframework.boot</groupId>
97 <artifactId>spring-boot-starter-jersey</artifactId>
100 <groupId>org.springframework.boot</groupId>
101 <artifactId>spring-boot-starter-web</artifactId>
104 <groupId>org.springframework.boot</groupId>
105 <artifactId>spring-boot-starter-tomcat</artifactId>
108 <groupId>org.springframework.boot</groupId>
109 <artifactId>spring-boot-starter-test</artifactId>
113 <groupId>org.springframework</groupId>
114 <artifactId>spring-aop</artifactId>
115 <scope>compile</scope>
118 <groupId>org.springframework.boot</groupId>
119 <artifactId>spring-boot-autoconfigure</artifactId>
122 <groupId>org.aspectj</groupId>
123 <artifactId>aspectjweaver</artifactId>
124 <scope>compile</scope>
128 <groupId>org.onap.music</groupId>
129 <artifactId>MUSIC-core</artifactId>
130 <version>3.2.38-SNAPSHOT</version>
134 <groupId>com.sun.jersey</groupId>
135 <artifactId>jersey-client</artifactId>
136 <version>${jersey1.version}</version>
139 <groupId>javax.ws.rs</groupId>
140 <artifactId>jsr311-api</artifactId>
145 <groupId>com.sun.jersey</groupId>
146 <artifactId>jersey-server</artifactId>
147 <version>${jersey1.version}</version>
150 <groupId>com.sun.jersey</groupId>
151 <artifactId>jersey-json</artifactId>
152 <version>${jersey1.version}</version>
155 <groupId>org.codehaus.jackson</groupId>
156 <artifactId>jackson-jaxrs</artifactId>
161 <groupId>com.sun.jersey</groupId>
162 <artifactId>jersey-servlet</artifactId>
163 <version>${jersey1.version}</version>
168 <groupId>junit</groupId>
169 <artifactId>junit</artifactId>
170 <version>4.12</version>
174 <groupId>org.cassandraunit</groupId>
175 <artifactId>cassandra-unit-spring</artifactId>
176 <version>3.5.0.1</version>
180 <groupId>org.slf4j</groupId>
181 <artifactId>slf4j-log4j12</artifactId>
184 <groupId>ch.qos.logback</groupId>
185 <artifactId>logback-core</artifactId>
188 <groupId>ch.qos.logback</groupId>
189 <artifactId>logback-classic</artifactId>
192 <groupId>org.cassandraunit</groupId>
193 <artifactId>cassandra-unit</artifactId>
196 <groupId>io.dropwizard.metrics</groupId>
197 <artifactId>metrics-core</artifactId>
200 <groupId>com.addthis.metrics</groupId>
201 <artifactId>reporter-config-base</artifactId>
206 <groupId>org.cassandraunit</groupId>
207 <artifactId>cassandra-unit-shaded</artifactId>
208 <version>3.5.0.1</version>
212 <groupId>org.mockito</groupId>
213 <artifactId>mockito-core</artifactId>
214 <version>2.23.4</version>
223 <groupId>org.springframework.boot</groupId>
224 <artifactId>spring-boot-maven-plugin</artifactId>
225 <version>2.1.1.RELEASE</version>
227 <mainClass>org.onap.music.MusicApplication</mainClass>
228 <outputDirectory>${project.basedir}/distribution/music/</outputDirectory>
229 <addResources>true</addResources>
230 <finalName>MUSIC-SB</finalName>
233 <groupId>javax.ws.rs</groupId>
234 <artifactId>jsr311-api</artifactId>
240 <phase>package</phase>
242 <goal>repackage</goal>
248 <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
250 <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
252 <artifactId>maven-clean-plugin</artifactId>
253 <version>3.1.0</version>
255 <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
257 <artifactId>maven-resources-plugin</artifactId>
258 <version>3.0.2</version>
261 <artifactId>maven-compiler-plugin</artifactId>
262 <version>3.8.0</version>
265 <artifactId>maven-surefire-plugin</artifactId>
266 <version>2.22.1</version>
269 <artifactId>maven-jar-plugin</artifactId>
270 <version>3.0.2</version>
273 <artifactId>maven-install-plugin</artifactId>
274 <version>2.5.2</version>
277 <artifactId>maven-deploy-plugin</artifactId>
278 <version>2.8.2</version>
280 <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
282 <artifactId>maven-site-plugin</artifactId>
283 <version>3.7.1</version>
286 <artifactId>maven-project-info-reports-plugin</artifactId>
287 <version>3.0.0</version>
298 <groupId>io.fabric8</groupId>
299 <artifactId>docker-maven-plugin</artifactId>
300 <version>0.19.1</version>
302 <verbose>true</verbose>
303 <apiVersion>1.23</apiVersion>
304 <registry>nexus3.onap.org:10003</registry>
308 <name>onap/music/music_sb</name>
309 <alias>docker_music</alias>
311 <cleanup>true</cleanup>
313 <tag>${docker.tag}</tag>
314 <tag>${docker.latest.tag}</tag>
316 <dockerFileDir>${project.basedir}/distribution/music</dockerFileDir>
321 <name>onap/music/cassandra_3_11</name>
322 <alias>docker_cassandra_sec</alias>
324 <cleanup>true</cleanup>
326 <tag>${docker.tag}</tag>
327 <tag>${docker.latest.tag}</tag>
329 <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
332 <!-- Cassandra Job -->
334 <name>onap/music/cassandra_job</name>
335 <alias>docker_cassandra_job</alias>
337 <cleanup>true</cleanup>
339 <tag>${docker.tag}</tag>
340 <tag>${docker.latest.tag}</tag>
342 <dockerFileDir>${project.basedir}/distribution/cassandra_job</dockerFileDir>
349 <id>clean-images</id>
350 <phase>pre-clean</phase>
355 <removeAll>true</removeAll>
360 <id>generate-images</id>
361 <phase>package</phase>
368 <phase>deploy</phase>
373 <image>onap/music/music</image>