Updates to Callback Api and Connection
[music.git] / pom.xml
1 <!-- 
2  ============LICENSE_START==========================================
3  org.onap.music
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
10  
11      http://www.apache.org/licenses/LICENSE-2.0
12  
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.
18  
19  ============LICENSE_END=============================================
20  ====================================================================
21 -->  
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>3.0.5-SNAPSHOT</version>
29     <description>
30             This is the MUSIC REST interface, packaged as a war file.
31     </description>
32
33     <parent>
34         <groupId>org.onap.oparent</groupId>
35         <artifactId>oparent</artifactId>
36         <version>0.1.1</version>
37         <relativePath />
38     </parent>
39
40     <properties>
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
48         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
49         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
50         <!--nexus -->
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>
56         <!--maven -->
57         <timestamp>${maven.build.timestamp}</timestamp>
58         <maven.build.timestamp.format>yyyy.MM.dd.HH.mm</maven.build.timestamp.format>
59         <!--docker -->
60         <docker.tag>${project.version}-${timestamp}</docker.tag>
61         <docker.latest.tag>${project.version}-latest</docker.latest.tag>
62     </properties>
63
64     <repositories>
65         <repository>
66             <id>ecomp-releases</id>
67             <name>ECOMP Release Repository</name>
68             <url>${onap.nexus.url}/${releaseNexusPath}</url>
69         </repository>
70         <repository>
71             <id>ecomp-snapshots</id>
72             <name>Snapshot Repository</name>
73             <url>${nexusproxy}/${snapshotNexusPath}</url>
74         </repository>
75         <repository>
76             <id>ecomp-staging</id>
77             <name>Staging Repository</name>
78             <url>${nexusproxy}/${stagingNexusPath}</url>
79         </repository>
80     </repositories>
81
82     <build>
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>
89         <resources>
90             <resource>
91                 <directory>src/main/resources</directory>
92                 <filtering>true</filtering>
93             </resource>
94         </resources>
95         <plugins>
96             <plugin>
97                 <artifactId>maven-eclipse-plugin</artifactId>
98                 <version>2.9</version>
99                 <configuration>
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>
108                 </configuration>
109             </plugin>
110             <plugin>
111                 <groupId>org.apache.maven.plugins</groupId>
112                 <artifactId>maven-compiler-plugin</artifactId>
113                 <version>3.5.1</version>
114                 <configuration>
115                     <source>1.7</source>
116                     <target>1.7</target>
117                     <excludes>
118                                         <exclude>jar/**</exclude>
119                                         </excludes>
120                 </configuration>
121             </plugin>
122             <plugin>
123                 <artifactId>maven-war-plugin</artifactId>
124                 <version>2.4</version>
125                 <configuration>
126                     <warSourceDirectory>WebContent</warSourceDirectory>
127                 </configuration>
128             </plugin>
129             <plugin>
130                 <groupId>org.apache.maven.plugins</groupId>
131                 <artifactId>maven-jar-plugin</artifactId>
132                 <version>2.4</version>
133                 <executions>
134                     <execution>
135                         <id>make-a-jar</id>
136                         <phase>compile</phase>
137                         <goals>
138                             <goal>jar</goal>
139                         </goals>
140                         <configuration>
141                             <excludes>
142                                 <exclude>**/*.xml</exclude>
143                                 <exclude>**/*.properties</exclude>
144                                 <exclude>**/Sample*</exclude>
145                             </excludes>
146                         </configuration>
147                     </execution>
148                 </executions>
149             </plugin>
150             <plugin>
151                 <groupId>org.apache.maven.plugins</groupId>
152                 <artifactId>maven-install-plugin</artifactId>
153                 <version>2.4</version>
154                 <executions>
155                     <execution>
156                         <phase>install</phase>
157                         <goals>
158                             <goal>install-file</goal>
159                         </goals>
160                         <configuration>
161                             <packaging>jar</packaging>
162                             <artifactId>${project.artifactId}</artifactId>
163                             <groupId>${project.groupId}</groupId>
164                             <version>${project.version}</version>
165                             <file>${project.build.directory}/${project.artifactId}.jar</file>
166                         </configuration>
167                     </execution>
168                 </executions>
169             </plugin>
170         </plugins>
171     </build>
172
173     <dependencies>
174         <!-- Development -->
175         <dependency>
176             <groupId>javax.servlet</groupId>
177             <artifactId>servlet-api</artifactId>
178             <version>2.4</version>
179             <scope>provided</scope>
180         </dependency>
181         <dependency>
182             <groupId>javax.servlet</groupId>
183             <artifactId>javax.servlet-api</artifactId>
184             <version>3.0.1</version>
185             <scope>provided</scope>
186         </dependency>
187         <!-- /Development -->
188         
189         <!-- Logging -->
190         <dependency>
191             <groupId>ch.qos.logback</groupId>
192             <artifactId>logback-core</artifactId>
193             <version>1.2.3</version>
194             <exclusions>
195                 <exclusion>
196                     <groupId>org.slf4j</groupId>
197                     <artifactId>slf4j-log4j12</artifactId>
198                 </exclusion>
199             </exclusions>
200         </dependency>
201         <dependency>
202             <groupId>ch.qos.logback</groupId>
203             <artifactId>logback-classic</artifactId>
204             <version>1.2.3</version>
205             <exclusions>
206                 <exclusion>
207                     <groupId>org.slf4j</groupId>
208                     <artifactId>slf4j-log4j12</artifactId>
209                 </exclusion>
210             </exclusions>
211         </dependency>
212         <dependency>
213             <groupId>com.att.eelf</groupId>
214             <artifactId>eelf-core</artifactId>
215             <version>1.0.1-oss</version>
216         </dependency>
217         <!-- End Logging -->
218         
219         <!-- Cassandra -->       
220         <dependency>
221             <groupId>com.datastax.cassandra</groupId>
222             <artifactId>cassandra-driver-core</artifactId>
223             <version>${cassandra.version}</version>
224         </dependency>
225         <!-- /Cassandra -->       
226         
227         <!-- Zookeeper -->
228         <dependency>
229             <groupId>org.apache.zookeeper</groupId>
230             <artifactId>zookeeper</artifactId>
231             <version>${zookeeper.version}</version>
232             <exclusions>
233                 <exclusion>
234                     <groupId>org.slf4j</groupId>
235                     <artifactId>slf4j-log4j12</artifactId>
236                 </exclusion>
237             </exclusions>
238         </dependency>
239         <!-- /Zookeeper -->
240         
241         <!-- Jersey -->
242         <dependency>
243             <groupId>com.sun.jersey</groupId>
244             <artifactId>jersey-client</artifactId>
245             <version>${jersey1.version}</version>
246         </dependency>
247         <dependency>
248             <groupId>com.sun.jersey</groupId>
249             <artifactId>jersey-server</artifactId>
250             <version>${jersey1.version}</version>
251         </dependency>
252         <dependency>
253             <groupId>com.sun.jersey</groupId>
254             <artifactId>jersey-json</artifactId>
255             <version>${jersey1.version}</version>
256         </dependency>
257         <dependency> 
258             <groupId>com.sun.jersey</groupId> 
259             <artifactId>jersey-servlet</artifactId> 
260             <version>${jersey1.version}</version> 
261         </dependency>
262         <!-- /Jersey -->
263
264         <dependency>
265             <groupId>org.apache.commons</groupId>
266             <artifactId>commons-jcs-core</artifactId>
267             <version>2.2</version>
268         </dependency>
269         <dependency>
270             <groupId>commons-codec</groupId>
271             <artifactId>commons-codec</artifactId>
272             <version>1.11</version>
273         </dependency>
274
275         <!-- Testing -->
276         <dependency>
277             <groupId>junit</groupId>
278             <artifactId>junit</artifactId>
279             <version>4.12</version>
280             <scope>test</scope>
281         </dependency>
282         <dependency>
283             <groupId>org.cassandraunit</groupId>
284             <artifactId>cassandra-unit</artifactId>
285             <version>3.3.0.2</version>
286             <scope>test</scope>
287         </dependency>
288         <dependency>
289             <groupId>org.apache.curator</groupId>
290             <artifactId>curator-test</artifactId>
291             <version>2.3.0</version>
292             <exclusions>
293                 <exclusion>
294                     <groupId>org.apache.zookeeper</groupId>
295                     <artifactId>zookeeper</artifactId>
296                 </exclusion>
297                 <exclusion>
298                     <groupId>org.slf4j</groupId>
299                     <artifactId>slf4j-log4j12</artifactId>
300                 </exclusion>
301             </exclusions>
302             <scope>test</scope>
303         </dependency>
304         <dependency>
305             <groupId>org.mockito</groupId>
306             <artifactId>mockito-all</artifactId>
307             <version>1.9.0</version>
308             <scope>test</scope>
309         </dependency>
310         <!--  /Testing -->
311         <dependency>
312             <groupId>io.netty</groupId>
313             <artifactId>netty-handler</artifactId>
314             <version>4.0.56.Final</version>
315         </dependency>
316         <dependency>
317             <groupId>com.fasterxml.jackson.core</groupId>
318             <artifactId>jackson-databind</artifactId>
319             <version>2.9.4</version>
320         </dependency>
321         <dependency>
322             <groupId>org.apache.httpcomponents</groupId>
323             <artifactId>httpclient</artifactId>
324             <version>4.5.3</version>
325         </dependency>
326         <dependency>
327             <groupId>io.swagger</groupId>
328             <artifactId>swagger-jersey-jaxrs</artifactId>
329             <version>1.5.18</version>
330         </dependency>
331         <dependency>
332             <groupId>com.google.guava</groupId>
333             <artifactId>guava</artifactId>
334             <version>19.0</version>
335         </dependency>
336         <dependency>
337             <groupId>org.mindrot</groupId>
338             <artifactId>jbcrypt</artifactId>
339             <version>0.4</version>
340         </dependency>
341         <dependency>
342                    <groupId>com.owlike</groupId>
343                    <artifactId>genson</artifactId>
344                    <version>0.99</version>
345         </dependency>
346
347     </dependencies>
348
349     <reporting>
350         <plugins>
351             <plugin>
352                 <groupId>org.apache.maven.plugins</groupId>
353                 <artifactId>maven-javadoc-plugin</artifactId>
354                 <version>2.10.3</version>
355                 <configuration>
356                     <author>true</author>
357                     <breakiterator>true</breakiterator>
358                     <version>true</version>
359                     <links>
360                         <link>https://docs.oracle.com/javase/7/docs/api/</link>
361                         <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
362                         <link>http://docs.oracle.com/javaee/7/api/</link>
363                     </links>
364                 </configuration>
365             </plugin>
366         </plugins>
367     </reporting>
368
369     <profiles>
370         <profile>
371             <id>docker</id>
372             <build>
373                 <plugins>
374                     <plugin>
375                         <groupId>io.fabric8</groupId>
376                         <artifactId>docker-maven-plugin</artifactId>
377                         <version>0.19.1</version>
378                         <configuration>
379                             <verbose>true</verbose>
380                             <apiVersion>1.23</apiVersion>
381                             <registry>nexus3.onap.org:10003</registry>
382                             <images>
383                                 <!-- MUSIC War -->
384                                 <image>
385                                     <name>onap/music/music</name>
386                                     <alias>docker_music</alias>
387                                     <build>
388                                         <cleanup>true</cleanup>
389                                         <tags>
390                                             <tag>${docker.tag}</tag>
391                                             <tag>${docker.latest.tag}</tag>
392                                         </tags>
393                                         <dockerFileDir>${project.basedir}</dockerFileDir>
394                                         <assembly>
395                                             <descriptorRef>artifact</descriptorRef>
396                                         </assembly>
397                                     </build>
398                                 </image>
399                                 <!-- Cassandra -->
400                                 <image>
401                                     <name>onap/music/cassandra_music</name>
402                                     <alias>docker_cassandra</alias>
403                                     <build>
404                                         <cleanup>true</cleanup>
405                                         <tags>
406                                             <tag>3.0-${timestamp}</tag>
407                                             <tag>3.0-latest</tag>
408                                         </tags>
409                                         <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
410                                     </build>
411                                 </image>
412                                 <!-- Zookeeper -->
413                                 <!-- <image> <name>onap/music/zookeeper_music</name> 
414                                     <alias>docker_zookeeper</alias> <build> <cleanup>true</cleanup> <tags> <tag>3.4-${timestamp}</tag> 
415                                     <tag>3.4-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/zookeeper</dockerFileDir> 
416                                     </build> </image> -->
417                                 <!-- tomcat 8.5 -->
418                                 <!-- <image> <name>onap/music/tomcat_music</name> 
419                                     <alias>docker_tomcat</alias> <build> <cleanup>true</cleanup> <tags> <tag>8.5-${timestamp}</tag> 
420                                     <tag>8.5-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/tomcat</dockerFileDir> 
421                                     </build> </image>\ -->
422                             </images>
423                         </configuration>
424                         <executions>
425                             <execution>
426                                 <id>clean-images</id>
427                                 <phase>pre-clean</phase>
428                                 <goals>
429                                     <goal>remove</goal>
430                                 </goals>
431                                 <configuration>
432                                     <removeAll>true</removeAll>
433                                     <image>music</image>
434                                 </configuration>
435                             </execution>
436                             <execution>
437                                 <id>generate-images</id>
438                                 <phase>package</phase>
439                                 <goals>
440                                     <goal>build</goal>
441                                 </goals>
442                             </execution>
443                             <execution>
444                                 <id>push-images</id>
445                                 <phase>deploy</phase>
446                                 <goals>
447                                     <goal>push</goal>
448                                 </goals>
449                                 <configuration>
450                                     <image>onap/music/music</image>
451                                 </configuration>
452                             </execution>
453                         </executions>
454                     </plugin>
455                 </plugins>
456             </build>
457         </profile>
458     </profiles>
459     <distributionManagement>
460         <repository>
461             <id>ecomp-releases</id>
462             <name>Release Repository</name>
463             <url>${nexusproxy}/${releaseNexusPath}</url>
464         </repository>
465         <snapshotRepository>
466             <id>ecomp-snapshots</id>
467             <name>Snapshot Repository</name>
468             <url>${nexusproxy}/${snapshotNexusPath}</url>
469         </snapshotRepository>
470         <!-- added for javadoc -->
471         <site>
472             <id>ecomp-site</id>
473             <url>dav:${nexusproxy}${sitePath}</url>
474         </site>
475     </distributionManagement>
476 </project>