Add Comment to plugin for Sonar
[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         </properties>
42
43         <repositories>
44                 <repository>
45                         <id>maven2-repository.java.net</id>
46                         <name>Java.net Repository for Maven</name>
47                         <url>http://download.java.net/maven/2/</url>
48                         <layout>default</layout>
49                 </repository>
50         </repositories>
51         <build>
52                 <finalName>MUSIC</finalName>
53                 <sourceDirectory>src/main/java</sourceDirectory>
54                 <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>
55                 <testSourceDirectory>src/test/java</testSourceDirectory>
56                 <testOutputDirectory>target/test-classes</testOutputDirectory>
57                 <defaultGoal>validate</defaultGoal>
58                 <resources>
59                         <resource>
60                                 <directory>src/main/resources</directory>
61                                 <filtering>true</filtering>
62                         </resource>
63                 </resources>
64                 <plugins>
65                         <plugin>
66                                 <artifactId>maven-eclipse-plugin</artifactId>
67                                 <version>2.9</version>
68                                 <configuration>
69                                         <additionalProjectnatures>
70                                                 <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
71                                         </additionalProjectnatures>
72                                         <additionalBuildcommands>
73                                                 <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
74                                         </additionalBuildcommands>
75                                         <downloadSources>true</downloadSources>
76                                         <downloadJavadocs>true</downloadJavadocs>
77                                 </configuration>
78                         </plugin>
79
80                         <plugin>
81                                 <groupId>org.apache.maven.plugins</groupId>
82                                 <artifactId>maven-compiler-plugin</artifactId>
83                                 <version>3.5.1</version>
84                                 <configuration>
85                                         <source>1.7</source>
86                                         <target>1.7</target>
87                                 </configuration>
88                         </plugin>
89                         <plugin>
90                                 <artifactId>maven-war-plugin</artifactId>
91                                 <version>2.4</version>
92                                 <configuration>
93                                         <warSourceDirectory>WebContent</warSourceDirectory>
94                                 </configuration>
95                         </plugin>
96                         <plugin>
97                                 <groupId>org.apache.maven.plugins</groupId>
98                                 <artifactId>maven-jar-plugin</artifactId>
99                                 <version>2.4</version>
100                                 <executions>
101                                         <execution>
102                                                 <id>make-a-jar</id>
103                                                 <phase>compile</phase>
104                                                 <goals>
105                                                         <goal>jar</goal>
106                                                 </goals>
107                                                 <configuration>
108                                                         <excludes>
109                                                                 <exclude>**/*.xml</exclude>
110                                                                 <exclude>**/*.properties</exclude>
111                                                                 <exclude>**/Sample*</exclude>
112                                                         </excludes>
113                                                 </configuration>
114                                         </execution>
115                                 </executions>
116                         </plugin>
117
118                         <plugin>
119                                 <groupId>org.apache.maven.plugins</groupId>
120                                 <artifactId>maven-install-plugin</artifactId>
121                                 <version>2.4</version>
122                                 <executions>
123                                         <execution>
124                                                 <phase>install</phase>
125                                                 <goals>
126                                                         <goal>install-file</goal>
127                                                 </goals>
128                                                 <configuration>
129                                                         <packaging>jar</packaging>
130                                                         <artifactId>${project.artifactId}</artifactId>
131                                                         <groupId>${project.groupId}</groupId>
132                                                         <version>${project.version}</version>
133                                                         <file>${project.build.directory}/${project.artifactId}.jar</file>
134                                                 </configuration>
135                                         </execution>
136                                 </executions>
137                         </plugin>
138                         <!-- Sonar Plugin for Sonar Scans -->
139                         <plugin>
140                             <groupId>org.codehaus.mojo</groupId>
141                             <artifactId>sonar-maven-plugin</artifactId>
142                             <version>3.2</version>
143                         </plugin>
144                 </plugins>
145         </build>
146
147         <dependencies>
148                   
149                 <dependency>
150                         <groupId>ch.qos.logback</groupId>
151                         <artifactId>logback-core</artifactId>
152                         <version>1.1.3</version>
153
154                         <exclusions>
155                                 <exclusion>
156                                         <groupId>org.slf4j</groupId>
157                                         <artifactId>slf4j-log4j12</artifactId>
158                                 </exclusion>
159                         </exclusions>
160                 </dependency>
161
162                 <dependency>
163                         <groupId>ch.qos.logback</groupId>
164                         <artifactId>logback-classic</artifactId>
165                         <version>1.1.3</version>
166                         <exclusions>
167                                 <exclusion>
168                                         <groupId>org.slf4j</groupId>
169                                         <artifactId>slf4j-log4j12</artifactId>
170                                 </exclusion>
171                         </exclusions>
172                 </dependency>
173
174                 <dependency>
175                         <groupId>com.datastax.cassandra</groupId>
176                         <artifactId>cassandra-driver-core</artifactId>
177                         <version>${cassandra.version}</version>
178                 </dependency>
179                  <dependency> 
180                         <groupId>org.cassandraunit</groupId> 
181                         <artifactId>cassandra-unit</artifactId> 
182                             <version>3.3.0.1</version> 
183                 </dependency> 
184                 <dependency>
185                         <groupId>org.apache.zookeeper</groupId>
186                         <artifactId>zookeeper</artifactId>
187                         <version>${zookeeper.version}</version>
188                 </dependency>
189                 <dependency>
190                         <groupId>com.sun.jersey</groupId>
191                         <artifactId>jersey-client</artifactId>
192                         <version>${jersey1.version}</version>
193                 </dependency>
194                 <dependency>
195                         <groupId>com.sun.jersey</groupId>
196                         <artifactId>jersey-server</artifactId>
197                         <version>${jersey1.version}</version>
198                 </dependency>
199                 <dependency>
200                         <groupId>com.sun.jersey</groupId>
201                         <artifactId>jersey-json</artifactId>
202                         <version>${jersey1.version}</version>
203                 </dependency>
204                 <dependency>
205                         <groupId>javax.servlet</groupId>
206                         <artifactId>servlet-api</artifactId>
207                         <version>2.4</version>
208                         <scope>provided</scope>
209                 </dependency>
210                 <dependency>
211                         <groupId>org.apache.maven</groupId>
212                         <artifactId>maven-model</artifactId>
213                         <version>3.3.9</version>
214                 </dependency>
215                 <dependency>
216                         <groupId>org.apache.commons</groupId>
217                         <artifactId>commons-jcs-core</artifactId>
218                         <version>2.2</version>
219                 </dependency>
220
221                 <dependency>
222                     <groupId>javax.servlet</groupId>
223                     <artifactId>javax.servlet-api</artifactId>
224                     <version>3.0.1</version>
225                     <scope>provided</scope>
226                 </dependency>
227                 <dependency>
228                     <groupId>commons-codec</groupId>
229                     <artifactId>commons-codec</artifactId>
230                     <version>1.11</version>
231                 </dependency>
232
233
234                 <dependency>
235                         <groupId>junit</groupId>
236                         <artifactId>junit</artifactId>
237                         <version>4.12</version>
238                         <scope>test</scope>
239                 </dependency>
240
241                 <dependency>
242                         <groupId>org.mockito</groupId>
243                         <artifactId>mockito-all</artifactId>
244                         <version>1.9.0</version>
245                 </dependency>
246
247
248                 <dependency>
249                         <groupId>io.swagger</groupId>
250                         <artifactId>swagger-jersey-jaxrs</artifactId>
251                         <version>1.5.0</version>
252                 </dependency>
253     <dependency>
254             <groupId>com.google.guava</groupId>
255             <artifactId>guava</artifactId>
256             <version>19.0</version>
257         </dependency>
258
259     <dependency>
260         <groupId>com.att.eelf</groupId>
261         <artifactId>eelf-core</artifactId>
262         <version>1.0.0</version>
263     </dependency>
264         </dependencies>
265
266         <reporting>
267                 <plugins>
268                         <plugin>
269                                 <groupId>org.apache.maven.plugins</groupId>
270                                 <artifactId>maven-javadoc-plugin</artifactId>
271                                 <version>2.10.3</version>
272                                 <configuration>
273                                         <author>true</author>
274                                         <breakiterator>true</breakiterator>
275                                         <version>true</version>
276                                         <links>
277                                                 <link>https://docs.oracle.com/javase/7/docs/api/</link>
278                                                 <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
279                                                 <link>http://docs.oracle.com/javaee/7/api/</link>
280                                         </links>
281                                 </configuration>
282                         </plugin>
283                 </plugins>
284         </reporting>
285
286 </project>