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>jar</packaging>
28 <version>2.5.10-SNAPSHOT</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>2.0.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>
47 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
49 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
50 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
52 <nexusproxy>https://nexus.onap.org</nexusproxy>
53 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
54 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
55 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
56 <sitePath>/content/sites/site/org/onap/music/${project.version}</sitePath>
58 <timestamp>${maven.build.timestamp}</timestamp>
59 <maven.build.timestamp.format>yyyy.MM.dd.HH.mm</maven.build.timestamp.format>
61 <docker.tag>${project.version}-${timestamp}</docker.tag>
62 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
67 <id>ecomp-releases</id>
68 <name>ECOMP Release Repository</name>
69 <url>${onap.nexus.url}/${releaseNexusPath}</url>
72 <id>ecomp-snapshots</id>
73 <name>Snapshot Repository</name>
74 <url>${nexusproxy}/${snapshotNexusPath}</url>
77 <id>ecomp-staging</id>
78 <name>Staging Repository</name>
79 <url>${nexusproxy}/${stagingNexusPath}</url>
84 <finalName>MUSIC</finalName>
85 <sourceDirectory>src/main/java</sourceDirectory>
86 <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>
87 <testSourceDirectory>src/test/java</testSourceDirectory>
88 <testOutputDirectory>target/test-classes</testOutputDirectory>
89 <defaultGoal>validate</defaultGoal>
92 <directory>src/main/resources</directory>
93 <filtering>true</filtering>
98 <artifactId>maven-eclipse-plugin</artifactId>
99 <version>2.9</version>
101 <additionalProjectnatures>
102 <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
103 </additionalProjectnatures>
104 <additionalBuildcommands>
105 <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
106 </additionalBuildcommands>
107 <downloadSources>true</downloadSources>
108 <downloadJavadocs>true</downloadJavadocs>
112 <groupId>org.apache.maven.plugins</groupId>
113 <artifactId>maven-compiler-plugin</artifactId>
114 <version>3.5.1</version>
119 <exclude>jar/**</exclude>
124 <artifactId>maven-war-plugin</artifactId>
125 <version>2.4</version>
127 <warSourceDirectory>WebContent</warSourceDirectory>
131 <groupId>org.apache.maven.plugins</groupId>
132 <artifactId>maven-jar-plugin</artifactId>
133 <version>2.4</version>
137 <phase>compile</phase>
143 <exclude>**/*.xml</exclude>
144 <exclude>**/*.properties</exclude>
145 <exclude>**/Sample*</exclude>
152 <groupId>org.apache.maven.plugins</groupId>
153 <artifactId>maven-install-plugin</artifactId>
154 <version>2.4</version>
157 <phase>install</phase>
159 <goal>install-file</goal>
162 <packaging>jar</packaging>
163 <artifactId>${project.artifactId}</artifactId>
164 <groupId>${project.groupId}</groupId>
165 <version>${project.version}</version>
166 <file>${project.build.directory}/${project.artifactId}.jar</file>
177 <groupId>javax.servlet</groupId>
178 <artifactId>servlet-api</artifactId>
179 <version>2.4</version>
180 <scope>provided</scope>
183 <groupId>javax.servlet</groupId>
184 <artifactId>javax.servlet-api</artifactId>
185 <version>3.0.1</version>
186 <scope>provided</scope>
188 <!-- /Development -->
191 <groupId>ch.qos.logback</groupId>
192 <artifactId>logback-core</artifactId>
193 <version>1.2.3</version>
196 <groupId>org.slf4j</groupId>
197 <artifactId>slf4j-log4j12</artifactId>
202 <groupId>ch.qos.logback</groupId>
203 <artifactId>logback-classic</artifactId>
204 <version>1.2.3</version>
207 <groupId>org.slf4j</groupId>
208 <artifactId>slf4j-log4j12</artifactId>
213 <groupId>com.att.eelf</groupId>
214 <artifactId>eelf-core</artifactId>
215 <version>1.0.1-oss</version>
221 <groupId>com.datastax.cassandra</groupId>
222 <artifactId>cassandra-driver-core</artifactId>
223 <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>
243 <groupId>com.sun.jersey</groupId>
244 <artifactId>jersey-client</artifactId>
245 <version>${jersey1.version}</version>
248 <groupId>com.sun.jersey</groupId>
249 <artifactId>jersey-server</artifactId>
250 <version>${jersey1.version}</version>
253 <groupId>com.sun.jersey</groupId>
254 <artifactId>jersey-json</artifactId>
255 <version>${jersey1.version}</version>
258 <groupId>com.sun.jersey</groupId>
259 <artifactId>jersey-servlet</artifactId>
260 <version>${jersey1.version}</version>
265 <groupId>org.apache.commons</groupId>
266 <artifactId>commons-jcs-core</artifactId>
267 <version>2.2</version>
270 <groupId>commons-codec</groupId>
271 <artifactId>commons-codec</artifactId>
272 <version>1.11</version>
277 <groupId>junit</groupId>
278 <artifactId>junit</artifactId>
279 <version>4.12</version>
283 <groupId>org.cassandraunit</groupId>
284 <artifactId>cassandra-unit</artifactId>
285 <version>3.3.0.2</version>
289 <groupId>org.apache.curator</groupId>
290 <artifactId>curator-test</artifactId>
291 <version>2.3.0</version>
294 <groupId>org.apache.zookeeper</groupId>
295 <artifactId>zookeeper</artifactId>
298 <groupId>org.slf4j</groupId>
299 <artifactId>slf4j-log4j12</artifactId>
305 <groupId>org.mockito</groupId>
306 <artifactId>mockito-all</artifactId>
307 <version>1.9.0</version>
312 <groupId>io.netty</groupId>
313 <artifactId>netty-handler</artifactId>
314 <version>4.1.33.Final</version>
317 <groupId>io.netty</groupId>
318 <artifactId>netty-buffer</artifactId>
319 <version>4.1.33.Final</version>
322 <groupId>io.netty</groupId>
323 <artifactId>netty-codec</artifactId>
324 <version>4.1.33.Final</version>
327 <groupId>io.netty</groupId>
328 <artifactId>netty-common</artifactId>
329 <version>4.1.33.Final</version>
332 <groupId>io.netty</groupId>
333 <artifactId>netty-resolver</artifactId>
334 <version>4.1.33.Final</version>
337 <groupId>io.netty</groupId>
338 <artifactId>netty-transport</artifactId>
339 <version>4.1.33.Final</version>
342 <groupId>com.fasterxml.jackson.core</groupId>
343 <artifactId>jackson-databind</artifactId>
344 <version>2.9.4</version>
347 <groupId>org.apache.httpcomponents</groupId>
348 <artifactId>httpclient</artifactId>
349 <version>4.5.3</version>
352 <groupId>io.swagger</groupId>
353 <artifactId>swagger-jersey-jaxrs</artifactId>
354 <version>1.5.18</version>
357 <groupId>com.google.guava</groupId>
358 <artifactId>guava</artifactId>
359 <version>19.0</version>
362 <groupId>de.svenkubiak</groupId>
363 <artifactId>jBCrypt</artifactId>
364 <version>0.4.1</version>
367 <groupId>org.mindrot</groupId>
368 <artifactId>jbcrypt</artifactId>
369 <version>0.4</version>
371 <!-- https://mvnrepository.com/artifact/commons-codec/commons-codec -->
373 <groupId>commons-codec</groupId>
374 <artifactId>commons-codec</artifactId>
375 <version>1.9</version>
377 <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
379 <groupId>org.apache.commons</groupId>
380 <artifactId>commons-lang3</artifactId>
381 <version>3.0</version>
389 <groupId>org.apache.maven.plugins</groupId>
390 <artifactId>maven-javadoc-plugin</artifactId>
391 <version>2.10.3</version>
393 <author>true</author>
394 <breakiterator>true</breakiterator>
395 <version>true</version>
397 <link>https://docs.oracle.com/javase/7/docs/api/</link>
398 <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
399 <link>http://docs.oracle.com/javaee/7/api/</link>
412 <groupId>io.fabric8</groupId>
413 <artifactId>docker-maven-plugin</artifactId>
414 <version>0.19.1</version>
416 <verbose>true</verbose>
417 <apiVersion>1.23</apiVersion>
418 <registry>nexus3.onap.org:10003</registry>
422 <name>onap/music/music</name>
423 <alias>docker_music</alias>
425 <cleanup>true</cleanup>
427 <tag>${docker.tag}</tag>
428 <tag>${docker.latest.tag}</tag>
430 <dockerFileDir>${project.basedir}</dockerFileDir>
432 <descriptorRef>artifact</descriptorRef>
438 <name>onap/music/cassandra_music</name>
439 <alias>docker_cassandra</alias>
441 <cleanup>true</cleanup>
443 <tag>3.0-${timestamp}</tag>
444 <tag>3.0-latest</tag>
446 <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
450 <!-- <image> <name>onap/music/zookeeper_music</name>
451 <alias>docker_zookeeper</alias> <build> <cleanup>true</cleanup> <tags> <tag>3.4-${timestamp}</tag>
452 <tag>3.4-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/zookeeper</dockerFileDir>
453 </build> </image> -->
455 <!-- <image> <name>onap/music/tomcat_music</name>
456 <alias>docker_tomcat</alias> <build> <cleanup>true</cleanup> <tags> <tag>8.5-${timestamp}</tag>
457 <tag>8.5-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/tomcat</dockerFileDir>
458 </build> </image>\ -->
463 <id>clean-images</id>
464 <phase>pre-clean</phase>
469 <removeAll>true</removeAll>
474 <id>generate-images</id>
475 <phase>package</phase>
482 <phase>deploy</phase>
487 <image>onap/music/music</image>
496 <distributionManagement>
498 <id>ecomp-releases</id>
499 <name>Release Repository</name>
500 <url>${nexusproxy}/${releaseNexusPath}</url>
503 <id>ecomp-snapshots</id>
504 <name>Snapshot Repository</name>
505 <url>${nexusproxy}/${snapshotNexusPath}</url>
506 </snapshotRepository>
507 <!-- added for javadoc -->
510 <url>dav:${nexusproxy}${sitePath}</url>
512 </distributionManagement>