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</artifactId>
29 <packaging>jar</packaging>
30 <version>3.2.34-SNAPSHOT</version>
32 This is the MUSIC REST interface, packaged as a Springboot jar file.
36 <groupId>org.onap.oparent</groupId>
37 <artifactId>oparent</artifactId>
38 <version>2.0.0</version>
42 <dependencyManagement>
45 <groupId>org.springframework.boot</groupId>
46 <artifactId>spring-boot-starter-data-jpa</artifactId>
47 <version>2.0.3.RELEASE</version>
50 <groupId>org.springframework.boot</groupId>
51 <artifactId>spring-boot-dependencies</artifactId>
52 <version>2.1.1.RELEASE</version>
57 </dependencyManagement>
59 <start-class>org.onap.music.MusicApplication</start-class>
60 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
61 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
62 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
63 <java.version>1.8</java.version>
64 <jersey1.version>1.19</jersey1.version>
65 <jersey2.version>2.25.1</jersey2.version>
66 <jaxrs.version>2.0.1</jaxrs.version>
67 <cassandra.version>3.6.0</cassandra.version>
69 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
70 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
72 <nexusproxy>https://nexus.onap.org</nexusproxy>
73 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
74 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
75 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
76 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
77 <sitePath>/content/sites/site/org/onap/music/${project.version}</sitePath>
79 <timestamp>${maven.build.timestamp}</timestamp>
80 <maven.build.timestamp.format>yyyy.MM.dd.HH.mm</maven.build.timestamp.format>
81 <!--skip checkstyle -->
82 <maven.check.skip>false</maven.check.skip>
84 <docker.tag>${project.version}-${timestamp}</docker.tag>
85 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
86 <maven.compiler.source>1.8</maven.compiler.source>
87 <maven.compiler.target>1.8</maven.compiler.target>
92 <id>onap-releases</id>
93 <name>ONAP - Release Repository</name>
94 <url>${nexusproxy}/${releaseNexusPath}</url>
98 <name>ONAP - Staging Repository</name>
99 <url>${nexusproxy}/${stagingNexusPath}</url>
102 <id>onap-snapshots</id>
103 <name>ONAP - Snapshot Repository</name>
104 <url>${nexusproxy}/${snapshotNexusPath}</url>
108 <name>ONAP public Repository</name>
109 <url>${nexusproxy}/content/groups/public</url>
114 <!-- <finalName>${project.artifactId}-${project.version}-${timestamp}</finalName>-->
115 <finalName>${project.artifactId}</finalName>
116 <sourceDirectory>src/main/java</sourceDirectory>
117 <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>
118 <testSourceDirectory>src/test/java</testSourceDirectory>
119 <testOutputDirectory>target/test-classes</testOutputDirectory>
120 <defaultGoal>validate</defaultGoal>
123 <directory>src/main/resources</directory>
124 <filtering>true</filtering>
126 <include>**/*.properties</include>
127 <include>**/*.xml</include>
128 <include>**/*.ccf</include>
134 <directory>${project.basedir}/src/test/resources</directory>
137 <directory>${project.basedir}/src/main/resources</directory>
142 <groupId>org.springframework.boot</groupId>
143 <artifactId>spring-boot-maven-plugin</artifactId>
144 <version>2.1.1.RELEASE</version>
146 <mainClass>org.onap.music.MusicApplication</mainClass>
147 <outputDirectory>./distribution/music/</outputDirectory>
148 <addResources>true</addResources>
153 <goal>repackage</goal>
160 <artifactId>maven-war-plugin</artifactId>
161 <version>2.4</version>
163 <warSourceDirectory>WebContent</warSourceDirectory>
164 <failOnMissingWebXml>false</failOnMissingWebXml>
169 <groupId>org.apache.maven.plugins</groupId>
170 <artifactId>maven-checkstyle-plugin</artifactId>
172 <skip>${maven.check.skip}</skip>
177 <groupId>org.apache.maven.plugins</groupId>
178 <artifactId>maven-jar-plugin</artifactId>
179 <version>2.4</version>
183 <phase>compile</phase>
189 <!--<exclude>**/*.xml</exclude>
190 <exclude>**/*.properties</exclude>-->
191 <exclude>**/Sample*</exclude>
198 <groupId>org.apache.maven.plugins</groupId>
199 <artifactId>maven-install-plugin</artifactId>
200 <version>2.4</version>
203 <phase>install</phase>
205 <goal>install-file</goal>
208 <packaging>jar</packaging>
209 <artifactId>${project.artifactId}</artifactId>
210 <groupId>${project.groupId}</groupId>
211 <version>${project.version}</version>
212 <file>${project.build.directory}/${project.artifactId}.jar</file>
223 <groupId>org.springframework.boot</groupId>
224 <artifactId>spring-boot-starter</artifactId>
227 <groupId>org.springframework.data</groupId>
228 <artifactId>spring-data-cassandra</artifactId>
231 <groupId>org.springframework.boot</groupId>
232 <artifactId>spring-boot-starter-jersey</artifactId>
235 <groupId>org.springframework.boot</groupId>
236 <artifactId>spring-boot-starter-web</artifactId>
239 <groupId>org.springframework.boot</groupId>
240 <artifactId>spring-boot-starter-tomcat</artifactId>
243 <groupId>org.springframework.boot</groupId>
244 <artifactId>spring-boot-starter-test</artifactId>
248 <groupId>org.springframework</groupId>
249 <artifactId>spring-aop</artifactId>
250 <scope>compile</scope>
253 <groupId>org.springframework.boot</groupId>
254 <artifactId>spring-boot-autoconfigure</artifactId>
257 <groupId>org.aspectj</groupId>
258 <artifactId>aspectjweaver</artifactId>
259 <scope>compile</scope>
264 <groupId>javax.servlet</groupId>
265 <artifactId>servlet-api</artifactId>
266 <version>2.4</version>
267 <scope>provided</scope>
270 <groupId>javax.servlet</groupId>
271 <artifactId>javax.servlet-api</artifactId>
272 <version>3.0.1</version>
273 <scope>provided</scope>
275 <!-- /Development -->
278 <groupId>ch.qos.logback</groupId>
279 <artifactId>logback-core</artifactId>
280 <version>1.2.3</version>
283 <groupId>org.slf4j</groupId>
284 <artifactId>slf4j-log4j12</artifactId>
289 <groupId>ch.qos.logback</groupId>
290 <artifactId>logback-classic</artifactId>
291 <version>1.2.3</version>
294 <groupId>org.slf4j</groupId>
295 <artifactId>slf4j-log4j12</artifactId>
300 <groupId>com.att.eelf</groupId>
301 <artifactId>eelf-core</artifactId>
302 <version>1.0.1-oss</version>
305 <groupId>org.powermock</groupId>
306 <artifactId>powermock-api-mockito</artifactId>
309 <groupId>org.powermock</groupId>
310 <artifactId>powermock-module-junit4</artifactId>
317 <groupId>io.dropwizard.metrics</groupId>
318 <artifactId>metrics-core</artifactId>
319 <version>4.1.0-rc3</version>
322 <groupId>com.datastax.cassandra</groupId>
323 <artifactId>cassandra-driver-core</artifactId>
324 <version>${cassandra.version}</version>
329 <groupId>com.sun.jersey</groupId>
330 <artifactId>jersey-client</artifactId>
331 <version>${jersey1.version}</version>
334 <groupId>com.sun.jersey</groupId>
335 <artifactId>jersey-server</artifactId>
336 <version>${jersey1.version}</version>
339 <groupId>com.sun.jersey</groupId>
340 <artifactId>jersey-json</artifactId>
341 <version>${jersey1.version}</version>
344 <groupId>com.sun.jersey</groupId>
345 <artifactId>jersey-servlet</artifactId>
346 <version>${jersey1.version}</version>
351 <groupId>org.apache.commons</groupId>
352 <artifactId>commons-jcs-core</artifactId>
353 <version>2.2</version>
356 <groupId>commons-codec</groupId>
357 <artifactId>commons-codec</artifactId>
358 <version>1.11</version>
361 <groupId>org.apache.commons</groupId>
362 <artifactId>commons-lang3</artifactId>
363 <version>3.8</version>
368 <groupId>junit</groupId>
369 <artifactId>junit</artifactId>
370 <version>4.12</version>
374 <groupId>org.cassandraunit</groupId>
375 <artifactId>cassandra-unit-spring</artifactId>
376 <version>3.5.0.1</version>
380 <groupId>org.slf4j</groupId>
381 <artifactId>slf4j-log4j12</artifactId>
384 <groupId>ch.qos.logback</groupId>
385 <artifactId>logback-core</artifactId>
388 <groupId>ch.qos.logback</groupId>
389 <artifactId>logback-classic</artifactId>
392 <groupId>org.cassandraunit</groupId>
393 <artifactId>cassandra-unit</artifactId>
396 <groupId>io.dropwizard.metrics</groupId>
397 <artifactId>metrics-core</artifactId>
400 <groupId>com.addthis.metrics</groupId>
401 <artifactId>reporter-config-base</artifactId>
406 <groupId>org.cassandraunit</groupId>
407 <artifactId>cassandra-unit-shaded</artifactId>
408 <version>3.5.0.1</version>
412 <groupId>org.mockito</groupId>
413 <artifactId>mockito-core</artifactId>
414 <version>2.23.4</version>
419 <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jsr310 -->
421 <groupId>com.fasterxml.jackson.datatype</groupId>
422 <artifactId>jackson-datatype-jsr310</artifactId>
423 <version>2.9.8</version>
426 <groupId>com.fasterxml.jackson.core</groupId>
427 <artifactId>jackson-databind</artifactId>
428 <version>2.9.8</version>
431 <groupId>com.fasterxml.jackson.core</groupId>
432 <artifactId>jackson-core</artifactId>
433 <version>2.9.8</version>
436 <groupId>com.fasterxml.jackson.core</groupId>
437 <artifactId>jackson-annotations</artifactId>
438 <version>2.9.8</version>
441 <groupId>org.apache.httpcomponents</groupId>
442 <artifactId>httpclient</artifactId>
445 <groupId>io.swagger</groupId>
446 <artifactId>swagger-jersey-jaxrs</artifactId>
447 <version>1.5.22</version>
450 <groupId>com.google.guava</groupId>
451 <artifactId>guava</artifactId>
454 <groupId>de.svenkubiak</groupId>
455 <artifactId>jBCrypt</artifactId>
456 <version>0.4.1</version>
459 <groupId>io.netty</groupId>
460 <artifactId>netty-handler</artifactId>
461 <version>4.1.33.Final</version>
464 <groupId>io.netty</groupId>
465 <artifactId>netty-buffer</artifactId>
466 <version>4.1.33.Final</version>
469 <groupId>io.netty</groupId>
470 <artifactId>netty-codec</artifactId>
471 <version>4.1.33.Final</version>
474 <groupId>io.netty</groupId>
475 <artifactId>netty-common</artifactId>
476 <version>4.1.33.Final</version>
479 <groupId>io.netty</groupId>
480 <artifactId>netty-resolver</artifactId>
481 <version>4.1.33.Final</version>
484 <groupId>io.netty</groupId>
485 <artifactId>netty-transport</artifactId>
486 <version>4.1.33.Final</version>
489 <groupId>org.onap.aaf.authz</groupId>
490 <artifactId>aaf-cadi-aaf</artifactId>
491 <version>2.1.7</version>
494 <groupId>log4j</groupId>
495 <artifactId>log4j</artifactId>
500 <groupId>org.onap.aaf.authz</groupId>
501 <artifactId>aaf-cadi-client</artifactId>
502 <version>2.1.7</version>
505 <groupId>org.onap.aaf.authz</groupId>
506 <artifactId>aaf-cadi-core</artifactId>
507 <version>2.1.7</version>
510 <groupId>com.google.code.gson</groupId>
511 <artifactId>gson</artifactId>
512 <version>2.8.5</version>
519 <groupId>org.apache.maven.plugins</groupId>
520 <artifactId>maven-javadoc-plugin</artifactId>
521 <version>2.10.3</version>
523 <author>true</author>
524 <breakiterator>true</breakiterator>
525 <version>true</version>
527 <link>https://docs.oracle.com/javase/7/docs/api/</link>
528 <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
529 <link>http://docs.oracle.com/javaee/7/api/</link>
534 <groupId>org.apache.maven.plugins</groupId>
535 <artifactId>maven-compiler-plugin</artifactId>
550 <groupId>io.fabric8</groupId>
551 <artifactId>docker-maven-plugin</artifactId>
552 <version>0.19.1</version>
554 <verbose>true</verbose>
555 <apiVersion>1.23</apiVersion>
556 <registry>nexus3.onap.org:10003</registry>
560 <name>onap/music/music_sb</name>
561 <alias>docker_music</alias>
563 <cleanup>true</cleanup>
565 <tag>${docker.tag}</tag>
566 <tag>${docker.latest.tag}</tag>
568 <dockerFileDir>${project.basedir}/distribution/music</dockerFileDir>
570 <descriptorRef>artifact</descriptorRef>
576 <name>onap/music/cassandra_3_11</name>
577 <alias>docker_cassandra_sec</alias>
579 <cleanup>true</cleanup>
581 <tag>${docker.tag}</tag>
582 <tag>${docker.latest.tag}</tag>
584 <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
587 <!-- Cassandra Job -->
589 <name>onap/music/cassandra_job</name>
590 <alias>docker_cassandra_job</alias>
592 <cleanup>true</cleanup>
594 <tag>${docker.tag}</tag>
595 <tag>${docker.latest.tag}</tag>
597 <dockerFileDir>${project.basedir}/distribution/cassandra_job</dockerFileDir>
601 <!-- <image> <name>onap/music/tomcat_music</name>
602 <alias>docker_tomcat</alias> <build> <cleanup>true</cleanup> <tags> <tag>8.5-${timestamp}</tag>
603 <tag>8.5-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/tomcat</dockerFileDir>
604 </build> </image>\ -->
609 <id>clean-images</id>
610 <phase>pre-clean</phase>
615 <removeAll>true</removeAll>
620 <id>generate-images</id>
621 <phase>package</phase>
628 <phase>deploy</phase>
633 <image>onap/music/music</image>
645 <distributionManagement>
647 <id>ecomp-releases</id>
648 <name>Release Repository</name>
649 <url>${nexusproxy}/${releaseNexusPath}</url>
652 <id>ecomp-snapshots</id>
653 <name>Snapshot Repository</name>
654 <url>${nexusproxy}/${snapshotNexusPath}</url>
655 </snapshotRepository>
656 <!-- added for javadoc -->
659 <url>dav:${nexusproxy}${sitePath}</url>
661 </distributionManagement>