2 ============LICENSE_START==========================================
4 ===================================================================
5 Copyright (c) 2017 AT&T Intellectual Property
6 ===================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
19 ============LICENSE_END=============================================
20 ====================================================================
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24 <modelVersion>4.0.0</modelVersion>
25 <groupId>org.onap.music</groupId>
26 <artifactId>MUSIC</artifactId>
27 <packaging>war</packaging>
28 <version>2.4.22</version>
30 This is the MUSIC REST interface, packaged as a war file.
34 <groupId>org.onap.oparent</groupId>
35 <artifactId>oparent</artifactId>
36 <version>1.1.0</version>
41 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42 <jersey1.version>1.19</jersey1.version>
43 <jersey2.version>2.25.1</jersey2.version>
44 <jaxrs.version>2.0.1</jaxrs.version>
45 <cassandra.version>3.4.0</cassandra.version>
46 <zookeeper.version>3.4.11</zookeeper.version>
48 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
49 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
51 <nexusproxy>https://nexus.onap.org</nexusproxy>
52 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
53 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
54 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
55 <sitePath>/content/sites/site/org/onap/music/${project.version}</sitePath>
57 <timestamp>${maven.build.timestamp}</timestamp>
58 <maven.build.timestamp.format>yyyy.MM.dd.HH.mm</maven.build.timestamp.format>
60 <docker.tag>${project.version}-${timestamp}</docker.tag>
61 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
66 <id>ecomp-releases</id>
67 <name>ECOMP Release Repository</name>
68 <url>${onap.nexus.url}/${releaseNexusPath}</url>
71 <id>ecomp-snapshots</id>
72 <name>Snapshot Repository</name>
73 <url>${nexusproxy}/${snapshotNexusPath}</url>
76 <id>ecomp-staging</id>
77 <name>Staging Repository</name>
78 <url>${nexusproxy}/${stagingNexusPath}</url>
83 <finalName>MUSIC</finalName>
84 <sourceDirectory>src/main/java</sourceDirectory>
85 <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>
86 <testSourceDirectory>src/test/java</testSourceDirectory>
87 <testOutputDirectory>target/test-classes</testOutputDirectory>
88 <defaultGoal>validate</defaultGoal>
91 <directory>src/main/resources</directory>
92 <filtering>true</filtering>
97 <artifactId>maven-eclipse-plugin</artifactId>
98 <version>2.9</version>
100 <additionalProjectnatures>
101 <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
102 </additionalProjectnatures>
103 <additionalBuildcommands>
104 <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
105 </additionalBuildcommands>
106 <downloadSources>true</downloadSources>
107 <downloadJavadocs>true</downloadJavadocs>
111 <groupId>org.apache.maven.plugins</groupId>
112 <artifactId>maven-compiler-plugin</artifactId>
113 <version>3.5.1</version>
120 <artifactId>maven-war-plugin</artifactId>
121 <version>2.4</version>
123 <warSourceDirectory>WebContent</warSourceDirectory>
127 <groupId>org.apache.maven.plugins</groupId>
128 <artifactId>maven-jar-plugin</artifactId>
129 <version>2.4</version>
133 <phase>compile</phase>
139 <exclude>**/*.xml</exclude>
140 <exclude>**/*.properties</exclude>
141 <exclude>**/Sample*</exclude>
148 <groupId>org.apache.maven.plugins</groupId>
149 <artifactId>maven-install-plugin</artifactId>
150 <version>2.4</version>
153 <phase>install</phase>
155 <goal>install-file</goal>
158 <packaging>jar</packaging>
159 <artifactId>${project.artifactId}</artifactId>
160 <groupId>${project.groupId}</groupId>
161 <version>${project.version}</version>
162 <file>${project.build.directory}/${project.artifactId}.jar</file>
173 <groupId>javax.servlet</groupId>
174 <artifactId>servlet-api</artifactId>
175 <version>2.4</version>
176 <scope>provided</scope>
179 <groupId>javax.servlet</groupId>
180 <artifactId>javax.servlet-api</artifactId>
181 <version>3.0.1</version>
182 <scope>provided</scope>
184 <!-- /Development -->
188 <groupId>ch.qos.logback</groupId>
189 <artifactId>logback-core</artifactId>
190 <version>1.2.3</version>
193 <groupId>org.slf4j</groupId>
194 <artifactId>slf4j-log4j12</artifactId>
199 <groupId>ch.qos.logback</groupId>
200 <artifactId>logback-classic</artifactId>
201 <version>1.2.3</version>
204 <groupId>org.slf4j</groupId>
205 <artifactId>slf4j-log4j12</artifactId>
210 <groupId>com.att.eelf</groupId>
211 <artifactId>eelf-core</artifactId>
212 <version>1.0.1-oss</version>
218 <groupId>com.datastax.cassandra</groupId>
219 <artifactId>cassandra-driver-core</artifactId>
220 <version>${cassandra.version}</version>
226 <groupId>org.apache.zookeeper</groupId>
227 <artifactId>zookeeper</artifactId>
228 <version>${zookeeper.version}</version>
231 <groupId>org.slf4j</groupId>
232 <artifactId>slf4j-log4j12</artifactId>
240 <groupId>com.sun.jersey</groupId>
241 <artifactId>jersey-client</artifactId>
242 <version>${jersey1.version}</version>
245 <groupId>com.sun.jersey</groupId>
246 <artifactId>jersey-server</artifactId>
247 <version>${jersey1.version}</version>
250 <groupId>com.sun.jersey</groupId>
251 <artifactId>jersey-json</artifactId>
252 <version>${jersey1.version}</version>
255 <groupId>com.sun.jersey</groupId>
256 <artifactId>jersey-servlet</artifactId>
257 <version>${jersey1.version}</version>
262 <groupId>org.apache.commons</groupId>
263 <artifactId>commons-jcs-core</artifactId>
264 <version>2.2</version>
267 <groupId>commons-codec</groupId>
268 <artifactId>commons-codec</artifactId>
269 <version>1.11</version>
274 <groupId>junit</groupId>
275 <artifactId>junit</artifactId>
276 <version>4.12</version>
280 <groupId>org.cassandraunit</groupId>
281 <artifactId>cassandra-unit</artifactId>
282 <version>3.3.0.2</version>
286 <groupId>org.apache.curator</groupId>
287 <artifactId>curator-test</artifactId>
288 <version>2.3.0</version>
291 <groupId>org.apache.zookeeper</groupId>
292 <artifactId>zookeeper</artifactId>
295 <groupId>org.slf4j</groupId>
296 <artifactId>slf4j-log4j12</artifactId>
302 <groupId>org.mockito</groupId>
303 <artifactId>mockito-all</artifactId>
304 <version>1.9.0</version>
309 <groupId>io.netty</groupId>
310 <artifactId>netty-handler</artifactId>
311 <version>4.0.56.Final</version>
314 <groupId>com.fasterxml.jackson.core</groupId>
315 <artifactId>jackson-databind</artifactId>
316 <version>2.9.4</version>
319 <groupId>org.apache.httpcomponents</groupId>
320 <artifactId>httpclient</artifactId>
321 <version>4.5.3</version>
324 <groupId>io.swagger</groupId>
325 <artifactId>swagger-jersey-jaxrs</artifactId>
326 <version>1.5.18</version>
329 <groupId>com.google.guava</groupId>
330 <artifactId>guava</artifactId>
331 <version>19.0</version>
338 <groupId>org.apache.maven.plugins</groupId>
339 <artifactId>maven-javadoc-plugin</artifactId>
340 <version>2.10.3</version>
342 <author>true</author>
343 <breakiterator>true</breakiterator>
344 <version>true</version>
346 <link>https://docs.oracle.com/javase/7/docs/api/</link>
347 <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
348 <link>http://docs.oracle.com/javaee/7/api/</link>
361 <groupId>io.fabric8</groupId>
362 <artifactId>docker-maven-plugin</artifactId>
363 <version>0.19.1</version>
365 <verbose>true</verbose>
366 <apiVersion>1.23</apiVersion>
367 <registry>nexus3.onap.org:10003</registry>
371 <name>onap/music/music</name>
372 <alias>docker_music</alias>
374 <cleanup>true</cleanup>
376 <tag>${docker.tag}</tag>
377 <tag>${docker.latest.tag}</tag>
379 <dockerFileDir>${project.basedir}</dockerFileDir>
381 <descriptorRef>artifact</descriptorRef>
387 <name>onap/music/cassandra_music</name>
388 <alias>docker_cassandra</alias>
390 <cleanup>true</cleanup>
392 <tag>3.0-${timestamp}</tag>
393 <tag>3.0-latest</tag>
395 <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
399 <!-- <image> <name>onap/music/zookeeper_music</name>
400 <alias>docker_zookeeper</alias> <build> <cleanup>true</cleanup> <tags> <tag>3.4-${timestamp}</tag>
401 <tag>3.4-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/zookeeper</dockerFileDir>
402 </build> </image> -->
404 <!-- <image> <name>onap/music/tomcat_music</name>
405 <alias>docker_tomcat</alias> <build> <cleanup>true</cleanup> <tags> <tag>8.5-${timestamp}</tag>
406 <tag>8.5-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/tomcat</dockerFileDir>
407 </build> </image>\ -->
412 <id>clean-images</id>
413 <phase>pre-clean</phase>
418 <removeAll>true</removeAll>
423 <id>generate-images</id>
424 <phase>package</phase>
431 <phase>deploy</phase>
436 <image>onap/music/music</image>
445 <distributionManagement>
447 <id>ecomp-releases</id>
448 <name>Release Repository</name>
449 <url>${nexusproxy}/${releaseNexusPath}</url>
452 <id>ecomp-snapshots</id>
453 <name>Snapshot Repository</name>
454 <url>${nexusproxy}/${snapshotNexusPath}</url>
455 </snapshotRepository>
456 <!-- added for javadoc -->
459 <url>dav:${nexusproxy}${sitePath}</url>
461 </distributionManagement>