Swagger Update and other updates.
[music.git] / pom.xml
1 <?xml version="1.0"?>
2 <!-- 
3  ============LICENSE_START==========================================
4  org.onap.music
5  ===================================================================
6   Copyright (c) 2017 AT&T Intellectual Property
7  ===================================================================
8   Licensed under the Apache License, Version 2.0 (the "License");
9   you may not use this file except in compliance with the License.
10   You may obtain a copy of the License at
11
12      http://www.apache.org/licenses/LICENSE-2.0
13
14   Unless required by applicable law or agreed to in writing, software
15   distributed under the License is distributed on an "AS IS" BASIS,
16   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   See the License for the specific language governing permissions and
18   limitations under the License.
19
20  ============LICENSE_END=============================================
21  ====================================================================
22 -->
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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.15-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>1.2.0</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         <!-- <dependency>
189                         <groupId>com.hazelcast</groupId>
190                         <artifactId>hazelcast-client</artifactId>
191                         <version>3.7.1</version>
192                 </dependency> -->
193         <!-- Logging -->
194         <dependency>
195             <groupId>ch.qos.logback</groupId>
196             <artifactId>logback-core</artifactId>
197             <version>1.2.3</version>
198             <exclusions>
199                 <exclusion>
200                     <groupId>org.slf4j</groupId>
201                     <artifactId>slf4j-log4j12</artifactId>
202                 </exclusion>
203             </exclusions>
204         </dependency>
205         <dependency>
206             <groupId>ch.qos.logback</groupId>
207             <artifactId>logback-classic</artifactId>
208             <version>1.2.3</version>
209             <exclusions>
210                 <exclusion>
211                     <groupId>org.slf4j</groupId>
212                     <artifactId>slf4j-log4j12</artifactId>
213                 </exclusion>
214             </exclusions>
215         </dependency>
216         <dependency>
217             <groupId>com.att.eelf</groupId>
218             <artifactId>eelf-core</artifactId>
219             <version>1.0.1-oss</version>
220         </dependency>
221         <!-- End Logging -->
222
223         <!-- Cassandra -->       
224         <dependency>
225             <groupId>com.datastax.cassandra</groupId>
226             <artifactId>cassandra-driver-core</artifactId>
227             <version>${cassandra.version}</version>
228         </dependency>
229         <!-- /Cassandra -->       
230
231         <!-- Zookeeper -->
232         <dependency>
233             <groupId>org.apache.zookeeper</groupId>
234             <artifactId>zookeeper</artifactId>
235             <version>${zookeeper.version}</version>
236             <exclusions>
237                 <exclusion>
238                     <groupId>org.slf4j</groupId>
239                     <artifactId>slf4j-log4j12</artifactId>
240                 </exclusion>
241             </exclusions>
242         </dependency>
243         <!-- /Zookeeper -->
244
245         <!-- Jersey -->
246         <dependency>
247             <groupId>com.sun.jersey</groupId>
248             <artifactId>jersey-client</artifactId>
249             <version>${jersey1.version}</version>
250         </dependency>
251         <dependency>
252             <groupId>com.sun.jersey</groupId>
253             <artifactId>jersey-server</artifactId>
254             <version>${jersey1.version}</version>
255         </dependency>
256         <dependency>
257             <groupId>com.sun.jersey</groupId>
258             <artifactId>jersey-json</artifactId>
259             <version>${jersey1.version}</version>
260         </dependency>
261         <dependency> 
262             <groupId>com.sun.jersey</groupId> 
263             <artifactId>jersey-servlet</artifactId> 
264             <version>${jersey1.version}</version> 
265         </dependency>
266         <!-- /Jersey -->
267
268         <dependency>
269             <groupId>org.apache.commons</groupId>
270             <artifactId>commons-jcs-core</artifactId>
271             <version>2.2</version>
272         </dependency>
273         <dependency>
274             <groupId>commons-codec</groupId>
275             <artifactId>commons-codec</artifactId>
276             <version>1.11</version>
277         </dependency>
278
279         <!-- Testing -->
280         <dependency>
281             <groupId>junit</groupId>
282             <artifactId>junit</artifactId>
283             <version>4.12</version>
284             <scope>test</scope>
285         </dependency>
286         <dependency>
287             <groupId>org.cassandraunit</groupId>
288             <artifactId>cassandra-unit</artifactId>
289             <version>3.3.0.2</version>
290             <scope>test</scope>
291         </dependency>
292         <dependency>
293             <groupId>org.apache.curator</groupId>
294             <artifactId>curator-test</artifactId>
295             <version>2.3.0</version>
296             <exclusions>
297                 <exclusion>
298                     <groupId>org.apache.zookeeper</groupId>
299                     <artifactId>zookeeper</artifactId>
300                 </exclusion>
301                 <exclusion>
302                     <groupId>org.slf4j</groupId>
303                     <artifactId>slf4j-log4j12</artifactId>
304                 </exclusion>
305             </exclusions>
306             <scope>test</scope>
307         </dependency>
308         <dependency>
309             <groupId>org.mockito</groupId>
310             <artifactId>mockito-all</artifactId>
311             <version>1.9.0</version>
312             <scope>test</scope>
313         </dependency>
314         <!--  /Testing -->
315         <dependency>
316             <groupId>io.netty</groupId>
317             <artifactId>netty-handler</artifactId>
318             <version>4.0.56.Final</version>
319         </dependency>
320         <dependency>
321             <groupId>com.fasterxml.jackson.core</groupId>
322             <artifactId>jackson-databind</artifactId>
323             <version>2.9.4</version>
324         </dependency>
325         <dependency>
326             <groupId>org.apache.httpcomponents</groupId>
327             <artifactId>httpclient</artifactId>
328             <version>4.5.3</version>
329         </dependency>
330         <dependency>
331             <groupId>io.swagger</groupId>
332             <artifactId>swagger-jersey-jaxrs</artifactId>
333             <version>1.5.18</version>
334         </dependency>
335         <dependency>
336             <groupId>com.google.guava</groupId>
337             <artifactId>guava</artifactId>
338
339         </dependency>
340         <dependency>
341             <groupId>org.mindrot</groupId>
342             <artifactId>jbcrypt</artifactId>
343             <version>0.4</version>
344         </dependency>
345         <dependency>
346                    <groupId>com.owlike</groupId>
347                    <artifactId>genson</artifactId>
348                    <version>1.3</version>
349         </dependency>
350
351     </dependencies>
352
353     <reporting>
354         <plugins>
355             <plugin>
356                 <groupId>org.apache.maven.plugins</groupId>
357                 <artifactId>maven-javadoc-plugin</artifactId>
358                 <version>2.10.3</version>
359                 <configuration>
360                     <author>true</author>
361                     <breakiterator>true</breakiterator>
362                     <version>true</version>
363                     <links>
364                         <link>https://docs.oracle.com/javase/7/docs/api/</link>
365                         <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
366                         <link>http://docs.oracle.com/javaee/7/api/</link>
367                     </links>
368                 </configuration>
369             </plugin>
370         </plugins>
371     </reporting>
372
373     <profiles>
374         <profile>
375             <id>docker</id>
376             <build>
377                 <plugins>
378                     <plugin>
379                         <groupId>io.fabric8</groupId>
380                         <artifactId>docker-maven-plugin</artifactId>
381                         <version>0.19.1</version>
382                         <configuration>
383                             <verbose>true</verbose>
384                             <apiVersion>1.23</apiVersion>
385                             <registry>nexus3.onap.org:10003</registry>
386                             <images>
387                                 <!-- MUSIC War -->
388                                 <image>
389                                     <name>onap/music/music</name>
390                                     <alias>docker_music</alias>
391                                     <build>
392                                         <cleanup>true</cleanup>
393                                         <tags>
394                                             <tag>${docker.tag}</tag>
395                                             <tag>${docker.latest.tag}</tag>
396                                         </tags>
397                                         <dockerFileDir>${project.basedir}</dockerFileDir>
398                                         <assembly>
399                                             <descriptorRef>artifact</descriptorRef>
400                                         </assembly>
401                                     </build>
402                                 </image>
403                                 <!-- Cassandra -->
404                                 <image>
405                                     <name>onap/music/cassandra_music</name>
406                                     <alias>docker_cassandra</alias>
407                                     <build>
408                                         <cleanup>true</cleanup>
409                                         <tags>
410                                             <tag>3.0-${timestamp}</tag>
411                                             <tag>3.0-latest</tag>
412                                         </tags>
413                                         <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
414                                     </build>
415                                 </image>
416                                 <!-- Zookeeper -->
417                                 <!-- <image> <name>onap/music/zookeeper_music</name> 
418                                     <alias>docker_zookeeper</alias> <build> <cleanup>true</cleanup> <tags> <tag>3.4-${timestamp}</tag> 
419                                     <tag>3.4-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/zookeeper</dockerFileDir> 
420                                     </build> </image> -->
421                                 <!-- tomcat 8.5 -->
422                                 <!-- <image> <name>onap/music/tomcat_music</name> 
423                                     <alias>docker_tomcat</alias> <build> <cleanup>true</cleanup> <tags> <tag>8.5-${timestamp}</tag> 
424                                     <tag>8.5-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/tomcat</dockerFileDir> 
425                                     </build> </image>\ -->
426                             </images>
427                         </configuration>
428                         <executions>
429                             <execution>
430                                 <id>clean-images</id>
431                                 <phase>pre-clean</phase>
432                                 <goals>
433                                     <goal>remove</goal>
434                                 </goals>
435                                 <configuration>
436                                     <removeAll>true</removeAll>
437                                     <image>music</image>
438                                 </configuration>
439                             </execution>
440                             <execution>
441                                 <id>generate-images</id>
442                                 <phase>package</phase>
443                                 <goals>
444                                     <goal>build</goal>
445                                 </goals>
446                             </execution>
447                             <execution>
448                                 <id>push-images</id>
449                                 <phase>deploy</phase>
450                                 <goals>
451                                     <goal>push</goal>
452                                 </goals>
453                                 <configuration>
454                                     <image>onap/music/music</image>
455                                 </configuration>
456                             </execution>
457                         </executions>
458                     </plugin>
459                 </plugins>
460             </build>
461         </profile>
462     </profiles>
463     <distributionManagement>
464         <repository>
465             <id>ecomp-releases</id>
466             <name>Release Repository</name>
467             <url>${nexusproxy}/${releaseNexusPath}</url>
468         </repository>
469         <snapshotRepository>
470             <id>ecomp-snapshots</id>
471             <name>Snapshot Repository</name>
472             <url>${nexusproxy}/${snapshotNexusPath}</url>
473         </snapshotRepository>
474         <!-- added for javadoc -->
475         <site>
476             <id>ecomp-site</id>
477             <url>dav:${nexusproxy}${sitePath}</url>
478         </site>
479     </distributionManagement>
480 </project>