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