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>
68 <zookeeper.version>3.4.11</zookeeper.version>
70 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
71 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
73 <nexusproxy>https://nexus.onap.org</nexusproxy>
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>
82 <docker.tag>${project.version}-${timestamp}</docker.tag>
83 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
84 <maven.compiler.source>1.8</maven.compiler.source>
85 <maven.compiler.target>1.8</maven.compiler.target>
90 <id>onap-releases</id>
91 <name>ONAP - Release Repository</name>
92 <url>${nexusproxy}/${releaseNexusPath}</url>
96 <name>ONAP - Staging Repository</name>
97 <url>${nexusproxy}/${stagingNexusPath}</url>
100 <id>onap-snapshots</id>
101 <name>ONAP - Snapshot Repository</name>
102 <url>${nexusproxy}/${snapshotNexusPath}</url>
106 <name>ONAP public Repository</name>
107 <url>${nexusproxy}/content/groups/public</url>
110 <!-- SWM repository has EELF jars -->
111 <id>att-cadi-repo</id>
112 <name>ATT CADI Repository</name>
113 <url>http://mavencentral.it.att.com:8084/nexus/content/repositories/attarch-releases/</url>
119 <!-- <finalName>${project.artifactId}-${project.version}-${timestamp}</finalName>-->
120 <finalName>${project.artifactId}</finalName>
121 <sourceDirectory>src/main/java</sourceDirectory>
122 <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>
123 <testSourceDirectory>src/test/java</testSourceDirectory>
124 <testOutputDirectory>target/test-classes</testOutputDirectory>
125 <defaultGoal>validate</defaultGoal>
128 <directory>src/main/resources</directory>
129 <filtering>true</filtering>
131 <include>**/*.properties</include>
132 <include>**/*.xml</include>
133 <include>**/*.ccf</include>
139 <groupId>org.springframework.boot</groupId>
140 <artifactId>spring-boot-maven-plugin</artifactId>
142 <mainClass>org.onap.music.MusicApplication</mainClass>
143 <outputDirectory>./distribution/music/</outputDirectory>
144 <addResources>true</addResources>
149 <goal>repackage</goal>
156 <artifactId>maven-war-plugin</artifactId>
157 <version>2.4</version>
159 <warSourceDirectory>WebContent</warSourceDirectory>
160 <failOnMissingWebXml>false</failOnMissingWebXml>
165 <groupId>org.apache.maven.plugins</groupId>
166 <artifactId>maven-jar-plugin</artifactId>
167 <version>2.4</version>
171 <phase>compile</phase>
177 <!--<exclude>**/*.xml</exclude>
178 <exclude>**/*.properties</exclude>-->
179 <exclude>**/Sample*</exclude>
186 <groupId>org.apache.maven.plugins</groupId>
187 <artifactId>maven-install-plugin</artifactId>
188 <version>2.4</version>
191 <phase>install</phase>
193 <goal>install-file</goal>
196 <packaging>jar</packaging>
197 <artifactId>${project.artifactId}</artifactId>
198 <groupId>${project.groupId}</groupId>
199 <version>${project.version}</version>
200 <file>${project.build.directory}/${project.artifactId}.jar</file>
211 <groupId>org.springframework.boot</groupId>
212 <artifactId>spring-boot-starter</artifactId>
215 <groupId>org.springframework.data</groupId>
216 <artifactId>spring-data-cassandra</artifactId>
219 <groupId>org.springframework.boot</groupId>
220 <artifactId>spring-boot-starter-jersey</artifactId>
223 <groupId>org.springframework.boot</groupId>
224 <artifactId>spring-boot-starter-tomcat</artifactId>
227 <groupId>org.springframework.boot</groupId>
228 <artifactId>spring-boot-starter-test</artifactId>
232 <groupId>org.springframework.boot</groupId>
233 <artifactId>spring-boot-starter-actuator</artifactId>
235 <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
237 <groupId>org.springframework</groupId>
238 <artifactId>spring-aop</artifactId>
239 <scope>compile</scope>
243 <groupId>io.springfox</groupId>
244 <artifactId>springfox-swagger2</artifactId>
245 <version>2.8.0</version>
246 <scope>compile</scope>
250 <groupId>io.springfox</groupId>
251 <artifactId>springfox-swagger-ui</artifactId>
252 <version>2.8.0</version>
253 <scope>compile</scope>
258 <groupId>org.aspectj</groupId>
259 <artifactId>aspectjweaver</artifactId>
260 <scope>compile</scope>
266 <groupId>javax.servlet</groupId>
267 <artifactId>servlet-api</artifactId>
268 <version>2.4</version>
269 <scope>provided</scope>
272 <groupId>org.springframework.boot</groupId>
273 <artifactId>spring-boot-autoconfigure</artifactId>
276 <groupId>javax.servlet</groupId>
277 <artifactId>javax.servlet-api</artifactId>
278 <version>3.0.1</version>
279 <scope>provided</scope>
281 <!-- /Development -->
284 <groupId>ch.qos.logback</groupId>
285 <artifactId>logback-core</artifactId>
286 <version>1.2.3</version>
289 <groupId>org.slf4j</groupId>
290 <artifactId>slf4j-log4j12</artifactId>
295 <groupId>ch.qos.logback</groupId>
296 <artifactId>logback-classic</artifactId>
297 <version>1.2.3</version>
300 <groupId>org.slf4j</groupId>
301 <artifactId>slf4j-log4j12</artifactId>
306 <groupId>com.att.eelf</groupId>
307 <artifactId>eelf-core</artifactId>
308 <version>1.0.1-oss</version>
313 <groupId>com.codahale.metrics</groupId>
314 <artifactId>metrics-core</artifactId>
315 <version>3.0.2</version>
318 <groupId>io.dropwizard.metrics</groupId>
319 <artifactId>metrics-core</artifactId>
320 <version>4.1.0-rc3</version>
323 <groupId>com.datastax.cassandra</groupId>
324 <artifactId>cassandra-driver-core</artifactId>
325 <version>3.6.0</version>
328 <groupId>com.datastax.cassandra</groupId>
329 <artifactId>cassandra-driver-core</artifactId>
330 <version>${cassandra.version}</version>
333 <groupId>io.netty</groupId>
334 <artifactId>*</artifactId>
341 <groupId>org.apache.zookeeper</groupId>
342 <artifactId>zookeeper</artifactId>
343 <version>${zookeeper.version}</version>
346 <groupId>org.slf4j</groupId>
347 <artifactId>slf4j-log4j12</artifactId>
354 <groupId>com.sun.jersey</groupId>
355 <artifactId>jersey-client</artifactId>
356 <version>${jersey1.version}</version>
359 <groupId>com.sun.jersey</groupId>
360 <artifactId>jersey-server</artifactId>
361 <version>${jersey1.version}</version>
364 <groupId>com.sun.jersey</groupId>
365 <artifactId>jersey-json</artifactId>
366 <version>${jersey1.version}</version>
369 <groupId>com.sun.jersey</groupId>
370 <artifactId>jersey-servlet</artifactId>
371 <version>${jersey1.version}</version>
376 <groupId>org.apache.commons</groupId>
377 <artifactId>commons-jcs-core</artifactId>
378 <version>2.2</version>
381 <groupId>commons-codec</groupId>
382 <artifactId>commons-codec</artifactId>
383 <version>1.11</version>
386 <groupId>org.apache.commons</groupId>
387 <artifactId>commons-lang3</artifactId>
388 <version>3.8</version>
392 <groupId>junit</groupId>
393 <artifactId>junit</artifactId>
394 <version>4.12</version>
398 <groupId>org.cassandraunit</groupId>
399 <artifactId>cassandra-unit</artifactId>
400 <version>3.3.0.2</version>
404 <groupId>io.dropwizard.metrics</groupId>
405 <artifactId>metrics-core</artifactId>
408 <groupId>com.addthis.metrics</groupId>
409 <artifactId>reporter-config-base</artifactId>
414 <groupId>org.cassandraunit</groupId>
415 <artifactId>cassandra-unit-spring</artifactId>
416 <version>3.5.0.1</version>
421 <groupId>org.cassandraunit</groupId>
423 <artifactId>cassandra-unit</artifactId>
429 <groupId>org.cassandraunit</groupId>
430 <artifactId>cassandra-unit-shaded</artifactId>
431 <version>3.5.0.1</version>
435 <groupId>org.apache.curator</groupId>
436 <artifactId>curator-test</artifactId>
437 <version>2.3.0</version>
440 <groupId>org.apache.zookeeper</groupId>
441 <artifactId>zookeeper</artifactId>
444 <groupId>org.slf4j</groupId>
445 <artifactId>slf4j-log4j12</artifactId>
451 <groupId>org.mockito</groupId>
452 <artifactId>mockito-all</artifactId>
453 <version>1.9.0</version>
458 <groupId>com.fasterxml.jackson.core</groupId>
459 <artifactId>jackson-databind</artifactId>
462 <groupId>com.fasterxml.jackson.core</groupId>
463 <artifactId>jackson-core</artifactId>
466 <groupId>com.fasterxml.jackson.core</groupId>
467 <artifactId>jackson-annotations</artifactId>
470 <groupId>org.apache.httpcomponents</groupId>
471 <artifactId>httpclient</artifactId>
474 <groupId>io.swagger</groupId>
475 <artifactId>swagger-jersey-jaxrs</artifactId>
476 <version>1.5.21</version>
479 <groupId>com.google.guava</groupId>
480 <artifactId>guava</artifactId>
483 <groupId>org.mindrot</groupId>
484 <artifactId>jbcrypt</artifactId>
485 <version>0.4</version>
488 <groupId>org.onap.aaf.authz</groupId>
489 <artifactId>aaf-cadi-aaf</artifactId>
490 <version>2.1.7</version>
493 <groupId>org.onap.aaf.authz</groupId>
494 <artifactId>aaf-cadi-client</artifactId>
495 <version>2.1.7</version>
498 <groupId>org.onap.aaf.authz</groupId>
499 <artifactId>aaf-cadi-core</artifactId>
500 <version>2.1.7</version>
504 <groupId>com.google.code.gson</groupId>
505 <artifactId>gson</artifactId>
506 <version>2.8.5</version>
513 <groupId>org.apache.maven.plugins</groupId>
514 <artifactId>maven-javadoc-plugin</artifactId>
515 <version>2.10.3</version>
517 <author>true</author>
518 <breakiterator>true</breakiterator>
519 <version>true</version>
521 <link>https://docs.oracle.com/javase/7/docs/api/</link>
522 <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
523 <link>http://docs.oracle.com/javaee/7/api/</link>
528 <groupId>org.apache.maven.plugins</groupId>
529 <artifactId>maven-compiler-plugin</artifactId>
544 <groupId>io.fabric8</groupId>
545 <artifactId>docker-maven-plugin</artifactId>
546 <version>0.19.1</version>
548 <verbose>true</verbose>
549 <apiVersion>1.23</apiVersion>
550 <registry>nexus3.onap.org:10003</registry>
554 <name>onap/music/music_sb</name>
555 <alias>docker_music</alias>
557 <cleanup>true</cleanup>
559 <tag>${docker.tag}</tag>
560 <tag>${docker.latest.tag}</tag>
562 <dockerFileDir>${project.basedir}/distribution/music</dockerFileDir>
564 <descriptorRef>artifact</descriptorRef>
570 <name>onap/music/cassandra_3_11</name>
571 <alias>docker_cassandra_sec</alias>
573 <cleanup>true</cleanup>
575 <tag>${docker.tag}</tag>
576 <tag>${docker.latest.tag}</tag>
578 <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
581 <!-- Cassandra Job -->
583 <name>onap/music/cassandra_job</name>
584 <alias>docker_cassandra_job</alias>
586 <cleanup>true</cleanup>
588 <tag>${docker.tag}</tag>
589 <tag>${docker.latest.tag}</tag>
591 <dockerFileDir>${project.basedir}/distribution/cassandra_job</dockerFileDir>
596 <name>onap/music/musictrigger</name>
597 <alias>docker_trigger</alias>
599 <cleanup>true</cleanup>
601 <tag>${docker.tag}</tag>
602 <tag>${docker.latest.tag}</tag>
604 <dockerFileDir>${project.basedir}/distribution/trigger</dockerFileDir>
609 <!-- <image> <name>onap/music/zookeeper_music</name>
610 <alias>docker_zookeeper</alias> <build> <cleanup>true</cleanup> <tags> <tag>3.4-${timestamp}</tag>
611 <tag>3.4-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/zookeeper</dockerFileDir>
612 </build> </image> -->
614 <!-- <image> <name>onap/music/tomcat_music</name>
615 <alias>docker_tomcat</alias> <build> <cleanup>true</cleanup> <tags> <tag>8.5-${timestamp}</tag>
616 <tag>8.5-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/tomcat</dockerFileDir>
617 </build> </image>\ -->
622 <id>clean-images</id>
623 <phase>pre-clean</phase>
628 <removeAll>true</removeAll>
633 <id>generate-images</id>
634 <phase>package</phase>
641 <phase>deploy</phase>
646 <image>onap/music/music</image>
659 <name>attarch-releases</name>
660 <url>http://mavencentral.it.att.com:8084/nexus/content/repositories/attarch-releases</url>
665 <distributionManagement>
667 <id>ecomp-releases</id>
668 <name>Release Repository</name>
669 <url>${nexusproxy}/${releaseNexusPath}</url>
672 <id>ecomp-snapshots</id>
673 <name>Snapshot Repository</name>
674 <url>${nexusproxy}/${snapshotNexusPath}</url>
675 </snapshotRepository>
676 <!-- added for javadoc -->
679 <url>dav:${nexusproxy}${sitePath}</url>
681 </distributionManagement>