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.18-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>1.2.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 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
74 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
75 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
76 <sitePath>/content/sites/site/org/onap/music/${project.version}</sitePath>
78 <timestamp>${maven.build.timestamp}</timestamp>
79 <maven.build.timestamp.format>yyyy.MM.dd.HH.mm</maven.build.timestamp.format>
81 <docker.tag>${project.version}-${timestamp}</docker.tag>
82 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
83 <maven.compiler.source>1.8</maven.compiler.source>
84 <maven.compiler.target>1.8</maven.compiler.target>
89 <id>onap-releases</id>
90 <name>ONAP - Release Repository</name>
91 <url>${nexusproxy}/${releaseNexusPath}</url>
95 <name>ONAP - Staging Repository</name>
96 <url>${nexusproxy}/${stagingNexusPath}</url>
99 <id>onap-snapshots</id>
100 <name>ONAP - Snapshot Repository</name>
101 <url>${nexusproxy}/${snapshotNexusPath}</url>
105 <name>ONAP public Repository</name>
106 <url>${nexusproxy}/content/groups/public</url>
109 <!-- SWM repository has EELF jars -->
110 <id>att-cadi-repo</id>
111 <name>ATT CADI Repository</name>
112 <url>http://mavencentral.it.att.com:8084/nexus/content/repositories/attarch-releases/</url>
118 <!-- <finalName>${project.artifactId}-${project.version}-${timestamp}</finalName>-->
119 <finalName>${project.artifactId}</finalName>
120 <sourceDirectory>src/main/java</sourceDirectory>
121 <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>
122 <testSourceDirectory>src/test/java</testSourceDirectory>
123 <testOutputDirectory>target/test-classes</testOutputDirectory>
124 <defaultGoal>validate</defaultGoal>
127 <directory>src/main/resources</directory>
128 <filtering>true</filtering>
130 <include>**/*.properties</include>
131 <include>**/*.xml</include>
132 <include>**/*.ccf</include>
138 <groupId>org.springframework.boot</groupId>
139 <artifactId>spring-boot-maven-plugin</artifactId>
141 <mainClass>org.onap.music.MusicApplication</mainClass>
142 <outputDirectory>./distribution/music/</outputDirectory>
143 <addResources>true</addResources>
148 <goal>repackage</goal>
155 <artifactId>maven-war-plugin</artifactId>
156 <version>2.4</version>
158 <warSourceDirectory>WebContent</warSourceDirectory>
159 <failOnMissingWebXml>false</failOnMissingWebXml>
164 <groupId>org.apache.maven.plugins</groupId>
165 <artifactId>maven-jar-plugin</artifactId>
166 <version>2.4</version>
170 <phase>compile</phase>
176 <!--<exclude>**/*.xml</exclude>
177 <exclude>**/*.properties</exclude>-->
178 <exclude>**/Sample*</exclude>
185 <groupId>org.apache.maven.plugins</groupId>
186 <artifactId>maven-install-plugin</artifactId>
187 <version>2.4</version>
190 <phase>install</phase>
192 <goal>install-file</goal>
195 <packaging>jar</packaging>
196 <artifactId>${project.artifactId}</artifactId>
197 <groupId>${project.groupId}</groupId>
198 <version>${project.version}</version>
199 <file>${project.build.directory}/${project.artifactId}.jar</file>
210 <groupId>org.springframework.boot</groupId>
211 <artifactId>spring-boot-starter</artifactId>
214 <groupId>org.springframework.data</groupId>
215 <artifactId>spring-data-cassandra</artifactId>
218 <groupId>org.springframework.boot</groupId>
219 <artifactId>spring-boot-starter-jersey</artifactId>
222 <groupId>org.springframework.boot</groupId>
223 <artifactId>spring-boot-starter-tomcat</artifactId>
226 <groupId>org.springframework.boot</groupId>
227 <artifactId>spring-boot-starter-test</artifactId>
231 <groupId>org.springframework.boot</groupId>
232 <artifactId>spring-boot-starter-actuator</artifactId>
234 <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
236 <groupId>org.springframework</groupId>
237 <artifactId>spring-aop</artifactId>
238 <scope>compile</scope>
242 <groupId>io.springfox</groupId>
243 <artifactId>springfox-swagger2</artifactId>
244 <version>2.8.0</version>
245 <scope>compile</scope>
249 <groupId>io.springfox</groupId>
250 <artifactId>springfox-swagger-ui</artifactId>
251 <version>2.8.0</version>
252 <scope>compile</scope>
257 <groupId>org.aspectj</groupId>
258 <artifactId>aspectjweaver</artifactId>
259 <scope>compile</scope>
265 <groupId>javax.servlet</groupId>
266 <artifactId>servlet-api</artifactId>
267 <version>2.4</version>
268 <scope>provided</scope>
271 <groupId>org.springframework.boot</groupId>
272 <artifactId>spring-boot-autoconfigure</artifactId>
275 <groupId>javax.servlet</groupId>
276 <artifactId>javax.servlet-api</artifactId>
277 <version>3.0.1</version>
278 <scope>provided</scope>
280 <!-- /Development -->
283 <groupId>ch.qos.logback</groupId>
284 <artifactId>logback-core</artifactId>
285 <version>1.2.3</version>
288 <groupId>org.slf4j</groupId>
289 <artifactId>slf4j-log4j12</artifactId>
294 <groupId>ch.qos.logback</groupId>
295 <artifactId>logback-classic</artifactId>
296 <version>1.2.3</version>
299 <groupId>org.slf4j</groupId>
300 <artifactId>slf4j-log4j12</artifactId>
305 <groupId>com.att.eelf</groupId>
306 <artifactId>eelf-core</artifactId>
307 <version>1.0.1-oss</version>
310 <groupId>org.powermock</groupId>
311 <artifactId>powermock-api-mockito</artifactId>
314 <groupId>org.powermock</groupId>
315 <artifactId>powermock-module-junit4</artifactId>
322 <groupId>io.dropwizard.metrics</groupId>
323 <artifactId>metrics-core</artifactId>
324 <version>4.1.0-rc3</version>
327 <groupId>com.datastax.cassandra</groupId>
328 <artifactId>cassandra-driver-core</artifactId>
329 <version>3.6.0</version>
332 <groupId>com.datastax.cassandra</groupId>
333 <artifactId>cassandra-driver-core</artifactId>
334 <version>${cassandra.version}</version>
337 <groupId>io.netty</groupId>
338 <artifactId>*</artifactId>
345 <groupId>com.sun.jersey</groupId>
346 <artifactId>jersey-client</artifactId>
347 <version>${jersey1.version}</version>
350 <groupId>com.sun.jersey</groupId>
351 <artifactId>jersey-server</artifactId>
352 <version>${jersey1.version}</version>
355 <groupId>com.sun.jersey</groupId>
356 <artifactId>jersey-json</artifactId>
357 <version>${jersey1.version}</version>
360 <groupId>com.sun.jersey</groupId>
361 <artifactId>jersey-servlet</artifactId>
362 <version>${jersey1.version}</version>
367 <groupId>org.apache.commons</groupId>
368 <artifactId>commons-jcs-core</artifactId>
369 <version>2.2</version>
372 <groupId>commons-codec</groupId>
373 <artifactId>commons-codec</artifactId>
374 <version>1.11</version>
377 <groupId>org.apache.commons</groupId>
378 <artifactId>commons-lang3</artifactId>
379 <version>3.8</version>
383 <groupId>junit</groupId>
384 <artifactId>junit</artifactId>
385 <version>4.12</version>
389 <groupId>org.cassandraunit</groupId>
390 <artifactId>cassandra-unit</artifactId>
391 <version>3.3.0.2</version>
395 <groupId>io.dropwizard.metrics</groupId>
396 <artifactId>metrics-core</artifactId>
399 <groupId>com.addthis.metrics</groupId>
400 <artifactId>reporter-config-base</artifactId>
405 <groupId>org.cassandraunit</groupId>
406 <artifactId>cassandra-unit-spring</artifactId>
407 <version>3.5.0.1</version>
411 <groupId>org.slf4j</groupId>
412 <artifactId>slf4j-log4j12</artifactId>
415 <groupId>ch.qos.logback</groupId>
416 <artifactId>logback-core</artifactId>
419 <groupId>ch.qos.logback</groupId>
420 <artifactId>logback-classic</artifactId>
423 <groupId>org.cassandraunit</groupId>
424 <artifactId>cassandra-unit</artifactId>
427 <groupId>io.dropwizard.metrics</groupId>
428 <artifactId>metrics-core</artifactId>
433 <groupId>org.cassandraunit</groupId>
434 <artifactId>cassandra-unit-shaded</artifactId>
435 <version>3.5.0.1</version>
439 <groupId>io.dropwizard.metrics</groupId>
440 <artifactId>metrics-core</artifactId>
441 <version>3.1.0</version>
444 <groupId>org.apache.curator</groupId>
445 <artifactId>curator-test</artifactId>
446 <version>2.3.0</version>
449 <groupId>org.apache.zookeeper</groupId>
450 <artifactId>zookeeper</artifactId>
453 <groupId>org.slf4j</groupId>
454 <artifactId>slf4j-log4j12</artifactId>
460 <groupId>org.mockito</groupId>
461 <artifactId>mockito-core</artifactId>
462 <version>2.23.4</version>
467 <groupId>com.fasterxml.jackson.core</groupId>
468 <artifactId>jackson-databind</artifactId>
471 <groupId>com.fasterxml.jackson.core</groupId>
472 <artifactId>jackson-core</artifactId>
475 <groupId>com.fasterxml.jackson.core</groupId>
476 <artifactId>jackson-annotations</artifactId>
479 <groupId>org.apache.httpcomponents</groupId>
480 <artifactId>httpclient</artifactId>
483 <groupId>io.swagger</groupId>
484 <artifactId>swagger-jersey-jaxrs</artifactId>
485 <version>1.5.21</version>
488 <groupId>com.google.guava</groupId>
489 <artifactId>guava</artifactId>
492 <groupId>org.mindrot</groupId>
493 <artifactId>jbcrypt</artifactId>
494 <version>0.4</version>
497 <groupId>org.onap.aaf.authz</groupId>
498 <artifactId>aaf-cadi-aaf</artifactId>
499 <version>2.1.7</version>
502 <groupId>org.onap.aaf.authz</groupId>
503 <artifactId>aaf-cadi-client</artifactId>
504 <version>2.1.7</version>
507 <groupId>org.onap.aaf.authz</groupId>
508 <artifactId>aaf-cadi-core</artifactId>
509 <version>2.1.7</version>
513 <groupId>com.google.code.gson</groupId>
514 <artifactId>gson</artifactId>
515 <version>2.8.5</version>
522 <groupId>org.apache.maven.plugins</groupId>
523 <artifactId>maven-javadoc-plugin</artifactId>
524 <version>2.10.3</version>
526 <author>true</author>
527 <breakiterator>true</breakiterator>
528 <version>true</version>
530 <link>https://docs.oracle.com/javase/7/docs/api/</link>
531 <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
532 <link>http://docs.oracle.com/javaee/7/api/</link>
537 <groupId>org.apache.maven.plugins</groupId>
538 <artifactId>maven-compiler-plugin</artifactId>
553 <groupId>io.fabric8</groupId>
554 <artifactId>docker-maven-plugin</artifactId>
555 <version>0.19.1</version>
557 <verbose>true</verbose>
558 <apiVersion>1.23</apiVersion>
559 <registry>nexus3.onap.org:10003</registry>
563 <name>onap/music/music_sb</name>
564 <alias>docker_music</alias>
566 <cleanup>true</cleanup>
568 <tag>${docker.tag}</tag>
569 <tag>${docker.latest.tag}</tag>
571 <dockerFileDir>${project.basedir}/distribution/music</dockerFileDir>
573 <descriptorRef>artifact</descriptorRef>
579 <name>onap/music/cassandra_3_11</name>
580 <alias>docker_cassandra_sec</alias>
582 <cleanup>true</cleanup>
584 <tag>${docker.tag}</tag>
585 <tag>${docker.latest.tag}</tag>
587 <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
590 <!-- Cassandra Job -->
592 <name>onap/music/cassandra_job</name>
593 <alias>docker_cassandra_job</alias>
595 <cleanup>true</cleanup>
597 <tag>${docker.tag}</tag>
598 <tag>${docker.latest.tag}</tag>
600 <dockerFileDir>${project.basedir}/distribution/cassandra_job</dockerFileDir>
605 <name>onap/music/musictrigger</name>
606 <alias>docker_trigger</alias>
608 <cleanup>true</cleanup>
610 <tag>${docker.tag}</tag>
611 <tag>${docker.latest.tag}</tag>
613 <dockerFileDir>${project.basedir}/distribution/trigger</dockerFileDir>
617 <!-- <image> <name>onap/music/tomcat_music</name>
618 <alias>docker_tomcat</alias> <build> <cleanup>true</cleanup> <tags> <tag>8.5-${timestamp}</tag>
619 <tag>8.5-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/tomcat</dockerFileDir>
620 </build> </image>\ -->
625 <id>clean-images</id>
626 <phase>pre-clean</phase>
631 <removeAll>true</removeAll>
636 <id>generate-images</id>
637 <phase>package</phase>
644 <phase>deploy</phase>
649 <image>onap/music/music</image>
662 <name>attarch-releases</name>
663 <url>http://mavencentral.it.att.com:8084/nexus/content/repositories/attarch-releases</url>
668 <distributionManagement>
670 <id>ecomp-releases</id>
671 <name>Release Repository</name>
672 <url>${nexusproxy}/${releaseNexusPath}</url>
675 <id>ecomp-snapshots</id>
676 <name>Snapshot Repository</name>
677 <url>${nexusproxy}/${snapshotNexusPath}</url>
678 </snapshotRepository>
679 <!-- added for javadoc -->
682 <url>dav:${nexusproxy}${sitePath}</url>
684 </distributionManagement>