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>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 <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 <directory>${project.basedir}/src/test/resources</directory>
141 <directory>${project.basedir}/src/main/resources</directory>
146 <groupId>org.springframework.boot</groupId>
147 <artifactId>spring-boot-maven-plugin</artifactId>
149 <mainClass>org.onap.music.MusicApplication</mainClass>
150 <outputDirectory>./distribution/music/</outputDirectory>
151 <addResources>true</addResources>
156 <goal>repackage</goal>
163 <artifactId>maven-war-plugin</artifactId>
164 <version>2.4</version>
166 <warSourceDirectory>WebContent</warSourceDirectory>
167 <failOnMissingWebXml>false</failOnMissingWebXml>
172 <groupId>org.apache.maven.plugins</groupId>
173 <artifactId>maven-jar-plugin</artifactId>
174 <version>2.4</version>
178 <phase>compile</phase>
184 <!--<exclude>**/*.xml</exclude>
185 <exclude>**/*.properties</exclude>-->
186 <exclude>**/Sample*</exclude>
193 <groupId>org.apache.maven.plugins</groupId>
194 <artifactId>maven-install-plugin</artifactId>
195 <version>2.4</version>
198 <phase>install</phase>
200 <goal>install-file</goal>
203 <packaging>jar</packaging>
204 <artifactId>${project.artifactId}</artifactId>
205 <groupId>${project.groupId}</groupId>
206 <version>${project.version}</version>
207 <file>${project.build.directory}/${project.artifactId}.jar</file>
218 <groupId>org.springframework.boot</groupId>
219 <artifactId>spring-boot-starter</artifactId>
222 <groupId>org.springframework.data</groupId>
223 <artifactId>spring-data-cassandra</artifactId>
226 <groupId>org.springframework.boot</groupId>
227 <artifactId>spring-boot-starter-jersey</artifactId>
230 <groupId>org.springframework.boot</groupId>
231 <artifactId>spring-boot-starter-tomcat</artifactId>
234 <groupId>org.springframework.boot</groupId>
235 <artifactId>spring-boot-starter-test</artifactId>
239 <groupId>org.springframework.boot</groupId>
240 <artifactId>spring-boot-starter-actuator</artifactId>
242 <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
244 <groupId>org.springframework</groupId>
245 <artifactId>spring-aop</artifactId>
246 <scope>compile</scope>
250 <groupId>io.springfox</groupId>
251 <artifactId>springfox-swagger2</artifactId>
252 <version>2.8.0</version>
253 <scope>compile</scope>
257 <groupId>io.springfox</groupId>
258 <artifactId>springfox-swagger-ui</artifactId>
259 <version>2.8.0</version>
260 <scope>compile</scope>
265 <groupId>org.aspectj</groupId>
266 <artifactId>aspectjweaver</artifactId>
267 <scope>compile</scope>
273 <groupId>javax.servlet</groupId>
274 <artifactId>servlet-api</artifactId>
275 <version>2.4</version>
276 <scope>provided</scope>
279 <groupId>org.springframework.boot</groupId>
280 <artifactId>spring-boot-autoconfigure</artifactId>
283 <groupId>javax.servlet</groupId>
284 <artifactId>javax.servlet-api</artifactId>
285 <version>3.0.1</version>
286 <scope>provided</scope>
288 <!-- /Development -->
291 <groupId>ch.qos.logback</groupId>
292 <artifactId>logback-core</artifactId>
293 <version>1.2.3</version>
296 <groupId>org.slf4j</groupId>
297 <artifactId>slf4j-log4j12</artifactId>
302 <groupId>ch.qos.logback</groupId>
303 <artifactId>logback-classic</artifactId>
304 <version>1.2.3</version>
307 <groupId>org.slf4j</groupId>
308 <artifactId>slf4j-log4j12</artifactId>
313 <groupId>com.att.eelf</groupId>
314 <artifactId>eelf-core</artifactId>
315 <version>1.0.1-oss</version>
318 <groupId>org.powermock</groupId>
319 <artifactId>powermock-api-mockito</artifactId>
322 <groupId>org.powermock</groupId>
323 <artifactId>powermock-module-junit4</artifactId>
330 <groupId>io.dropwizard.metrics</groupId>
331 <artifactId>metrics-core</artifactId>
332 <version>4.1.0-rc3</version>
335 <groupId>com.datastax.cassandra</groupId>
336 <artifactId>cassandra-driver-core</artifactId>
337 <version>3.6.0</version>
340 <groupId>com.datastax.cassandra</groupId>
341 <artifactId>cassandra-driver-core</artifactId>
342 <version>${cassandra.version}</version>
345 <groupId>io.netty</groupId>
346 <artifactId>*</artifactId>
353 <groupId>com.sun.jersey</groupId>
354 <artifactId>jersey-client</artifactId>
355 <version>${jersey1.version}</version>
358 <groupId>com.sun.jersey</groupId>
359 <artifactId>jersey-server</artifactId>
360 <version>${jersey1.version}</version>
363 <groupId>com.sun.jersey</groupId>
364 <artifactId>jersey-json</artifactId>
365 <version>${jersey1.version}</version>
368 <groupId>com.sun.jersey</groupId>
369 <artifactId>jersey-servlet</artifactId>
370 <version>${jersey1.version}</version>
375 <groupId>org.apache.commons</groupId>
376 <artifactId>commons-jcs-core</artifactId>
377 <version>2.2</version>
380 <groupId>commons-codec</groupId>
381 <artifactId>commons-codec</artifactId>
382 <version>1.11</version>
385 <groupId>org.apache.commons</groupId>
386 <artifactId>commons-lang3</artifactId>
387 <version>3.8</version>
391 <groupId>junit</groupId>
392 <artifactId>junit</artifactId>
393 <version>4.12</version>
397 <groupId>org.cassandraunit</groupId>
398 <artifactId>cassandra-unit</artifactId>
399 <version>3.3.0.2</version>
403 <groupId>io.dropwizard.metrics</groupId>
404 <artifactId>metrics-core</artifactId>
407 <groupId>com.addthis.metrics</groupId>
408 <artifactId>reporter-config-base</artifactId>
413 <groupId>org.cassandraunit</groupId>
414 <artifactId>cassandra-unit-spring</artifactId>
415 <version>3.5.0.1</version>
419 <groupId>org.slf4j</groupId>
420 <artifactId>slf4j-log4j12</artifactId>
423 <groupId>ch.qos.logback</groupId>
424 <artifactId>logback-core</artifactId>
427 <groupId>ch.qos.logback</groupId>
428 <artifactId>logback-classic</artifactId>
431 <groupId>org.cassandraunit</groupId>
432 <artifactId>cassandra-unit</artifactId>
435 <groupId>io.dropwizard.metrics</groupId>
436 <artifactId>metrics-core</artifactId>
441 <groupId>org.cassandraunit</groupId>
442 <artifactId>cassandra-unit-shaded</artifactId>
443 <version>3.5.0.1</version>
447 <groupId>io.dropwizard.metrics</groupId>
448 <artifactId>metrics-core</artifactId>
449 <version>3.1.0</version>
452 <groupId>org.mockito</groupId>
453 <artifactId>mockito-core</artifactId>
454 <version>2.23.4</version>
458 <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.datatype/jackson-datatype-jsr310 -->
460 <groupId>com.fasterxml.jackson.datatype</groupId>
461 <artifactId>jackson-datatype-jsr310</artifactId>
462 <version>2.9.8</version>
466 <groupId>com.fasterxml.jackson.core</groupId>
467 <artifactId>jackson-databind</artifactId>
470 <groupId>com.fasterxml.jackson.core</groupId>
471 <artifactId>jackson-core</artifactId>
474 <groupId>com.fasterxml.jackson.core</groupId>
475 <artifactId>jackson-annotations</artifactId>
478 <groupId>org.apache.httpcomponents</groupId>
479 <artifactId>httpclient</artifactId>
482 <groupId>io.swagger</groupId>
483 <artifactId>swagger-jersey-jaxrs</artifactId>
484 <version>1.5.21</version>
487 <groupId>com.google.guava</groupId>
488 <artifactId>guava</artifactId>
491 <groupId>org.mindrot</groupId>
492 <artifactId>jbcrypt</artifactId>
493 <version>0.4</version>
496 <groupId>org.onap.aaf.authz</groupId>
497 <artifactId>aaf-cadi-aaf</artifactId>
498 <version>2.1.7</version>
501 <groupId>org.onap.aaf.authz</groupId>
502 <artifactId>aaf-cadi-client</artifactId>
503 <version>2.1.7</version>
506 <groupId>org.onap.aaf.authz</groupId>
507 <artifactId>aaf-cadi-core</artifactId>
508 <version>2.1.7</version>
512 <groupId>com.google.code.gson</groupId>
513 <artifactId>gson</artifactId>
514 <version>2.8.5</version>
521 <groupId>org.apache.maven.plugins</groupId>
522 <artifactId>maven-javadoc-plugin</artifactId>
523 <version>2.10.3</version>
525 <author>true</author>
526 <breakiterator>true</breakiterator>
527 <version>true</version>
529 <link>https://docs.oracle.com/javase/7/docs/api/</link>
530 <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
531 <link>http://docs.oracle.com/javaee/7/api/</link>
536 <groupId>org.apache.maven.plugins</groupId>
537 <artifactId>maven-compiler-plugin</artifactId>
552 <groupId>io.fabric8</groupId>
553 <artifactId>docker-maven-plugin</artifactId>
554 <version>0.19.1</version>
556 <verbose>true</verbose>
557 <apiVersion>1.23</apiVersion>
558 <registry>nexus3.onap.org:10003</registry>
562 <name>onap/music/music_sb</name>
563 <alias>docker_music</alias>
565 <cleanup>true</cleanup>
567 <tag>${docker.tag}</tag>
568 <tag>${docker.latest.tag}</tag>
570 <dockerFileDir>${project.basedir}/distribution/music</dockerFileDir>
572 <descriptorRef>artifact</descriptorRef>
578 <name>onap/music/cassandra_3_11</name>
579 <alias>docker_cassandra_sec</alias>
581 <cleanup>true</cleanup>
583 <tag>${docker.tag}</tag>
584 <tag>${docker.latest.tag}</tag>
586 <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
589 <!-- Cassandra Job -->
591 <name>onap/music/cassandra_job</name>
592 <alias>docker_cassandra_job</alias>
594 <cleanup>true</cleanup>
596 <tag>${docker.tag}</tag>
597 <tag>${docker.latest.tag}</tag>
599 <dockerFileDir>${project.basedir}/distribution/cassandra_job</dockerFileDir>
603 <!-- <image> <name>onap/music/tomcat_music</name>
604 <alias>docker_tomcat</alias> <build> <cleanup>true</cleanup> <tags> <tag>8.5-${timestamp}</tag>
605 <tag>8.5-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/tomcat</dockerFileDir>
606 </build> </image>\ -->
611 <id>clean-images</id>
612 <phase>pre-clean</phase>
617 <removeAll>true</removeAll>
622 <id>generate-images</id>
623 <phase>package</phase>
630 <phase>deploy</phase>
635 <image>onap/music/music</image>
648 <name>attarch-releases</name>
649 <url>http://mavencentral.it.att.com:8084/nexus/content/repositories/attarch-releases</url>
654 <distributionManagement>
656 <id>ecomp-releases</id>
657 <name>Release Repository</name>
658 <url>${nexusproxy}/${releaseNexusPath}</url>
661 <id>ecomp-snapshots</id>
662 <name>Snapshot Repository</name>
663 <url>${nexusproxy}/${snapshotNexusPath}</url>
664 </snapshotRepository>
665 <!-- added for javadoc -->
668 <url>dav:${nexusproxy}${sitePath}</url>
670 </distributionManagement>