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