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>war</packaging>
30 <version>3.0.24</version>
32 This is the MUSIC REST interface, packaged as a war file.
36 <groupId>org.onap.oparent</groupId>
37 <artifactId>oparent</artifactId>
38 <version>1.2.0</version>
43 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
44 <jersey1.version>1.19</jersey1.version>
45 <jersey2.version>2.25.1</jersey2.version>
46 <jaxrs.version>2.0.1</jaxrs.version>
47 <cassandra.version>3.6.0</cassandra.version>
48 <zookeeper.version>3.4.11</zookeeper.version>
50 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
51 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
53 <nexusproxy>https://nexus.onap.org</nexusproxy>
54 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
55 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
56 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
57 <sitePath>/content/sites/site/org/onap/music/${project.version}</sitePath>
59 <timestamp>${maven.build.timestamp}</timestamp>
60 <maven.build.timestamp.format>yyyy.MM.dd.HH.mm</maven.build.timestamp.format>
62 <docker.tag>${project.version}-${timestamp}</docker.tag>
63 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
68 <id>ecomp-releases</id>
69 <name>ECOMP Release Repository</name>
70 <url>${onap.nexus.url}/${releaseNexusPath}</url>
73 <id>ecomp-snapshots</id>
74 <name>Snapshot Repository</name>
75 <url>${nexusproxy}/${snapshotNexusPath}</url>
78 <id>ecomp-staging</id>
79 <name>Staging Repository</name>
80 <url>${nexusproxy}/${stagingNexusPath}</url>
85 <finalName>MUSIC</finalName>
86 <sourceDirectory>src/main/java</sourceDirectory>
87 <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>
88 <testSourceDirectory>src/test/java</testSourceDirectory>
89 <testOutputDirectory>target/test-classes</testOutputDirectory>
90 <defaultGoal>validate</defaultGoal>
93 <directory>src/main/resources</directory>
94 <filtering>true</filtering>
99 <artifactId>maven-eclipse-plugin</artifactId>
100 <version>2.9</version>
102 <additionalProjectnatures>
103 <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
104 </additionalProjectnatures>
105 <additionalBuildcommands>
106 <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
107 </additionalBuildcommands>
108 <downloadSources>true</downloadSources>
109 <downloadJavadocs>true</downloadJavadocs>
113 <groupId>org.apache.maven.plugins</groupId>
114 <artifactId>maven-compiler-plugin</artifactId>
115 <version>3.5.1</version>
120 <exclude>jar/**</exclude>
125 <artifactId>maven-war-plugin</artifactId>
126 <version>2.4</version>
128 <warSourceDirectory>WebContent</warSourceDirectory>
132 <groupId>org.apache.maven.plugins</groupId>
133 <artifactId>maven-jar-plugin</artifactId>
134 <version>2.4</version>
138 <phase>compile</phase>
144 <exclude>**/*.xml</exclude>
145 <exclude>**/*.properties</exclude>
146 <exclude>**/Sample*</exclude>
153 <groupId>org.apache.maven.plugins</groupId>
154 <artifactId>maven-install-plugin</artifactId>
155 <version>2.4</version>
158 <phase>install</phase>
160 <goal>install-file</goal>
163 <packaging>jar</packaging>
164 <artifactId>${project.artifactId}</artifactId>
165 <groupId>${project.groupId}</groupId>
166 <version>${project.version}</version>
167 <file>${project.build.directory}/${project.artifactId}.jar</file>
179 <groupId>javax.servlet</groupId>
180 <artifactId>javax.servlet-api</artifactId>
181 <version>3.0.1</version>
182 <scope>provided</scope>
184 <!-- /Development -->
186 <groupId>com.hazelcast</groupId>
187 <artifactId>hazelcast-client</artifactId>
188 <version>3.7.1</version>
193 <groupId>ch.qos.logback</groupId>
194 <artifactId>logback-core</artifactId>
195 <version>1.2.3</version>
198 <groupId>org.slf4j</groupId>
199 <artifactId>slf4j-log4j12</artifactId>
204 <groupId>ch.qos.logback</groupId>
205 <artifactId>logback-classic</artifactId>
206 <version>1.2.3</version>
209 <groupId>org.slf4j</groupId>
210 <artifactId>slf4j-log4j12</artifactId>
215 <groupId>com.att.eelf</groupId>
216 <artifactId>eelf-core</artifactId>
217 <version>1.0.1-oss</version>
222 <groupId>com.datastax.cassandra</groupId>
223 <artifactId>cassandra-driver-core</artifactId>
224 <version>${cassandra.version}</version>
229 <groupId>org.apache.zookeeper</groupId>
230 <artifactId>zookeeper</artifactId>
231 <version>${zookeeper.version}</version>
234 <groupId>org.slf4j</groupId>
235 <artifactId>slf4j-log4j12</artifactId>
242 <groupId>com.sun.jersey</groupId>
243 <artifactId>jersey-client</artifactId>
244 <version>${jersey1.version}</version>
247 <groupId>com.sun.jersey</groupId>
248 <artifactId>jersey-server</artifactId>
249 <version>${jersey1.version}</version>
252 <groupId>com.sun.jersey</groupId>
253 <artifactId>jersey-json</artifactId>
254 <version>${jersey1.version}</version>
257 <groupId>com.sun.jersey</groupId>
258 <artifactId>jersey-servlet</artifactId>
259 <version>${jersey1.version}</version>
264 <groupId>org.apache.commons</groupId>
265 <artifactId>commons-jcs-core</artifactId>
266 <version>2.2</version>
269 <groupId>commons-codec</groupId>
270 <artifactId>commons-codec</artifactId>
271 <version>1.11</version>
276 <groupId>junit</groupId>
277 <artifactId>junit</artifactId>
278 <version>4.12</version>
282 <groupId>org.cassandraunit</groupId>
283 <artifactId>cassandra-unit</artifactId>
284 <version>3.3.0.2</version>
288 <groupId>org.apache.curator</groupId>
289 <artifactId>curator-test</artifactId>
290 <version>2.3.0</version>
293 <groupId>org.apache.zookeeper</groupId>
294 <artifactId>zookeeper</artifactId>
297 <groupId>org.slf4j</groupId>
298 <artifactId>slf4j-log4j12</artifactId>
304 <groupId>org.mockito</groupId>
305 <artifactId>mockito-all</artifactId>
306 <version>1.9.0</version>
311 <groupId>io.netty</groupId>
312 <artifactId>netty-handler</artifactId>
313 <version>4.1.30.Final</version>
316 <groupId>com.fasterxml.jackson.core</groupId>
317 <artifactId>jackson-databind</artifactId>
318 <version>2.9.4</version>
321 <groupId>org.apache.httpcomponents</groupId>
322 <artifactId>httpclient</artifactId>
323 <version>4.5.3</version>
326 <groupId>io.swagger</groupId>
327 <artifactId>swagger-jersey-jaxrs</artifactId>
328 <version>1.5.18</version>
331 <groupId>com.google.guava</groupId>
332 <artifactId>guava</artifactId>
335 <groupId>org.mindrot</groupId>
336 <artifactId>jbcrypt</artifactId>
337 <version>0.4</version>
340 <groupId>com.owlike</groupId>
341 <artifactId>genson</artifactId>
342 <version>1.3</version>
344 <!-- Added to fix MUSIC-157 License Issue -->
346 <groupId>javax.xml.bind</groupId>
347 <artifactId>jaxb-api</artifactId>
348 <version>2.2.3</version>
356 <groupId>org.apache.maven.plugins</groupId>
357 <artifactId>maven-javadoc-plugin</artifactId>
358 <version>2.10.3</version>
360 <author>true</author>
361 <breakiterator>true</breakiterator>
362 <version>true</version>
364 <link>https://docs.oracle.com/javase/7/docs/api/</link>
365 <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
366 <link>http://docs.oracle.com/javaee/7/api/</link>
379 <groupId>io.fabric8</groupId>
380 <artifactId>docker-maven-plugin</artifactId>
381 <version>0.19.1</version>
383 <verbose>true</verbose>
384 <apiVersion>1.23</apiVersion>
385 <registry>nexus3.onap.org:10003</registry>
389 <name>onap/music/music</name>
390 <alias>docker_music</alias>
392 <cleanup>true</cleanup>
394 <tag>${docker.tag}</tag>
395 <tag>${docker.latest.tag}</tag>
397 <dockerFileDir>${project.basedir}</dockerFileDir>
399 <descriptorRef>artifact</descriptorRef>
405 <name>onap/music/cassandra_3_11</name>
406 <alias>docker_cassandra_sec</alias>
408 <cleanup>true</cleanup>
410 <tag>${docker.tag}</tag>
411 <tag>${docker.latest.tag}</tag>
413 <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
416 <!-- Cassandra Job -->
418 <name>onap/music/cassandra_job</name>
419 <alias>docker_cassandra_job</alias>
421 <cleanup>true</cleanup>
423 <tag>${docker.tag}</tag>
424 <tag>${docker.latest.tag}</tag>
426 <dockerFileDir>${project.basedir}/distribution/cassandra_job</dockerFileDir>
430 <!-- <image> <name>onap/music/zookeeper_music</name>
431 <alias>docker_zookeeper</alias> <build> <cleanup>true</cleanup> <tags> <tag>3.4-${timestamp}</tag>
432 <tag>3.4-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/zookeeper</dockerFileDir>
433 </build> </image> -->
435 <!-- <image> <name>onap/music/tomcat_music</name>
436 <alias>docker_tomcat</alias> <build> <cleanup>true</cleanup> <tags> <tag>8.5-${timestamp}</tag>
437 <tag>8.5-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/tomcat</dockerFileDir>
438 </build> </image>\ -->
443 <id>clean-images</id>
444 <phase>pre-clean</phase>
449 <removeAll>true</removeAll>
454 <id>generate-images</id>
455 <phase>package</phase>
462 <phase>deploy</phase>
467 <image>onap/music/music</image>
476 <distributionManagement>
478 <id>ecomp-releases</id>
479 <name>Release Repository</name>
480 <url>${nexusproxy}/${releaseNexusPath}</url>
483 <id>ecomp-snapshots</id>
484 <name>Snapshot Repository</name>
485 <url>${nexusproxy}/${snapshotNexusPath}</url>
486 </snapshotRepository>
487 <!-- added for javadoc -->
490 <url>dav:${nexusproxy}${sitePath}</url>
492 </distributionManagement>