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