97eacec8688ac7f71959c6ba70ed9d56d2ffbe15
[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>2.4.4</version>
29     <description>
30             This is the MUSIC REST interface, packaged as a war file.
31           </description>
32     <properties>
33         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
34         <jersey1.version>1.9</jersey1.version>
35         <jersey2.version>2.26</jersey2.version>
36         <jaxrs.version>2.0.1</jaxrs.version>
37         <cassandra.version>3.0.0</cassandra.version>
38         <zookeeper.version>3.4.6</zookeeper.version>
39
40         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41         <!--maven-->
42         <timestamp>${maven.build.timestamp}</timestamp>
43         <maven.build.timestamp.format>yyyy.MM.dd.HH.mm</maven.build.timestamp.format>
44         <!--docker -->
45         <docker.tag>${project.version}-${timestamp}</docker.tag>
46         <docker.latest.tag>${project.version}-latest</docker.latest.tag>
47     </properties>
48
49     <repositories>
50         <repository>
51             <id>maven2-repository.java.net</id>
52             <name>Java.net Repository for Maven</name>
53             <url>http://download.java.net/maven/2/</url>
54             <layout>default</layout>
55         </repository>
56     </repositories>
57     <build>
58         <finalName>MUSIC</finalName>
59         <sourceDirectory>src/main/java</sourceDirectory>
60         <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>
61         <testSourceDirectory>src/test/java</testSourceDirectory>
62         <testOutputDirectory>target/test-classes</testOutputDirectory>
63         <defaultGoal>validate</defaultGoal>
64         <resources>
65             <resource>
66                 <directory>src/main/resources</directory>
67                 <filtering>true</filtering>
68             </resource>
69         </resources>
70         <plugins>
71             <plugin>
72                 <artifactId>maven-eclipse-plugin</artifactId>
73                 <version>2.9</version>
74                 <configuration>
75                     <additionalProjectnatures>
76                         <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
77                     </additionalProjectnatures>
78                     <additionalBuildcommands>
79                         <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
80                     </additionalBuildcommands>
81                     <downloadSources>true</downloadSources>
82                     <downloadJavadocs>true</downloadJavadocs>
83                 </configuration>
84             </plugin>
85             <plugin>
86                 <groupId>org.apache.maven.plugins</groupId>
87                 <artifactId>maven-compiler-plugin</artifactId>
88                 <version>3.5.1</version>
89                 <configuration>
90                     <source>1.7</source>
91                     <target>1.7</target>
92                 </configuration>
93             </plugin>
94             <plugin>
95                 <artifactId>maven-war-plugin</artifactId>
96                 <version>2.4</version>
97                 <configuration>
98                     <warSourceDirectory>WebContent</warSourceDirectory>
99                 </configuration>
100             </plugin>
101             <plugin>
102                 <groupId>org.apache.maven.plugins</groupId>
103                 <artifactId>maven-jar-plugin</artifactId>
104                 <version>2.4</version>
105                 <executions>
106                     <execution>
107                         <id>make-a-jar</id>
108                         <phase>compile</phase>
109                         <goals>
110                             <goal>jar</goal>
111                         </goals>
112                         <configuration>
113                             <excludes>
114                                 <exclude>**/*.xml</exclude>
115                                 <exclude>**/*.properties</exclude>
116                                 <exclude>**/Sample*</exclude>
117                             </excludes>
118                         </configuration>
119                     </execution>
120                 </executions>
121             </plugin>
122             <plugin>
123                 <groupId>org.apache.maven.plugins</groupId>
124                 <artifactId>maven-install-plugin</artifactId>
125                 <version>2.4</version>
126                 <executions>
127                     <execution>
128                         <phase>install</phase>
129                         <goals>
130                             <goal>install-file</goal>
131                         </goals>
132                         <configuration>
133                             <packaging>jar</packaging>
134                             <artifactId>${project.artifactId}</artifactId>
135                             <groupId>${project.groupId}</groupId>
136                             <version>${project.version}</version>
137                             <file>${project.build.directory}/${project.artifactId}.jar</file>
138                         </configuration>
139                     </execution>
140                 </executions>
141             </plugin>
142             <plugin>
143                 <groupId>io.fabric8</groupId>
144                 <artifactId>docker-maven-plugin</artifactId>
145                 <version>0.15.1</version>
146                 <configuration>
147                     <images>
148                         <!-- MUSIC War -->
149                         <image>
150                             <name>music</name>
151                             <alias>docker_music</alias>
152                             <build>
153                                 <cleanup>true</cleanup>
154                                 <tags>
155                                     <tag>${docker.tag}</tag>
156                                     <tag>${docker.latest.tag}</tag>
157                                 </tags>
158                                 <dockerFileDir>${project.basedir}</dockerFileDir>
159                                 <assembly>
160                                     <descriptorRef>artifact</descriptorRef>
161                                 </assembly>
162                             </build>
163                         </image>
164                     </images>
165                 </configuration>
166                 <executions>
167                     <execution>
168                         <id>clean-images</id>
169                         <phase>pre-clean</phase>
170                         <goals>
171                             <goal>remove</goal>
172                         </goals>
173                         <configuration>
174                             <removeAll>true</removeAll>
175                             <image>music</image>
176                         </configuration>
177                     </execution>
178                     <execution>
179                         <id>generate-images</id>
180                         <phase>package</phase>
181                         <goals>
182                             <goal>build</goal>
183                         </goals>
184                     </execution>
185                     <execution>
186                         <id>push-images</id>
187                         <phase>deploy</phase>
188                         <goals>
189                             <goal>push</goal>
190                         </goals>
191                         <configuration>
192                             <image>music</image>
193                         </configuration>
194                     </execution>
195                 </executions>
196             </plugin>
197
198         </plugins>
199     </build>
200
201     <dependencies>
202
203         <dependency>
204             <groupId>ch.qos.logback</groupId>
205             <artifactId>logback-core</artifactId>
206             <version>1.1.3</version>
207
208             <exclusions>
209                 <exclusion>
210                     <groupId>org.slf4j</groupId>
211                     <artifactId>slf4j-log4j12</artifactId>
212                 </exclusion>
213             </exclusions>
214         </dependency>
215
216         <dependency>
217             <groupId>ch.qos.logback</groupId>
218             <artifactId>logback-classic</artifactId>
219             <version>1.1.3</version>
220             <exclusions>
221                 <exclusion>
222                     <groupId>org.slf4j</groupId>
223                     <artifactId>slf4j-log4j12</artifactId>
224                 </exclusion>
225             </exclusions>
226         </dependency>
227
228         <dependency>
229             <groupId>com.datastax.cassandra</groupId>
230             <artifactId>cassandra-driver-core</artifactId>
231             <version>${cassandra.version}</version>
232         </dependency>
233         <dependency>
234             <groupId>org.cassandraunit</groupId>
235             <artifactId>cassandra-unit</artifactId>
236             <version>3.3.0.1</version>
237         </dependency>
238         <dependency>
239             <groupId>org.apache.zookeeper</groupId>
240             <artifactId>zookeeper</artifactId>
241             <version>${zookeeper.version}</version>
242         </dependency>
243         <dependency>
244             <groupId>com.sun.jersey</groupId>
245             <artifactId>jersey-client</artifactId>
246             <version>${jersey1.version}</version>
247         </dependency>
248         <dependency>
249             <groupId>com.sun.jersey</groupId>
250             <artifactId>jersey-server</artifactId>
251             <version>${jersey1.version}</version>
252         </dependency>
253         <dependency>
254             <groupId>com.sun.jersey</groupId>
255             <artifactId>jersey-json</artifactId>
256             <version>${jersey1.version}</version>
257         </dependency>
258         <dependency>
259             <groupId>javax.servlet</groupId>
260             <artifactId>servlet-api</artifactId>
261             <version>2.4</version>
262             <scope>provided</scope>
263         </dependency>
264         <dependency>
265             <groupId>org.apache.maven</groupId>
266             <artifactId>maven-model</artifactId>
267             <version>3.3.9</version>
268         </dependency>
269         <dependency>
270             <groupId>org.apache.commons</groupId>
271             <artifactId>commons-jcs-core</artifactId>
272             <version>2.2</version>
273         </dependency>
274
275         <dependency>
276             <groupId>javax.servlet</groupId>
277             <artifactId>javax.servlet-api</artifactId>
278             <version>3.0.1</version>
279             <scope>provided</scope>
280         </dependency>
281         <dependency>
282             <groupId>commons-codec</groupId>
283             <artifactId>commons-codec</artifactId>
284             <version>1.11</version>
285         </dependency>
286
287
288         <dependency>
289             <groupId>junit</groupId>
290             <artifactId>junit</artifactId>
291             <version>4.12</version>
292             <scope>test</scope>
293         </dependency>
294
295         <dependency>
296             <groupId>org.mockito</groupId>
297             <artifactId>mockito-all</artifactId>
298             <version>1.9.0</version>
299         </dependency>
300
301
302         <dependency>
303             <groupId>io.swagger</groupId>
304             <artifactId>swagger-jersey-jaxrs</artifactId>
305             <version>1.5.0</version>
306         </dependency>
307
308         <dependency>
309             <groupId>com.google.guava</groupId>
310             <artifactId>guava</artifactId>
311             <version>19.0</version>
312         </dependency>
313
314         <dependency>
315             <groupId>com.att.eelf</groupId>
316             <artifactId>eelf-core</artifactId>
317             <version>1.0.0</version>
318         </dependency>
319     </dependencies>
320
321     <reporting>
322         <plugins>
323             <plugin>
324                 <groupId>org.apache.maven.plugins</groupId>
325                 <artifactId>maven-javadoc-plugin</artifactId>
326                 <version>2.10.3</version>
327                 <configuration>
328                     <author>true</author>
329                     <breakiterator>true</breakiterator>
330                     <version>true</version>
331                     <links>
332                         <link>https://docs.oracle.com/javase/7/docs/api/</link>
333                         <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
334                         <link>http://docs.oracle.com/javaee/7/api/</link>
335                     </links>
336                 </configuration>
337             </plugin>
338         </plugins>
339     </reporting>
340
341 </project>