1 <!-- ============LICENSE_START==========================================
2 org.onap.music ===================================================================
3 Copyright (c) 2017 AT&T Intellectual Property ===================================================================
4 Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 use this file except in compliance with the License. You may obtain a copy
6 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
7 by applicable law or agreed to in writing, software distributed under the
8 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
9 OF ANY KIND, either express or implied. See the License for the specific
10 language governing permissions and limitations under the License. ============LICENSE_END=============================================
11 ==================================================================== -->
12 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
14 <modelVersion>4.0.0</modelVersion>
15 <groupId>org.onap.music</groupId>
16 <artifactId>MUSIC</artifactId>
17 <packaging>war</packaging>
18 <version>2.4.14</version>
20 This is the MUSIC REST interface, packaged as a war file.
24 <groupId>org.onap.oparent</groupId>
25 <artifactId>oparent</artifactId>
26 <version>0.1.1</version>
31 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
32 <jersey1.version>1.17</jersey1.version>
33 <jersey2.version>2.26</jersey2.version>
34 <jaxrs.version>2.0.1</jaxrs.version>
35 <cassandra.version>3.2.0</cassandra.version>
36 <zookeeper.version>3.4.6</zookeeper.version>
38 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
41 <nexusproxy>https://nexus.onap.org</nexusproxy>
42 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
43 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
44 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
45 <sitePath>/content/sites/site/org/onap/music/${project.version}</sitePath>
47 <timestamp>${maven.build.timestamp}</timestamp>
48 <maven.build.timestamp.format>yyyy.MM.dd.HH.mm</maven.build.timestamp.format>
50 <docker.tag>${project.version}-${timestamp}</docker.tag>
51 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
56 <id>ecomp-releases</id>
57 <name>ECOMP Release Repository</name>
58 <url>${onap.nexus.url}/${releaseNexusPath}</url>
61 <id>ecomp-snapshots</id>
62 <name>Snapshot Repository</name>
63 <url>${nexusproxy}/${snapshotNexusPath}</url>
66 <id>ecomp-staging</id>
67 <name>Staging Repository</name>
68 <url>${nexusproxy}/${stagingNexusPath}</url>
73 <finalName>MUSIC</finalName>
74 <sourceDirectory>src/main/java</sourceDirectory>
75 <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>
76 <testSourceDirectory>src/test/java</testSourceDirectory>
77 <testOutputDirectory>target/test-classes</testOutputDirectory>
78 <defaultGoal>validate</defaultGoal>
81 <directory>src/main/resources</directory>
82 <filtering>true</filtering>
87 <artifactId>maven-eclipse-plugin</artifactId>
88 <version>2.9</version>
90 <additionalProjectnatures>
91 <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
92 </additionalProjectnatures>
93 <additionalBuildcommands>
94 <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
95 </additionalBuildcommands>
96 <downloadSources>true</downloadSources>
97 <downloadJavadocs>true</downloadJavadocs>
101 <groupId>org.apache.maven.plugins</groupId>
102 <artifactId>maven-compiler-plugin</artifactId>
103 <version>3.5.1</version>
110 <artifactId>maven-war-plugin</artifactId>
111 <version>2.4</version>
113 <warSourceDirectory>WebContent</warSourceDirectory>
117 <groupId>org.apache.maven.plugins</groupId>
118 <artifactId>maven-jar-plugin</artifactId>
119 <version>2.4</version>
123 <phase>compile</phase>
129 <exclude>**/*.xml</exclude>
130 <exclude>**/*.properties</exclude>
131 <exclude>**/Sample*</exclude>
138 <groupId>org.apache.maven.plugins</groupId>
139 <artifactId>maven-install-plugin</artifactId>
140 <version>2.4</version>
143 <phase>install</phase>
145 <goal>install-file</goal>
148 <packaging>jar</packaging>
149 <artifactId>${project.artifactId}</artifactId>
150 <groupId>${project.groupId}</groupId>
151 <version>${project.version}</version>
152 <file>${project.build.directory}/${project.artifactId}.jar</file>
163 <groupId>ch.qos.logback</groupId>
164 <artifactId>logback-core</artifactId>
165 <version>1.2.3</version>
168 <groupId>org.slf4j</groupId>
169 <artifactId>slf4j-log4j12</artifactId>
174 <groupId>ch.qos.logback</groupId>
175 <artifactId>logback-classic</artifactId>
176 <version>1.2.3</version>
179 <groupId>org.slf4j</groupId>
180 <artifactId>slf4j-log4j12</artifactId>
185 <groupId>com.att.eelf</groupId>
186 <artifactId>eelf-core</artifactId>
187 <version>1.0.1-oss</version>
192 <groupId>com.datastax.cassandra</groupId>
193 <artifactId>cassandra-driver-core</artifactId>
194 <version>${cassandra.version}</version>
198 <groupId>org.apache.zookeeper</groupId>
199 <artifactId>zookeeper</artifactId>
200 <version>${zookeeper.version}</version>
203 <groupId>org.slf4j</groupId>
204 <artifactId>slf4j-log4j12</artifactId>
210 <groupId>com.sun.jersey</groupId>
211 <artifactId>jersey-client</artifactId>
212 <version>${jersey1.version}</version>
215 <groupId>com.sun.jersey</groupId>
216 <artifactId>jersey-server</artifactId>
217 <version>${jersey1.version}</version>
220 <groupId>com.sun.jersey</groupId>
221 <artifactId>jersey-json</artifactId>
222 <version>${jersey1.version}</version>
226 <groupId>javax.servlet</groupId>
227 <artifactId>servlet-api</artifactId>
228 <version>2.4</version>
229 <scope>provided</scope>
231 <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId>
232 <version>3.0.1</version> <scope>provided</scope> </dependency>
233 <!-- <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId>
234 <version>3.0.1</version> <scope>provided</scope> </dependency> <dependency>
235 <groupId>org.apache.maven</groupId> <artifactId>maven-model</artifactId>
236 <version>3.3.9</version> </dependency> -->
238 <groupId>org.apache.commons</groupId>
239 <artifactId>commons-jcs-core</artifactId>
240 <version>2.2</version>
243 <groupId>commons-codec</groupId>
244 <artifactId>commons-codec</artifactId>
245 <version>1.11</version>
248 <groupId>io.swagger</groupId>
249 <artifactId>swagger-jersey-jaxrs</artifactId>
250 <version>1.5.8</version>
253 <groupId>com.google.guava</groupId>
254 <artifactId>guava</artifactId>
255 <version>19.0</version>
259 <groupId>org.cassandraunit</groupId>
260 <artifactId>cassandra-unit</artifactId>
261 <version>3.3.0.2</version>
265 <groupId>org.mockito</groupId>
266 <artifactId>mockito-all</artifactId>
267 <version>1.9.0</version>
271 <groupId>junit</groupId>
272 <artifactId>junit</artifactId>
273 <version>4.12</version>
277 <groupId>org.apache.curator</groupId>
278 <artifactId>curator-test</artifactId>
279 <version>2.3.0</version>
282 <groupId>org.apache.zookeeper</groupId>
283 <artifactId>zookeeper</artifactId>
286 <groupId>org.slf4j</groupId>
287 <artifactId>slf4j-log4j12</artifactId>
292 <!-- Added to force update dependency jars that are not secure Cassandra-Unit
293 depends on older version that is not secure -->
295 <groupId>org.apache.httpcomponents</groupId>
296 <artifactId>httpclient</artifactId>
297 <version>4.5.3</version>
304 <groupId>org.apache.maven.plugins</groupId>
305 <artifactId>maven-javadoc-plugin</artifactId>
306 <version>2.10.3</version>
308 <author>true</author>
309 <breakiterator>true</breakiterator>
310 <version>true</version>
312 <link>https://docs.oracle.com/javase/7/docs/api/</link>
313 <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
314 <link>http://docs.oracle.com/javaee/7/api/</link>
327 <groupId>io.fabric8</groupId>
328 <artifactId>docker-maven-plugin</artifactId>
329 <version>0.19.1</version>
331 <verbose>true</verbose>
332 <apiVersion>1.23</apiVersion>
333 <registry>nexus3.onap.org:10003</registry>
337 <name>onap/music/music</name>
338 <alias>docker_music</alias>
340 <cleanup>true</cleanup>
342 <tag>${docker.tag}</tag>
343 <tag>${docker.latest.tag}</tag>
345 <dockerFileDir>${project.basedir}</dockerFileDir>
347 <descriptorRef>artifact</descriptorRef>
353 <name>onap/music/cassandra_music</name>
354 <alias>docker_cassandra</alias>
356 <cleanup>true</cleanup>
358 <tag>3.0-${timestamp}</tag>
359 <tag>3.0-latest</tag>
361 <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
367 <name>onap/music/zookeeper_music</name>
368 <alias>docker_zookeeper</alias>
370 <cleanup>true</cleanup>
372 <tag>3.4-${timestamp}</tag>
373 <tag>3.4-latest</tag>
375 <dockerFileDir>${project.basedir}/distribution/zookeeper</dockerFileDir>
382 <name>onap/music/tomcat_music</name>
383 <alias>docker_tomcat</alias>
385 <cleanup>true</cleanup>
387 <tag>8.5-${timestamp}</tag>
388 <tag>8.5-latest</tag>
390 <dockerFileDir>${project.basedir}/distribution/tomcat</dockerFileDir>
398 <id>clean-images</id>
399 <phase>pre-clean</phase>
404 <removeAll>true</removeAll>
409 <id>generate-images</id>
410 <phase>package</phase>
417 <phase>deploy</phase>
422 <image>onap/music/music</image>
431 <distributionManagement>
433 <id>ecomp-releases</id>
434 <name>Release Repository</name>
435 <url>${nexusproxy}/${releaseNexusPath}</url>
438 <id>ecomp-snapshots</id>
439 <name>Snapshot Repository</name>
440 <url>${nexusproxy}/${snapshotNexusPath}</url>
441 </snapshotRepository>
442 <!-- added for javadoc -->
445 <url>dav:${nexusproxy}${sitePath}</url>
447 </distributionManagement>