81f0d8f6eadefc6f0190a01dc4d8dbcb8abcb3f2
[music.git] / jar / 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>jar</packaging>
28     <version>2.5.10-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>2.0.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         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
48
49         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
50         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
51         <!--nexus -->
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>
57         <!--maven -->
58         <timestamp>${maven.build.timestamp}</timestamp>
59         <maven.build.timestamp.format>yyyy.MM.dd.HH.mm</maven.build.timestamp.format>
60         <!--docker -->
61         <docker.tag>${project.version}-${timestamp}</docker.tag>
62         <docker.latest.tag>${project.version}-latest</docker.latest.tag>
63     </properties>
64
65     <repositories>
66         <repository>
67             <id>ecomp-releases</id>
68             <name>ECOMP Release Repository</name>
69             <url>${onap.nexus.url}/${releaseNexusPath}</url>
70         </repository>
71         <repository>
72             <id>ecomp-snapshots</id>
73             <name>Snapshot Repository</name>
74             <url>${nexusproxy}/${snapshotNexusPath}</url>
75         </repository>
76         <repository>
77             <id>ecomp-staging</id>
78             <name>Staging Repository</name>
79             <url>${nexusproxy}/${stagingNexusPath}</url>
80         </repository>
81     </repositories>
82
83     <build>
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>
90         <resources>
91             <resource>
92                 <directory>src/main/resources</directory>
93                 <filtering>true</filtering>
94             </resource>
95         </resources>
96         <plugins>
97             <plugin>
98                 <artifactId>maven-eclipse-plugin</artifactId>
99                 <version>2.9</version>
100                 <configuration>
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>
109                 </configuration>
110             </plugin>
111             <plugin>
112                 <groupId>org.apache.maven.plugins</groupId>
113                 <artifactId>maven-compiler-plugin</artifactId>
114                 <version>3.5.1</version>
115                 <configuration>
116                     <source>1.7</source>
117                     <target>1.7</target>
118                     <excludes>
119                          <exclude>jar/**</exclude>
120                        </excludes>
121                 </configuration>
122             </plugin>
123             <plugin>
124                 <artifactId>maven-war-plugin</artifactId>
125                 <version>2.4</version>
126                 <configuration>
127                     <warSourceDirectory>WebContent</warSourceDirectory>
128                 </configuration>
129             </plugin>
130             <plugin>
131                 <groupId>org.apache.maven.plugins</groupId>
132                 <artifactId>maven-jar-plugin</artifactId>
133                 <version>2.4</version>
134                 <executions>
135                     <execution>
136                         <id>make-a-jar</id>
137                         <phase>compile</phase>
138                         <goals>
139                             <goal>jar</goal>
140                         </goals>
141                         <configuration>
142                             <excludes>
143                                 <exclude>**/*.xml</exclude>
144                                 <exclude>**/*.properties</exclude>
145                                 <exclude>**/Sample*</exclude>
146                             </excludes>
147                         </configuration>
148                     </execution>
149                 </executions>
150             </plugin>
151             <plugin>
152                 <groupId>org.apache.maven.plugins</groupId>
153                 <artifactId>maven-install-plugin</artifactId>
154                 <version>2.4</version>
155                 <executions>
156                     <execution>
157                         <phase>install</phase>
158                         <goals>
159                             <goal>install-file</goal>
160                         </goals>
161                         <configuration>
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>
167                         </configuration>
168                     </execution>
169                 </executions>
170             </plugin>
171         </plugins>
172     </build>
173
174     <dependencies>
175         <!-- Development -->
176         <dependency>
177             <groupId>javax.servlet</groupId>
178             <artifactId>servlet-api</artifactId>
179             <version>2.4</version>
180             <scope>provided</scope>
181         </dependency>
182         <dependency>
183             <groupId>javax.servlet</groupId>
184             <artifactId>javax.servlet-api</artifactId>
185             <version>3.0.1</version>
186             <scope>provided</scope>
187         </dependency>
188         <!-- /Development -->
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.1.33.Final</version>
315         </dependency>
316         <dependency>
317             <groupId>io.netty</groupId>
318             <artifactId>netty-buffer</artifactId>
319             <version>4.1.33.Final</version>
320         </dependency>
321         <dependency>
322             <groupId>io.netty</groupId>
323             <artifactId>netty-codec</artifactId>
324             <version>4.1.33.Final</version>
325         </dependency>
326         <dependency>
327             <groupId>io.netty</groupId>
328             <artifactId>netty-common</artifactId>
329             <version>4.1.33.Final</version>
330         </dependency>
331         <dependency>
332             <groupId>io.netty</groupId>
333             <artifactId>netty-resolver</artifactId>
334             <version>4.1.33.Final</version>
335         </dependency>
336         <dependency>
337             <groupId>io.netty</groupId>
338             <artifactId>netty-transport</artifactId>
339             <version>4.1.33.Final</version>
340         </dependency>
341         <dependency>
342             <groupId>com.fasterxml.jackson.core</groupId>
343             <artifactId>jackson-databind</artifactId>
344             <version>2.9.4</version>
345         </dependency>
346         <dependency>
347             <groupId>org.apache.httpcomponents</groupId>
348             <artifactId>httpclient</artifactId>
349             <version>4.5.3</version>
350         </dependency>
351         <dependency>
352             <groupId>io.swagger</groupId>
353             <artifactId>swagger-jersey-jaxrs</artifactId>
354             <version>1.5.18</version>
355         </dependency>
356         <dependency>
357             <groupId>com.google.guava</groupId>
358             <artifactId>guava</artifactId>
359             <version>19.0</version>
360         </dependency>
361         <dependency>
362             <groupId>de.svenkubiak</groupId>
363             <artifactId>jBCrypt</artifactId>
364             <version>0.4.1</version>
365         </dependency>
366         <!-- <dependency>
367             <groupId>org.mindrot</groupId>
368             <artifactId>jbcrypt</artifactId>
369             <version>0.4</version>
370         </dependency>-->
371         <!-- https://mvnrepository.com/artifact/commons-codec/commons-codec -->
372         <dependency>
373             <groupId>commons-codec</groupId>
374             <artifactId>commons-codec</artifactId>
375             <version>1.9</version>
376         </dependency>
377         <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
378         <dependency>
379             <groupId>org.apache.commons</groupId>
380             <artifactId>commons-lang3</artifactId>
381             <version>3.0</version>
382         </dependency>
383
384     </dependencies>
385
386     <reporting>
387         <plugins>
388             <plugin>
389                 <groupId>org.apache.maven.plugins</groupId>
390                 <artifactId>maven-javadoc-plugin</artifactId>
391                 <version>2.10.3</version>
392                 <configuration>
393                     <author>true</author>
394                     <breakiterator>true</breakiterator>
395                     <version>true</version>
396                     <links>
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>
400                     </links>
401                 </configuration>
402             </plugin>
403         </plugins>
404     </reporting>
405
406     <profiles>
407         <profile>
408             <id>docker</id>
409             <build>
410                 <plugins>
411                     <plugin>
412                         <groupId>io.fabric8</groupId>
413                         <artifactId>docker-maven-plugin</artifactId>
414                         <version>0.19.1</version>
415                         <configuration>
416                             <verbose>true</verbose>
417                             <apiVersion>1.23</apiVersion>
418                             <registry>nexus3.onap.org:10003</registry>
419                             <images>
420                                 <!-- MUSIC War -->
421                                 <image>
422                                     <name>onap/music/music</name>
423                                     <alias>docker_music</alias>
424                                     <build>
425                                         <cleanup>true</cleanup>
426                                         <tags>
427                                             <tag>${docker.tag}</tag>
428                                             <tag>${docker.latest.tag}</tag>
429                                         </tags>
430                                         <dockerFileDir>${project.basedir}</dockerFileDir>
431                                         <assembly>
432                                             <descriptorRef>artifact</descriptorRef>
433                                         </assembly>
434                                     </build>
435                                 </image>
436                                 <!-- Cassandra -->
437                                 <image>
438                                     <name>onap/music/cassandra_music</name>
439                                     <alias>docker_cassandra</alias>
440                                     <build>
441                                         <cleanup>true</cleanup>
442                                         <tags>
443                                             <tag>3.0-${timestamp}</tag>
444                                             <tag>3.0-latest</tag>
445                                         </tags>
446                                         <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
447                                     </build>
448                                 </image>
449                                 <!-- Zookeeper -->
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> -->
454                                 <!-- tomcat 8.5 -->
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>\ -->
459                             </images>
460                         </configuration>
461                         <executions>
462                             <execution>
463                                 <id>clean-images</id>
464                                 <phase>pre-clean</phase>
465                                 <goals>
466                                     <goal>remove</goal>
467                                 </goals>
468                                 <configuration>
469                                     <removeAll>true</removeAll>
470                                     <image>music</image>
471                                 </configuration>
472                             </execution>
473                             <execution>
474                                 <id>generate-images</id>
475                                 <phase>package</phase>
476                                 <goals>
477                                     <goal>build</goal>
478                                 </goals>
479                             </execution>
480                             <execution>
481                                 <id>push-images</id>
482                                 <phase>deploy</phase>
483                                 <goals>
484                                     <goal>push</goal>
485                                 </goals>
486                                 <configuration>
487                                     <image>onap/music/music</image>
488                                 </configuration>
489                             </execution>
490                         </executions>
491                     </plugin>
492                 </plugins>
493             </build>
494         </profile>
495     </profiles>
496     <distributionManagement>
497         <repository>
498             <id>ecomp-releases</id>
499             <name>Release Repository</name>
500             <url>${nexusproxy}/${releaseNexusPath}</url>
501         </repository>
502         <snapshotRepository>
503             <id>ecomp-snapshots</id>
504             <name>Snapshot Repository</name>
505             <url>${nexusproxy}/${snapshotNexusPath}</url>
506         </snapshotRepository>
507         <!-- added for javadoc -->
508         <site>
509             <id>ecomp-site</id>
510             <url>dav:${nexusproxy}${sitePath}</url>
511         </site>
512     </distributionManagement>
513 </project>