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.28-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-tomcat</artifactId>
238 <groupId>org.springframework.boot</groupId>
239 <artifactId>spring-boot-starter-test</artifactId>
243 <groupId>org.springframework.boot</groupId>
244 <artifactId>spring-boot-starter-actuator</artifactId>
247 <groupId>org.springframework</groupId>
248 <artifactId>spring-aop</artifactId>
249 <scope>compile</scope>
252 <groupId>org.springframework.boot</groupId>
253 <artifactId>spring-boot-autoconfigure</artifactId>
256 <groupId>org.springframework</groupId>
257 <artifactId>spring-aop</artifactId>
258 <scope>compile</scope>
261 <groupId>org.aspectj</groupId>
262 <artifactId>aspectjweaver</artifactId>
263 <scope>compile</scope>
268 <groupId>org.aspectj</groupId>
269 <artifactId>aspectjweaver</artifactId>
270 <scope>compile</scope>
276 <groupId>javax.servlet</groupId>
277 <artifactId>servlet-api</artifactId>
278 <version>2.4</version>
279 <scope>provided</scope>
282 <groupId>javax.servlet</groupId>
283 <artifactId>javax.servlet-api</artifactId>
284 <version>3.0.1</version>
285 <scope>provided</scope>
287 <!-- /Development -->
290 <groupId>ch.qos.logback</groupId>
291 <artifactId>logback-core</artifactId>
292 <version>1.2.3</version>
295 <groupId>org.slf4j</groupId>
296 <artifactId>slf4j-log4j12</artifactId>
301 <groupId>ch.qos.logback</groupId>
302 <artifactId>logback-classic</artifactId>
303 <version>1.2.3</version>
306 <groupId>org.slf4j</groupId>
307 <artifactId>slf4j-log4j12</artifactId>
312 <groupId>com.att.eelf</groupId>
313 <artifactId>eelf-core</artifactId>
314 <version>1.0.1-oss</version>
317 <groupId>org.powermock</groupId>
318 <artifactId>powermock-api-mockito</artifactId>
321 <groupId>org.powermock</groupId>
322 <artifactId>powermock-module-junit4</artifactId>
329 <groupId>io.dropwizard.metrics</groupId>
330 <artifactId>metrics-core</artifactId>
331 <version>4.1.0-rc3</version>
334 <groupId>com.datastax.cassandra</groupId>
335 <artifactId>cassandra-driver-core</artifactId>
336 <version>3.6.0</version>
339 <groupId>com.datastax.cassandra</groupId>
340 <artifactId>cassandra-driver-core</artifactId>
341 <version>${cassandra.version}</version>
346 <groupId>com.sun.jersey</groupId>
347 <artifactId>jersey-client</artifactId>
348 <version>${jersey1.version}</version>
351 <groupId>com.sun.jersey</groupId>
352 <artifactId>jersey-server</artifactId>
353 <version>${jersey1.version}</version>
356 <groupId>com.sun.jersey</groupId>
357 <artifactId>jersey-json</artifactId>
358 <version>${jersey1.version}</version>
361 <groupId>com.sun.jersey</groupId>
362 <artifactId>jersey-servlet</artifactId>
363 <version>${jersey1.version}</version>
368 <groupId>org.apache.commons</groupId>
369 <artifactId>commons-jcs-core</artifactId>
370 <version>2.2</version>
373 <groupId>commons-codec</groupId>
374 <artifactId>commons-codec</artifactId>
375 <version>1.11</version>
378 <groupId>org.apache.commons</groupId>
379 <artifactId>commons-lang3</artifactId>
380 <version>3.8</version>
384 <groupId>junit</groupId>
385 <artifactId>junit</artifactId>
386 <version>4.12</version>
390 <groupId>org.cassandraunit</groupId>
391 <artifactId>cassandra-unit-spring</artifactId>
392 <version>3.5.0.1</version>
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-spring</artifactId>
408 <version>3.5.0.1</version>
412 <groupId>org.slf4j</groupId>
413 <artifactId>slf4j-log4j12</artifactId>
416 <groupId>ch.qos.logback</groupId>
417 <artifactId>logback-core</artifactId>
420 <groupId>ch.qos.logback</groupId>
421 <artifactId>logback-classic</artifactId>
424 <groupId>org.cassandraunit</groupId>
425 <artifactId>cassandra-unit</artifactId>
428 <groupId>io.dropwizard.metrics</groupId>
429 <artifactId>metrics-core</artifactId>
434 <groupId>org.cassandraunit</groupId>
435 <artifactId>cassandra-unit-shaded</artifactId>
436 <version>3.5.0.1</version>
440 <groupId>io.dropwizard.metrics</groupId>
441 <artifactId>metrics-core</artifactId>
442 <version>3.1.0</version>
445 <groupId>org.mockito</groupId>
446 <artifactId>mockito-core</artifactId>
447 <version>2.23.4</version>
451 <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jsr310 -->
453 <groupId>com.fasterxml.jackson.datatype</groupId>
454 <artifactId>jackson-datatype-jsr310</artifactId>
455 <version>2.9.8</version>
459 <groupId>com.fasterxml.jackson.core</groupId>
460 <artifactId>jackson-databind</artifactId>
461 <version>2.9.8</version>
464 <groupId>com.fasterxml.jackson.core</groupId>
465 <artifactId>jackson-core</artifactId>
466 <version>2.9.8</version>
469 <groupId>com.fasterxml.jackson.core</groupId>
470 <artifactId>jackson-annotations</artifactId>
471 <version>2.9.8</version>
474 <groupId>org.apache.httpcomponents</groupId>
475 <artifactId>httpclient</artifactId>
479 <groupId>io.swagger</groupId>
480 <artifactId>swagger-jersey2-jaxrs</artifactId>
481 <version>1.5.18</version>
484 <groupId>io.swagger</groupId>
485 <artifactId>swagger-jersey-jaxrs</artifactId>
486 <version>1.5.21</version>
489 <groupId>com.google.guava</groupId>
490 <artifactId>guava</artifactId>
493 <groupId>de.svenkubiak</groupId>
494 <artifactId>jBCrypt</artifactId>
495 <version>0.4.1</version>
498 <groupId>org.mindrot</groupId>
499 <artifactId>jbcrypt</artifactId>
500 <version>0.4</version>
503 <groupId>io.netty</groupId>
504 <artifactId>netty-handler</artifactId>
505 <version>4.1.33.Final</version>
508 <groupId>io.netty</groupId>
509 <artifactId>netty-buffer</artifactId>
510 <version>4.1.33.Final</version>
513 <groupId>io.netty</groupId>
514 <artifactId>netty-codec</artifactId>
515 <version>4.1.33.Final</version>
518 <groupId>io.netty</groupId>
519 <artifactId>netty-common</artifactId>
520 <version>4.1.33.Final</version>
523 <groupId>io.netty</groupId>
524 <artifactId>netty-resolver</artifactId>
525 <version>4.1.33.Final</version>
528 <groupId>io.netty</groupId>
529 <artifactId>netty-transport</artifactId>
530 <version>4.1.33.Final</version>
533 <groupId>org.onap.aaf.authz</groupId>
534 <artifactId>aaf-cadi-aaf</artifactId>
535 <version>2.1.7</version>
538 <groupId>log4j</groupId>
539 <artifactId>log4j</artifactId>
544 <groupId>org.onap.aaf.authz</groupId>
545 <artifactId>aaf-cadi-client</artifactId>
546 <version>2.1.7</version>
549 <groupId>org.onap.aaf.authz</groupId>
550 <artifactId>aaf-cadi-core</artifactId>
551 <version>2.1.7</version>
555 <groupId>com.google.code.gson</groupId>
556 <artifactId>gson</artifactId>
557 <version>2.8.5</version>
564 <groupId>org.apache.maven.plugins</groupId>
565 <artifactId>maven-javadoc-plugin</artifactId>
566 <version>2.10.3</version>
568 <author>true</author>
569 <breakiterator>true</breakiterator>
570 <version>true</version>
572 <link>https://docs.oracle.com/javase/7/docs/api/</link>
573 <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
574 <link>http://docs.oracle.com/javaee/7/api/</link>
579 <groupId>org.apache.maven.plugins</groupId>
580 <artifactId>maven-compiler-plugin</artifactId>
595 <groupId>io.fabric8</groupId>
596 <artifactId>docker-maven-plugin</artifactId>
597 <version>0.19.1</version>
599 <verbose>true</verbose>
600 <apiVersion>1.23</apiVersion>
601 <registry>nexus3.onap.org:10003</registry>
605 <name>onap/music/music_sb</name>
606 <alias>docker_music</alias>
608 <cleanup>true</cleanup>
610 <tag>${docker.tag}</tag>
611 <tag>${docker.latest.tag}</tag>
613 <dockerFileDir>${project.basedir}/distribution/music</dockerFileDir>
615 <descriptorRef>artifact</descriptorRef>
621 <name>onap/music/cassandra_3_11</name>
622 <alias>docker_cassandra_sec</alias>
624 <cleanup>true</cleanup>
626 <tag>${docker.tag}</tag>
627 <tag>${docker.latest.tag}</tag>
629 <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
632 <!-- Cassandra Job -->
634 <name>onap/music/cassandra_job</name>
635 <alias>docker_cassandra_job</alias>
637 <cleanup>true</cleanup>
639 <tag>${docker.tag}</tag>
640 <tag>${docker.latest.tag}</tag>
642 <dockerFileDir>${project.basedir}/distribution/cassandra_job</dockerFileDir>
646 <!-- <image> <name>onap/music/tomcat_music</name>
647 <alias>docker_tomcat</alias> <build> <cleanup>true</cleanup> <tags> <tag>8.5-${timestamp}</tag>
648 <tag>8.5-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/tomcat</dockerFileDir>
649 </build> </image>\ -->
654 <id>clean-images</id>
655 <phase>pre-clean</phase>
660 <removeAll>true</removeAll>
665 <id>generate-images</id>
666 <phase>package</phase>
673 <phase>deploy</phase>
678 <image>onap/music/music</image>
690 <distributionManagement>
692 <id>ecomp-releases</id>
693 <name>Release Repository</name>
694 <url>${nexusproxy}/${releaseNexusPath}</url>
697 <id>ecomp-snapshots</id>
698 <name>Snapshot Repository</name>
699 <url>${nexusproxy}/${snapshotNexusPath}</url>
700 </snapshotRepository>
701 <!-- added for javadoc -->
704 <url>dav:${nexusproxy}${sitePath}</url>
706 </distributionManagement>