Update oparent version
[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.8</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
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         <!-- Logging -->
189         <dependency>
190             <groupId>ch.qos.logback</groupId>
191             <artifactId>logback-core</artifactId>
192             <version>1.2.3</version>
193             <exclusions>
194                 <exclusion>
195                     <groupId>org.slf4j</groupId>
196                     <artifactId>slf4j-log4j12</artifactId>
197                 </exclusion>
198             </exclusions>
199         </dependency>
200         <dependency>
201             <groupId>ch.qos.logback</groupId>
202             <artifactId>logback-classic</artifactId>
203             <version>1.2.3</version>
204             <exclusions>
205                 <exclusion>
206                     <groupId>org.slf4j</groupId>
207                     <artifactId>slf4j-log4j12</artifactId>
208                 </exclusion>
209             </exclusions>
210         </dependency>
211         <dependency>
212             <groupId>com.att.eelf</groupId>
213             <artifactId>eelf-core</artifactId>
214             <version>1.0.1-oss</version>
215         </dependency>
216         <!-- End Logging -->
217         
218         <!-- Cassandra -->       
219         <dependency>
220             <groupId>com.datastax.cassandra</groupId>
221             <artifactId>cassandra-driver-core</artifactId>
222             <version>${cassandra.version}</version>
223         </dependency>
224         <!-- /Cassandra -->       
225         
226         <!-- Zookeeper -->
227         <dependency>
228             <groupId>org.apache.zookeeper</groupId>
229             <artifactId>zookeeper</artifactId>
230             <version>${zookeeper.version}</version>
231             <exclusions>
232                 <exclusion>
233                     <groupId>org.slf4j</groupId>
234                     <artifactId>slf4j-log4j12</artifactId>
235                 </exclusion>
236             </exclusions>
237         </dependency>
238         <!-- /Zookeeper -->
239         
240         <!-- Jersey -->
241         <dependency>
242             <groupId>com.sun.jersey</groupId>
243             <artifactId>jersey-client</artifactId>
244             <version>${jersey1.version}</version>
245         </dependency>
246         <dependency>
247             <groupId>com.sun.jersey</groupId>
248             <artifactId>jersey-server</artifactId>
249             <version>${jersey1.version}</version>
250         </dependency>
251         <dependency>
252             <groupId>com.sun.jersey</groupId>
253             <artifactId>jersey-json</artifactId>
254             <version>${jersey1.version}</version>
255         </dependency>
256         <dependency> 
257             <groupId>com.sun.jersey</groupId> 
258             <artifactId>jersey-servlet</artifactId> 
259             <version>${jersey1.version}</version> 
260         </dependency>
261         <!-- /Jersey -->
262
263         <dependency>
264             <groupId>org.apache.commons</groupId>
265             <artifactId>commons-jcs-core</artifactId>
266             <version>2.2</version>
267         </dependency>
268         <dependency>
269             <groupId>commons-codec</groupId>
270             <artifactId>commons-codec</artifactId>
271             <version>1.11</version>
272         </dependency>
273
274         <!-- Testing -->
275         <dependency>
276             <groupId>junit</groupId>
277             <artifactId>junit</artifactId>
278             <version>4.12</version>
279             <scope>test</scope>
280         </dependency>
281         <dependency>
282             <groupId>org.cassandraunit</groupId>
283             <artifactId>cassandra-unit</artifactId>
284             <version>3.3.0.2</version>
285             <scope>test</scope>
286         </dependency>
287         <dependency>
288             <groupId>org.apache.curator</groupId>
289             <artifactId>curator-test</artifactId>
290             <version>2.3.0</version>
291             <exclusions>
292                 <exclusion>
293                     <groupId>org.apache.zookeeper</groupId>
294                     <artifactId>zookeeper</artifactId>
295                 </exclusion>
296                 <exclusion>
297                     <groupId>org.slf4j</groupId>
298                     <artifactId>slf4j-log4j12</artifactId>
299                 </exclusion>
300             </exclusions>
301             <scope>test</scope>
302         </dependency>
303         <dependency>
304             <groupId>org.mockito</groupId>
305             <artifactId>mockito-all</artifactId>
306             <version>1.9.0</version>
307             <scope>test</scope>
308         </dependency>
309         <!--  /Testing -->
310         <dependency>
311             <groupId>io.netty</groupId>
312             <artifactId>netty-handler</artifactId>
313             <version>4.0.56.Final</version>
314         </dependency>
315         <dependency>
316             <groupId>com.fasterxml.jackson.core</groupId>
317             <artifactId>jackson-databind</artifactId>
318             <version>2.9.4</version>
319         </dependency>
320         <dependency>
321             <groupId>org.apache.httpcomponents</groupId>
322             <artifactId>httpclient</artifactId>
323             <version>4.5.3</version>
324         </dependency>
325         <dependency>
326             <groupId>io.swagger</groupId>
327             <artifactId>swagger-jersey-jaxrs</artifactId>
328             <version>1.5.18</version>
329         </dependency>
330         <dependency>
331             <groupId>com.google.guava</groupId>
332             <artifactId>guava</artifactId>
333             <version>19.0</version>
334         </dependency>
335         <dependency>
336             <groupId>org.mindrot</groupId>
337             <artifactId>jbcrypt</artifactId>
338             <version>0.4</version>
339         </dependency>
340         <!-- https://mvnrepository.com/artifact/commons-codec/commons-codec -->
341         <dependency>
342             <groupId>commons-codec</groupId>
343             <artifactId>commons-codec</artifactId>
344             <version>1.9</version>
345         </dependency>
346         <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
347         <dependency>
348             <groupId>org.apache.commons</groupId>
349             <artifactId>commons-lang3</artifactId>
350             <version>3.0</version>
351         </dependency>
352
353     </dependencies>
354
355     <reporting>
356         <plugins>
357             <plugin>
358                 <groupId>org.apache.maven.plugins</groupId>
359                 <artifactId>maven-javadoc-plugin</artifactId>
360                 <version>2.10.3</version>
361                 <configuration>
362                     <author>true</author>
363                     <breakiterator>true</breakiterator>
364                     <version>true</version>
365                     <links>
366                         <link>https://docs.oracle.com/javase/7/docs/api/</link>
367                         <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
368                         <link>http://docs.oracle.com/javaee/7/api/</link>
369                     </links>
370                 </configuration>
371             </plugin>
372         </plugins>
373     </reporting>
374
375     <profiles>
376         <profile>
377             <id>docker</id>
378             <build>
379                 <plugins>
380                     <plugin>
381                         <groupId>io.fabric8</groupId>
382                         <artifactId>docker-maven-plugin</artifactId>
383                         <version>0.19.1</version>
384                         <configuration>
385                             <verbose>true</verbose>
386                             <apiVersion>1.23</apiVersion>
387                             <registry>nexus3.onap.org:10003</registry>
388                             <images>
389                                 <!-- MUSIC War -->
390                                 <image>
391                                     <name>onap/music/music</name>
392                                     <alias>docker_music</alias>
393                                     <build>
394                                         <cleanup>true</cleanup>
395                                         <tags>
396                                             <tag>${docker.tag}</tag>
397                                             <tag>${docker.latest.tag}</tag>
398                                         </tags>
399                                         <dockerFileDir>${project.basedir}</dockerFileDir>
400                                         <assembly>
401                                             <descriptorRef>artifact</descriptorRef>
402                                         </assembly>
403                                     </build>
404                                 </image>
405                                 <!-- Cassandra -->
406                                 <image>
407                                     <name>onap/music/cassandra_music</name>
408                                     <alias>docker_cassandra</alias>
409                                     <build>
410                                         <cleanup>true</cleanup>
411                                         <tags>
412                                             <tag>3.0-${timestamp}</tag>
413                                             <tag>3.0-latest</tag>
414                                         </tags>
415                                         <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
416                                     </build>
417                                 </image>
418                                 <!-- Zookeeper -->
419                                 <!-- <image> <name>onap/music/zookeeper_music</name> 
420                                     <alias>docker_zookeeper</alias> <build> <cleanup>true</cleanup> <tags> <tag>3.4-${timestamp}</tag> 
421                                     <tag>3.4-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/zookeeper</dockerFileDir> 
422                                     </build> </image> -->
423                                 <!-- tomcat 8.5 -->
424                                 <!-- <image> <name>onap/music/tomcat_music</name> 
425                                     <alias>docker_tomcat</alias> <build> <cleanup>true</cleanup> <tags> <tag>8.5-${timestamp}</tag> 
426                                     <tag>8.5-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/tomcat</dockerFileDir> 
427                                     </build> </image>\ -->
428                             </images>
429                         </configuration>
430                         <executions>
431                             <execution>
432                                 <id>clean-images</id>
433                                 <phase>pre-clean</phase>
434                                 <goals>
435                                     <goal>remove</goal>
436                                 </goals>
437                                 <configuration>
438                                     <removeAll>true</removeAll>
439                                     <image>music</image>
440                                 </configuration>
441                             </execution>
442                             <execution>
443                                 <id>generate-images</id>
444                                 <phase>package</phase>
445                                 <goals>
446                                     <goal>build</goal>
447                                 </goals>
448                             </execution>
449                             <execution>
450                                 <id>push-images</id>
451                                 <phase>deploy</phase>
452                                 <goals>
453                                     <goal>push</goal>
454                                 </goals>
455                                 <configuration>
456                                     <image>onap/music/music</image>
457                                 </configuration>
458                             </execution>
459                         </executions>
460                     </plugin>
461                 </plugins>
462             </build>
463         </profile>
464     </profiles>
465     <distributionManagement>
466         <repository>
467             <id>ecomp-releases</id>
468             <name>Release Repository</name>
469             <url>${nexusproxy}/${releaseNexusPath}</url>
470         </repository>
471         <snapshotRepository>
472             <id>ecomp-snapshots</id>
473             <name>Snapshot Repository</name>
474             <url>${nexusproxy}/${snapshotNexusPath}</url>
475         </snapshotRepository>
476         <!-- added for javadoc -->
477         <site>
478             <id>ecomp-site</id>
479             <url>dav:${nexusproxy}${sitePath}</url>
480         </site>
481     </distributionManagement>
482 </project>