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.18</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 <jaxrs.version>2.0.1</jaxrs.version>
44 <cassandra.version>3.2.0</cassandra.version>
45 <zookeeper.version>3.4.6</zookeeper.version>
47 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
48 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
50 <nexusproxy>https://nexus.onap.org</nexusproxy>
51 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
52 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
53 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
54 <sitePath>/content/sites/site/org/onap/music/${project.version}</sitePath>
56 <timestamp>${maven.build.timestamp}</timestamp>
57 <maven.build.timestamp.format>yyyy.MM.dd.HH.mm</maven.build.timestamp.format>
59 <docker.tag>${project.version}-${timestamp}</docker.tag>
60 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
65 <id>ecomp-releases</id>
66 <name>ECOMP Release Repository</name>
67 <url>${onap.nexus.url}/${releaseNexusPath}</url>
70 <id>ecomp-snapshots</id>
71 <name>Snapshot Repository</name>
72 <url>${nexusproxy}/${snapshotNexusPath}</url>
75 <id>ecomp-staging</id>
76 <name>Staging Repository</name>
77 <url>${nexusproxy}/${stagingNexusPath}</url>
82 <finalName>MUSIC</finalName>
83 <sourceDirectory>src/main/java</sourceDirectory>
84 <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>
85 <testSourceDirectory>src/test/java</testSourceDirectory>
86 <testOutputDirectory>target/test-classes</testOutputDirectory>
87 <defaultGoal>validate</defaultGoal>
90 <directory>src/main/resources</directory>
91 <filtering>true</filtering>
96 <artifactId>maven-eclipse-plugin</artifactId>
97 <version>2.9</version>
99 <additionalProjectnatures>
100 <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
101 </additionalProjectnatures>
102 <additionalBuildcommands>
103 <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
104 </additionalBuildcommands>
105 <downloadSources>true</downloadSources>
106 <downloadJavadocs>true</downloadJavadocs>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-compiler-plugin</artifactId>
112 <version>3.5.1</version>
119 <artifactId>maven-war-plugin</artifactId>
120 <version>2.4</version>
122 <warSourceDirectory>WebContent</warSourceDirectory>
126 <groupId>org.apache.maven.plugins</groupId>
127 <artifactId>maven-jar-plugin</artifactId>
128 <version>2.4</version>
132 <phase>compile</phase>
138 <exclude>**/*.xml</exclude>
139 <exclude>**/*.properties</exclude>
140 <exclude>**/Sample*</exclude>
147 <groupId>org.apache.maven.plugins</groupId>
148 <artifactId>maven-install-plugin</artifactId>
149 <version>2.4</version>
152 <phase>install</phase>
154 <goal>install-file</goal>
157 <packaging>jar</packaging>
158 <artifactId>${project.artifactId}</artifactId>
159 <groupId>${project.groupId}</groupId>
160 <version>${project.version}</version>
161 <file>${project.build.directory}/${project.artifactId}.jar</file>
172 <groupId>javax.servlet</groupId>
173 <artifactId>servlet-api</artifactId>
174 <version>2.4</version>
175 <scope>provided</scope>
178 <groupId>javax.servlet</groupId>
179 <artifactId>javax.servlet-api</artifactId>
180 <version>3.0.1</version>
181 <scope>provided</scope>
183 <!-- /Development -->
187 <groupId>ch.qos.logback</groupId>
188 <artifactId>logback-core</artifactId>
189 <version>1.2.3</version>
192 <groupId>org.slf4j</groupId>
193 <artifactId>slf4j-log4j12</artifactId>
198 <groupId>ch.qos.logback</groupId>
199 <artifactId>logback-classic</artifactId>
200 <version>1.2.3</version>
203 <groupId>org.slf4j</groupId>
204 <artifactId>slf4j-log4j12</artifactId>
209 <groupId>com.att.eelf</groupId>
210 <artifactId>eelf-core</artifactId>
211 <version>1.0.1-oss</version>
217 <groupId>com.datastax.cassandra</groupId>
218 <artifactId>cassandra-driver-core</artifactId>
219 <version>${cassandra.version}</version>
225 <groupId>org.apache.zookeeper</groupId>
226 <artifactId>zookeeper</artifactId>
227 <version>${zookeeper.version}</version>
230 <groupId>org.slf4j</groupId>
231 <artifactId>slf4j-log4j12</artifactId>
239 <groupId>com.sun.jersey</groupId>
240 <artifactId>jersey-client</artifactId>
241 <version>${jersey1.version}</version>
244 <groupId>com.sun.jersey</groupId>
245 <artifactId>jersey-server</artifactId>
246 <version>${jersey1.version}</version>
249 <groupId>com.sun.jersey</groupId>
250 <artifactId>jersey-json</artifactId>
251 <version>${jersey1.version}</version>
254 <groupId>com.sun.jersey</groupId>
255 <artifactId>jersey-servlet</artifactId>
256 <version>${jersey1.version}</version>
261 <groupId>org.apache.commons</groupId>
262 <artifactId>commons-jcs-core</artifactId>
263 <version>2.2</version>
266 <groupId>commons-codec</groupId>
267 <artifactId>commons-codec</artifactId>
268 <version>1.11</version>
273 <groupId>junit</groupId>
274 <artifactId>junit</artifactId>
275 <version>4.12</version>
279 <groupId>org.cassandraunit</groupId>
280 <artifactId>cassandra-unit</artifactId>
281 <version>3.3.0.2</version>
285 <groupId>org.apache.curator</groupId>
286 <artifactId>curator-test</artifactId>
287 <version>2.3.0</version>
290 <groupId>org.apache.zookeeper</groupId>
291 <artifactId>zookeeper</artifactId>
294 <groupId>org.slf4j</groupId>
295 <artifactId>slf4j-log4j12</artifactId>
301 <groupId>org.mockito</groupId>
302 <artifactId>mockito-all</artifactId>
303 <version>1.9.0</version>
309 <groupId>org.apache.httpcomponents</groupId>
310 <artifactId>httpclient</artifactId>
311 <version>4.5.3</version>
314 <groupId>io.swagger</groupId>
315 <artifactId>swagger-jersey-jaxrs</artifactId>
316 <version>1.5.8</version>
319 <groupId>com.google.guava</groupId>
320 <artifactId>guava</artifactId>
321 <version>19.0</version>
328 <groupId>org.apache.maven.plugins</groupId>
329 <artifactId>maven-javadoc-plugin</artifactId>
330 <version>2.10.3</version>
332 <author>true</author>
333 <breakiterator>true</breakiterator>
334 <version>true</version>
336 <link>https://docs.oracle.com/javase/7/docs/api/</link>
337 <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
338 <link>http://docs.oracle.com/javaee/7/api/</link>
351 <groupId>io.fabric8</groupId>
352 <artifactId>docker-maven-plugin</artifactId>
353 <version>0.19.1</version>
355 <verbose>true</verbose>
356 <apiVersion>1.23</apiVersion>
357 <registry>nexus3.onap.org:10003</registry>
361 <name>onap/music/music</name>
362 <alias>docker_music</alias>
364 <cleanup>true</cleanup>
366 <tag>${docker.tag}</tag>
367 <tag>${docker.latest.tag}</tag>
369 <dockerFileDir>${project.basedir}</dockerFileDir>
371 <descriptorRef>artifact</descriptorRef>
377 <name>onap/music/cassandra_music</name>
378 <alias>docker_cassandra</alias>
380 <cleanup>true</cleanup>
382 <tag>3.0-${timestamp}</tag>
383 <tag>3.0-latest</tag>
385 <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
389 <!-- <image> <name>onap/music/zookeeper_music</name>
390 <alias>docker_zookeeper</alias> <build> <cleanup>true</cleanup> <tags> <tag>3.4-${timestamp}</tag>
391 <tag>3.4-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/zookeeper</dockerFileDir>
392 </build> </image> -->
394 <!-- <image> <name>onap/music/tomcat_music</name>
395 <alias>docker_tomcat</alias> <build> <cleanup>true</cleanup> <tags> <tag>8.5-${timestamp}</tag>
396 <tag>8.5-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/tomcat</dockerFileDir>
397 </build> </image>\ -->
402 <id>clean-images</id>
403 <phase>pre-clean</phase>
408 <removeAll>true</removeAll>
413 <id>generate-images</id>
414 <phase>package</phase>
421 <phase>deploy</phase>
426 <image>onap/music/music</image>
435 <distributionManagement>
437 <id>ecomp-releases</id>
438 <name>Release Repository</name>
439 <url>${nexusproxy}/${releaseNexusPath}</url>
442 <id>ecomp-snapshots</id>
443 <name>Snapshot Repository</name>
444 <url>${nexusproxy}/${snapshotNexusPath}</url>
445 </snapshotRepository>
446 <!-- added for javadoc -->
449 <url>dav:${nexusproxy}${sitePath}</url>
451 </distributionManagement>