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.29-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>
145 <mainClass>org.onap.music.MusicApplication</mainClass>
146 <outputDirectory>./distribution/music/</outputDirectory>
147 <addResources>true</addResources>
152 <goal>repackage</goal>
159 <artifactId>maven-war-plugin</artifactId>
160 <version>2.4</version>
162 <warSourceDirectory>WebContent</warSourceDirectory>
163 <failOnMissingWebXml>false</failOnMissingWebXml>
168 <groupId>org.apache.maven.plugins</groupId>
169 <artifactId>maven-checkstyle-plugin</artifactId>
171 <skip>${maven.check.skip}</skip>
176 <groupId>org.apache.maven.plugins</groupId>
177 <artifactId>maven-jar-plugin</artifactId>
178 <version>2.4</version>
182 <phase>compile</phase>
188 <!--<exclude>**/*.xml</exclude>
189 <exclude>**/*.properties</exclude>-->
190 <exclude>**/Sample*</exclude>
197 <groupId>org.apache.maven.plugins</groupId>
198 <artifactId>maven-install-plugin</artifactId>
199 <version>2.4</version>
202 <phase>install</phase>
204 <goal>install-file</goal>
207 <packaging>jar</packaging>
208 <artifactId>${project.artifactId}</artifactId>
209 <groupId>${project.groupId}</groupId>
210 <version>${project.version}</version>
211 <file>${project.build.directory}/${project.artifactId}.jar</file>
222 <groupId>org.springframework.boot</groupId>
223 <artifactId>spring-boot-starter</artifactId>
226 <groupId>org.springframework.data</groupId>
227 <artifactId>spring-data-cassandra</artifactId>
230 <groupId>org.springframework.boot</groupId>
231 <artifactId>spring-boot-starter-jersey</artifactId>
234 <groupId>org.springframework.boot</groupId>
235 <artifactId>spring-boot-starter-web</artifactId>
238 <groupId>org.springframework.boot</groupId>
239 <artifactId>spring-boot-starter-tomcat</artifactId>
242 <groupId>org.springframework.boot</groupId>
243 <artifactId>spring-boot-starter-test</artifactId>
247 <groupId>org.springframework.boot</groupId>
248 <artifactId>spring-boot-starter-actuator</artifactId>
251 <groupId>org.springframework</groupId>
252 <artifactId>spring-aop</artifactId>
253 <scope>compile</scope>
256 <groupId>org.springframework.boot</groupId>
257 <artifactId>spring-boot-autoconfigure</artifactId>
260 <groupId>org.springframework</groupId>
261 <artifactId>spring-aop</artifactId>
262 <scope>compile</scope>
265 <groupId>org.aspectj</groupId>
266 <artifactId>aspectjweaver</artifactId>
267 <scope>compile</scope>
272 <groupId>org.aspectj</groupId>
273 <artifactId>aspectjweaver</artifactId>
274 <scope>compile</scope>
280 <groupId>javax.servlet</groupId>
281 <artifactId>servlet-api</artifactId>
282 <version>2.4</version>
283 <scope>provided</scope>
286 <groupId>javax.servlet</groupId>
287 <artifactId>javax.servlet-api</artifactId>
288 <version>3.0.1</version>
289 <scope>provided</scope>
291 <!-- /Development -->
294 <groupId>ch.qos.logback</groupId>
295 <artifactId>logback-core</artifactId>
296 <version>1.2.3</version>
299 <groupId>org.slf4j</groupId>
300 <artifactId>slf4j-log4j12</artifactId>
305 <groupId>ch.qos.logback</groupId>
306 <artifactId>logback-classic</artifactId>
307 <version>1.2.3</version>
310 <groupId>org.slf4j</groupId>
311 <artifactId>slf4j-log4j12</artifactId>
316 <groupId>com.att.eelf</groupId>
317 <artifactId>eelf-core</artifactId>
318 <version>1.0.1-oss</version>
321 <groupId>org.powermock</groupId>
322 <artifactId>powermock-api-mockito</artifactId>
325 <groupId>org.powermock</groupId>
326 <artifactId>powermock-module-junit4</artifactId>
333 <groupId>io.dropwizard.metrics</groupId>
334 <artifactId>metrics-core</artifactId>
335 <version>4.1.0-rc3</version>
338 <groupId>com.datastax.cassandra</groupId>
339 <artifactId>cassandra-driver-core</artifactId>
340 <version>3.6.0</version>
343 <groupId>com.datastax.cassandra</groupId>
344 <artifactId>cassandra-driver-core</artifactId>
345 <version>${cassandra.version}</version>
350 <groupId>com.sun.jersey</groupId>
351 <artifactId>jersey-client</artifactId>
352 <version>${jersey1.version}</version>
355 <groupId>com.sun.jersey</groupId>
356 <artifactId>jersey-server</artifactId>
357 <version>${jersey1.version}</version>
360 <groupId>com.sun.jersey</groupId>
361 <artifactId>jersey-json</artifactId>
362 <version>${jersey1.version}</version>
365 <groupId>com.sun.jersey</groupId>
366 <artifactId>jersey-servlet</artifactId>
367 <version>${jersey1.version}</version>
372 <groupId>org.apache.commons</groupId>
373 <artifactId>commons-jcs-core</artifactId>
374 <version>2.2</version>
377 <groupId>commons-codec</groupId>
378 <artifactId>commons-codec</artifactId>
379 <version>1.11</version>
382 <groupId>org.apache.commons</groupId>
383 <artifactId>commons-lang3</artifactId>
384 <version>3.8</version>
388 <groupId>junit</groupId>
389 <artifactId>junit</artifactId>
390 <version>4.12</version>
394 <groupId>org.cassandraunit</groupId>
395 <artifactId>cassandra-unit-spring</artifactId>
396 <version>3.5.0.1</version>
400 <groupId>io.dropwizard.metrics</groupId>
401 <artifactId>metrics-core</artifactId>
404 <groupId>com.addthis.metrics</groupId>
405 <artifactId>reporter-config-base</artifactId>
410 <groupId>org.cassandraunit</groupId>
411 <artifactId>cassandra-unit-spring</artifactId>
412 <version>3.5.0.1</version>
416 <groupId>org.slf4j</groupId>
417 <artifactId>slf4j-log4j12</artifactId>
420 <groupId>ch.qos.logback</groupId>
421 <artifactId>logback-core</artifactId>
424 <groupId>ch.qos.logback</groupId>
425 <artifactId>logback-classic</artifactId>
428 <groupId>org.cassandraunit</groupId>
429 <artifactId>cassandra-unit</artifactId>
432 <groupId>io.dropwizard.metrics</groupId>
433 <artifactId>metrics-core</artifactId>
438 <groupId>org.cassandraunit</groupId>
439 <artifactId>cassandra-unit-shaded</artifactId>
440 <version>3.5.0.1</version>
444 <groupId>io.dropwizard.metrics</groupId>
445 <artifactId>metrics-core</artifactId>
446 <version>3.1.0</version>
449 <groupId>org.mockito</groupId>
450 <artifactId>mockito-core</artifactId>
451 <version>2.23.4</version>
455 <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jsr310 -->
457 <groupId>com.fasterxml.jackson.datatype</groupId>
458 <artifactId>jackson-datatype-jsr310</artifactId>
459 <version>2.9.8</version>
463 <groupId>com.fasterxml.jackson.core</groupId>
464 <artifactId>jackson-databind</artifactId>
465 <version>2.9.8</version>
468 <groupId>com.fasterxml.jackson.core</groupId>
469 <artifactId>jackson-core</artifactId>
470 <version>2.9.8</version>
473 <groupId>com.fasterxml.jackson.core</groupId>
474 <artifactId>jackson-annotations</artifactId>
475 <version>2.9.8</version>
478 <groupId>org.apache.httpcomponents</groupId>
479 <artifactId>httpclient</artifactId>
483 <groupId>io.swagger</groupId>
484 <artifactId>swagger-jersey2-jaxrs</artifactId>
485 <version>1.5.18</version>
488 <groupId>io.swagger</groupId>
489 <artifactId>swagger-jersey-jaxrs</artifactId>
490 <version>1.5.21</version>
493 <groupId>com.google.guava</groupId>
494 <artifactId>guava</artifactId>
497 <groupId>de.svenkubiak</groupId>
498 <artifactId>jBCrypt</artifactId>
499 <version>0.4.1</version>
502 <groupId>org.mindrot</groupId>
503 <artifactId>jbcrypt</artifactId>
504 <version>0.4</version>
507 <groupId>io.netty</groupId>
508 <artifactId>netty-handler</artifactId>
509 <version>4.1.33.Final</version>
512 <groupId>io.netty</groupId>
513 <artifactId>netty-buffer</artifactId>
514 <version>4.1.33.Final</version>
517 <groupId>io.netty</groupId>
518 <artifactId>netty-codec</artifactId>
519 <version>4.1.33.Final</version>
522 <groupId>io.netty</groupId>
523 <artifactId>netty-common</artifactId>
524 <version>4.1.33.Final</version>
527 <groupId>io.netty</groupId>
528 <artifactId>netty-resolver</artifactId>
529 <version>4.1.33.Final</version>
532 <groupId>io.netty</groupId>
533 <artifactId>netty-transport</artifactId>
534 <version>4.1.33.Final</version>
537 <groupId>org.onap.aaf.authz</groupId>
538 <artifactId>aaf-cadi-aaf</artifactId>
539 <version>2.1.7</version>
542 <groupId>log4j</groupId>
543 <artifactId>log4j</artifactId>
548 <groupId>org.onap.aaf.authz</groupId>
549 <artifactId>aaf-cadi-client</artifactId>
550 <version>2.1.7</version>
553 <groupId>org.onap.aaf.authz</groupId>
554 <artifactId>aaf-cadi-core</artifactId>
555 <version>2.1.7</version>
559 <groupId>com.google.code.gson</groupId>
560 <artifactId>gson</artifactId>
561 <version>2.8.5</version>
568 <groupId>org.apache.maven.plugins</groupId>
569 <artifactId>maven-javadoc-plugin</artifactId>
570 <version>2.10.3</version>
572 <author>true</author>
573 <breakiterator>true</breakiterator>
574 <version>true</version>
576 <link>https://docs.oracle.com/javase/7/docs/api/</link>
577 <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
578 <link>http://docs.oracle.com/javaee/7/api/</link>
583 <groupId>org.apache.maven.plugins</groupId>
584 <artifactId>maven-compiler-plugin</artifactId>
599 <groupId>io.fabric8</groupId>
600 <artifactId>docker-maven-plugin</artifactId>
601 <version>0.19.1</version>
603 <verbose>true</verbose>
604 <apiVersion>1.23</apiVersion>
605 <registry>nexus3.onap.org:10003</registry>
609 <name>onap/music/music_sb</name>
610 <alias>docker_music</alias>
612 <cleanup>true</cleanup>
614 <tag>${docker.tag}</tag>
615 <tag>${docker.latest.tag}</tag>
617 <dockerFileDir>${project.basedir}/distribution/music</dockerFileDir>
619 <descriptorRef>artifact</descriptorRef>
625 <name>onap/music/cassandra_3_11</name>
626 <alias>docker_cassandra_sec</alias>
628 <cleanup>true</cleanup>
630 <tag>${docker.tag}</tag>
631 <tag>${docker.latest.tag}</tag>
633 <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
636 <!-- Cassandra Job -->
638 <name>onap/music/cassandra_job</name>
639 <alias>docker_cassandra_job</alias>
641 <cleanup>true</cleanup>
643 <tag>${docker.tag}</tag>
644 <tag>${docker.latest.tag}</tag>
646 <dockerFileDir>${project.basedir}/distribution/cassandra_job</dockerFileDir>
650 <!-- <image> <name>onap/music/tomcat_music</name>
651 <alias>docker_tomcat</alias> <build> <cleanup>true</cleanup> <tags> <tag>8.5-${timestamp}</tag>
652 <tag>8.5-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/tomcat</dockerFileDir>
653 </build> </image>\ -->
658 <id>clean-images</id>
659 <phase>pre-clean</phase>
664 <removeAll>true</removeAll>
669 <id>generate-images</id>
670 <phase>package</phase>
677 <phase>deploy</phase>
682 <image>onap/music/music</image>
695 <name>attarch-releases</name>
696 <url>http://mavencentral.it.att.com:8084/nexus/content/repositories/attarch-releases</url>
701 <distributionManagement>
703 <id>ecomp-releases</id>
704 <name>Release Repository</name>
705 <url>${nexusproxy}/${releaseNexusPath}</url>
708 <id>ecomp-snapshots</id>
709 <name>Snapshot Repository</name>
710 <url>${nexusproxy}/${snapshotNexusPath}</url>
711 </snapshotRepository>
712 <!-- added for javadoc -->
715 <url>dav:${nexusproxy}${sitePath}</url>
717 </distributionManagement>