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.36-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}</finalName>
115 <sourceDirectory>src/main/java</sourceDirectory>
116 <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>
117 <testSourceDirectory>src/test/java</testSourceDirectory>
118 <testOutputDirectory>target/test-classes</testOutputDirectory>
119 <defaultGoal>validate</defaultGoal>
122 <directory>src/main/resources</directory>
123 <filtering>true</filtering>
125 <include>**/*.properties</include>
126 <include>**/*.xml</include>
127 <include>**/*.ccf</include>
133 <directory>${project.basedir}/src/test/resources</directory>
136 <directory>${project.basedir}/src/main/resources</directory>
141 <groupId>org.springframework.boot</groupId>
142 <artifactId>spring-boot-maven-plugin</artifactId>
143 <version>2.1.1.RELEASE</version>
145 <mainClass>org.onap.music.MusicApplication</mainClass>
146 <outputDirectory>./distribution/music/</outputDirectory>
147 <addResources>true</addResources>
148 <finalName>${project.artifactId}-SB</finalName>
152 <phase>install</phase>
154 <goal>repackage</goal>
161 <artifactId>maven-war-plugin</artifactId>
162 <version>2.4</version>
164 <warSourceDirectory>WebContent</warSourceDirectory>
165 <failOnMissingWebXml>false</failOnMissingWebXml>
170 <groupId>org.apache.maven.plugins</groupId>
171 <artifactId>maven-checkstyle-plugin</artifactId>
173 <skip>${maven.check.skip}</skip>
178 <groupId>org.apache.maven.plugins</groupId>
179 <artifactId>maven-jar-plugin</artifactId>
180 <version>2.4</version>
184 <phase>compile</phase>
190 <!--<exclude>**/*.xml</exclude>
191 <exclude>**/*.properties</exclude>-->
192 <exclude>**/Sample*</exclude>
199 <groupId>org.apache.maven.plugins</groupId>
200 <artifactId>maven-install-plugin</artifactId>
201 <version>2.4</version>
205 <phase>install</phase>
207 <goal>install-file</goal>
210 <packaging>jar</packaging>
211 <artifactId>${project.artifactId}</artifactId>
212 <groupId>${project.groupId}</groupId>
213 <version>${project.version}</version>
214 <file>${project.build.directory}/${project.artifactId}.jar</file>
219 <phase>install</phase>
221 <goal>install-file</goal>
224 <packaging>jar</packaging>
225 <artifactId>${project.artifactId}-SB</artifactId>
226 <groupId>${project.groupId}</groupId>
227 <version>${project.version}</version>
228 <file>${project.basedir}/distribution/music/${project.artifactId}-SB.jar</file>
239 <groupId>org.springframework.boot</groupId>
240 <artifactId>spring-boot-starter</artifactId>
243 <groupId>org.springframework.data</groupId>
244 <artifactId>spring-data-cassandra</artifactId>
247 <groupId>org.springframework.boot</groupId>
248 <artifactId>spring-boot-starter-jersey</artifactId>
251 <groupId>org.springframework.boot</groupId>
252 <artifactId>spring-boot-starter-web</artifactId>
255 <groupId>org.springframework.boot</groupId>
256 <artifactId>spring-boot-starter-tomcat</artifactId>
259 <groupId>org.springframework.boot</groupId>
260 <artifactId>spring-boot-starter-test</artifactId>
264 <groupId>org.springframework</groupId>
265 <artifactId>spring-aop</artifactId>
266 <scope>compile</scope>
269 <groupId>org.springframework.boot</groupId>
270 <artifactId>spring-boot-autoconfigure</artifactId>
273 <groupId>org.aspectj</groupId>
274 <artifactId>aspectjweaver</artifactId>
275 <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>${cassandra.version}</version>
343 <groupId>com.datastax.cassandra</groupId>
344 <artifactId>cassandra-driver-extras</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>
389 <groupId>junit</groupId>
390 <artifactId>junit</artifactId>
391 <version>4.12</version>
395 <groupId>org.cassandraunit</groupId>
396 <artifactId>cassandra-unit-spring</artifactId>
397 <version>3.5.0.1</version>
401 <groupId>org.slf4j</groupId>
402 <artifactId>slf4j-log4j12</artifactId>
405 <groupId>ch.qos.logback</groupId>
406 <artifactId>logback-core</artifactId>
409 <groupId>ch.qos.logback</groupId>
410 <artifactId>logback-classic</artifactId>
413 <groupId>org.cassandraunit</groupId>
414 <artifactId>cassandra-unit</artifactId>
417 <groupId>io.dropwizard.metrics</groupId>
418 <artifactId>metrics-core</artifactId>
421 <groupId>com.addthis.metrics</groupId>
422 <artifactId>reporter-config-base</artifactId>
427 <groupId>org.cassandraunit</groupId>
428 <artifactId>cassandra-unit-shaded</artifactId>
429 <version>3.5.0.1</version>
433 <groupId>org.mockito</groupId>
434 <artifactId>mockito-core</artifactId>
435 <version>2.23.4</version>
440 <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jsr310 -->
442 <groupId>com.fasterxml.jackson.datatype</groupId>
443 <artifactId>jackson-datatype-jsr310</artifactId>
444 <version>2.9.9</version>
447 <groupId>com.fasterxml.jackson.core</groupId>
448 <artifactId>jackson-databind</artifactId>
449 <version>2.9.9.2</version>
452 <groupId>com.fasterxml.jackson.core</groupId>
453 <artifactId>jackson-core</artifactId>
454 <version>2.9.9</version>
457 <groupId>com.fasterxml.jackson.core</groupId>
458 <artifactId>jackson-annotations</artifactId>
459 <version>2.9.9</version>
462 <groupId>org.apache.httpcomponents</groupId>
463 <artifactId>httpclient</artifactId>
466 <groupId>io.swagger</groupId>
467 <artifactId>swagger-jersey-jaxrs</artifactId>
468 <version>1.5.22</version>
471 <groupId>com.google.guava</groupId>
472 <artifactId>guava</artifactId>
475 <groupId>de.svenkubiak</groupId>
476 <artifactId>jBCrypt</artifactId>
477 <version>0.4.1</version>
480 <groupId>io.netty</groupId>
481 <artifactId>netty-handler</artifactId>
482 <version>4.1.33.Final</version>
485 <groupId>io.netty</groupId>
486 <artifactId>netty-buffer</artifactId>
487 <version>4.1.33.Final</version>
490 <groupId>io.netty</groupId>
491 <artifactId>netty-codec</artifactId>
492 <version>4.1.33.Final</version>
495 <groupId>io.netty</groupId>
496 <artifactId>netty-common</artifactId>
497 <version>4.1.33.Final</version>
500 <groupId>io.netty</groupId>
501 <artifactId>netty-resolver</artifactId>
502 <version>4.1.33.Final</version>
505 <groupId>io.netty</groupId>
506 <artifactId>netty-transport</artifactId>
507 <version>4.1.33.Final</version>
510 <groupId>org.onap.aaf.authz</groupId>
511 <artifactId>aaf-cadi-aaf</artifactId>
512 <version>2.1.7</version>
515 <groupId>log4j</groupId>
516 <artifactId>log4j</artifactId>
521 <groupId>org.onap.aaf.authz</groupId>
522 <artifactId>aaf-cadi-client</artifactId>
523 <version>2.1.7</version>
526 <groupId>org.onap.aaf.authz</groupId>
527 <artifactId>aaf-cadi-core</artifactId>
528 <version>2.1.7</version>
531 <groupId>com.google.code.gson</groupId>
532 <artifactId>gson</artifactId>
533 <version>2.8.5</version>
540 <groupId>org.apache.maven.plugins</groupId>
541 <artifactId>maven-javadoc-plugin</artifactId>
542 <version>2.10.3</version>
544 <author>true</author>
545 <breakiterator>true</breakiterator>
546 <version>true</version>
548 <link>https://docs.oracle.com/javase/7/docs/api/</link>
549 <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
550 <link>http://docs.oracle.com/javaee/7/api/</link>
555 <groupId>org.apache.maven.plugins</groupId>
556 <artifactId>maven-compiler-plugin</artifactId>
571 <groupId>io.fabric8</groupId>
572 <artifactId>docker-maven-plugin</artifactId>
573 <version>0.19.1</version>
575 <verbose>true</verbose>
576 <apiVersion>1.23</apiVersion>
577 <registry>nexus3.onap.org:10003</registry>
581 <name>onap/music/music_sb</name>
582 <alias>docker_music</alias>
584 <cleanup>true</cleanup>
586 <tag>${docker.tag}</tag>
587 <tag>${docker.latest.tag}</tag>
589 <dockerFileDir>${project.basedir}/distribution/music</dockerFileDir>
591 <descriptorRef>artifact</descriptorRef>
597 <name>onap/music/cassandra_3_11</name>
598 <alias>docker_cassandra_sec</alias>
600 <cleanup>true</cleanup>
602 <tag>${docker.tag}</tag>
603 <tag>${docker.latest.tag}</tag>
605 <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
608 <!-- Cassandra Job -->
610 <name>onap/music/cassandra_job</name>
611 <alias>docker_cassandra_job</alias>
613 <cleanup>true</cleanup>
615 <tag>${docker.tag}</tag>
616 <tag>${docker.latest.tag}</tag>
618 <dockerFileDir>${project.basedir}/distribution/cassandra_job</dockerFileDir>
622 <!-- <image> <name>onap/music/tomcat_music</name>
623 <alias>docker_tomcat</alias> <build> <cleanup>true</cleanup> <tags> <tag>8.5-${timestamp}</tag>
624 <tag>8.5-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/tomcat</dockerFileDir>
625 </build> </image>\ -->
630 <id>clean-images</id>
631 <phase>pre-clean</phase>
636 <removeAll>true</removeAll>
641 <id>generate-images</id>
642 <phase>package</phase>
649 <phase>deploy</phase>
654 <image>onap/music/music</image>
666 <distributionManagement>
668 <id>ecomp-releases</id>
669 <name>Release Repository</name>
670 <url>${nexusproxy}/${releaseNexusPath}</url>
673 <id>ecomp-snapshots</id>
674 <name>Snapshot Repository</name>
675 <url>${nexusproxy}/${snapshotNexusPath}</url>
676 </snapshotRepository>
677 <!-- added for javadoc -->
680 <url>dav:${nexusproxy}${sitePath}</url>
682 </distributionManagement>