Setting Repositories back to pom.xml
[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
33         <parent>
34                 <groupId>org.onap.oparent</groupId>
35                 <artifactId>oparent</artifactId>
36                 <version>0.1.1</version>
37                 <relativePath />
38         </parent>
39
40         <properties>
41                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42                 <jersey1.version>1.9</jersey1.version>
43                 <jersey2.version>2.26</jersey2.version>
44                 <jaxrs.version>2.0.1</jaxrs.version>
45                 <cassandra.version>3.0.0</cassandra.version>
46                 <zookeeper.version>3.4.6</zookeeper.version>
47
48                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
49                 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
50         <!--nexus -->
51                 <nexusproxy>https://nexus.onap.org</nexusproxy>
52                 <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
53                 <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
54                 <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
55                 <sitePath>/content/sites/site/org/onap/music/${project.version}</sitePath>
56                 <!--maven -->
57                 <timestamp>${maven.build.timestamp}</timestamp>
58                 <maven.build.timestamp.format>yyyy.MM.dd.HH.mm</maven.build.timestamp.format>
59                 <!--docker -->
60                 <docker.tag>${project.version}-${timestamp}</docker.tag>
61                 <docker.latest.tag>${project.version}-latest</docker.latest.tag>
62         </properties>
63
64         <repositories>
65                 <repository>
66                         <id>ecomp-releases</id>
67                         <name>ECOMP Release Repository</name>
68                         <url>${onap.nexus.url}/${releaseNexusPath}</url>
69                 </repository>
70                 <repository>
71                         <id>ecomp-snapshots</id>
72                         <name>Snapshot Repository</name>
73                         <url>${nexusproxy}/${snapshotNexusPath}</url>
74                 </repository>
75                 <repository>
76                         <id>ecomp-staging</id>
77                         <name>Staging Repository</name>
78                         <url>${nexusproxy}/${stagingNexusPath}</url>
79                 </repository>
80         </repositories>
81
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                 <artifactId>maven-eclipse-plugin</artifactId>
98                 <version>2.9</version>
99                 <configuration>
100                     <additionalProjectnatures>
101                         <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
102                     </additionalProjectnatures>
103                     <additionalBuildcommands>
104                         <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
105                     </additionalBuildcommands>
106                     <downloadSources>true</downloadSources>
107                     <downloadJavadocs>true</downloadJavadocs>
108                 </configuration>
109             </plugin>
110             <plugin>
111                 <groupId>org.apache.maven.plugins</groupId>
112                 <artifactId>maven-compiler-plugin</artifactId>
113                 <version>3.5.1</version>
114                 <configuration>
115                     <source>1.7</source>
116                     <target>1.7</target>
117                 </configuration>
118             </plugin>
119             <plugin>
120                 <artifactId>maven-war-plugin</artifactId>
121                 <version>2.4</version>
122                 <configuration>
123                     <warSourceDirectory>WebContent</warSourceDirectory>
124                 </configuration>
125             </plugin>
126             <plugin>
127                 <groupId>org.apache.maven.plugins</groupId>
128                 <artifactId>maven-jar-plugin</artifactId>
129                 <version>2.4</version>
130                 <executions>
131                     <execution>
132                         <id>make-a-jar</id>
133                         <phase>compile</phase>
134                         <goals>
135                             <goal>jar</goal>
136                         </goals>
137                         <configuration>
138                             <excludes>
139                                 <exclude>**/*.xml</exclude>
140                                 <exclude>**/*.properties</exclude>
141                                 <exclude>**/Sample*</exclude>
142                             </excludes>
143                         </configuration>
144                     </execution>
145                 </executions>
146             </plugin>
147             <plugin>
148                 <groupId>org.apache.maven.plugins</groupId>
149                 <artifactId>maven-install-plugin</artifactId>
150                 <version>2.4</version>
151                 <executions>
152                     <execution>
153                         <phase>install</phase>
154                         <goals>
155                             <goal>install-file</goal>
156                         </goals>
157                         <configuration>
158                             <packaging>jar</packaging>
159                             <artifactId>${project.artifactId}</artifactId>
160                             <groupId>${project.groupId}</groupId>
161                             <version>${project.version}</version>
162                             <file>${project.build.directory}/${project.artifactId}.jar</file>
163                         </configuration>
164                     </execution>
165                 </executions>
166             </plugin>
167         </plugins>
168     </build>
169
170     <dependencies>
171
172         <dependency>
173             <groupId>ch.qos.logback</groupId>
174             <artifactId>logback-core</artifactId>
175             <version>1.1.3</version>
176
177             <exclusions>
178                 <exclusion>
179                     <groupId>org.slf4j</groupId>
180                     <artifactId>slf4j-log4j12</artifactId>
181                 </exclusion>
182             </exclusions>
183         </dependency>
184
185         <dependency>
186             <groupId>ch.qos.logback</groupId>
187             <artifactId>logback-classic</artifactId>
188             <version>1.1.3</version>
189             <exclusions>
190                 <exclusion>
191                     <groupId>org.slf4j</groupId>
192                     <artifactId>slf4j-log4j12</artifactId>
193                 </exclusion>
194             </exclusions>
195         </dependency>
196
197         <dependency>
198             <groupId>com.datastax.cassandra</groupId>
199             <artifactId>cassandra-driver-core</artifactId>
200             <version>${cassandra.version}</version>
201         </dependency>
202         <dependency>
203             <groupId>org.cassandraunit</groupId>
204             <artifactId>cassandra-unit</artifactId>
205             <version>3.3.0.1</version>
206         </dependency>
207         <dependency>
208             <groupId>org.apache.zookeeper</groupId>
209             <artifactId>zookeeper</artifactId>
210             <version>${zookeeper.version}</version>
211         </dependency>
212         <dependency>
213             <groupId>com.sun.jersey</groupId>
214             <artifactId>jersey-client</artifactId>
215             <version>${jersey1.version}</version>
216         </dependency>
217         <dependency>
218             <groupId>com.sun.jersey</groupId>
219             <artifactId>jersey-server</artifactId>
220             <version>${jersey1.version}</version>
221         </dependency>
222         <dependency>
223             <groupId>com.sun.jersey</groupId>
224             <artifactId>jersey-json</artifactId>
225             <version>${jersey1.version}</version>
226         </dependency>
227         <dependency>
228             <groupId>javax.servlet</groupId>
229             <artifactId>servlet-api</artifactId>
230             <version>2.4</version>
231             <scope>provided</scope>
232         </dependency>
233         <dependency>
234             <groupId>org.apache.maven</groupId>
235             <artifactId>maven-model</artifactId>
236             <version>3.3.9</version>
237         </dependency>
238         <dependency>
239             <groupId>org.apache.commons</groupId>
240             <artifactId>commons-jcs-core</artifactId>
241             <version>2.2</version>
242         </dependency>
243
244         <dependency>
245             <groupId>javax.servlet</groupId>
246             <artifactId>javax.servlet-api</artifactId>
247             <version>3.0.1</version>
248             <scope>provided</scope>
249         </dependency>
250         <dependency>
251             <groupId>commons-codec</groupId>
252             <artifactId>commons-codec</artifactId>
253             <version>1.11</version>
254         </dependency>
255
256
257         <dependency>
258             <groupId>junit</groupId>
259             <artifactId>junit</artifactId>
260             <version>4.12</version>
261             <scope>test</scope>
262         </dependency>
263
264         <dependency>
265             <groupId>org.mockito</groupId>
266             <artifactId>mockito-all</artifactId>
267             <version>1.9.0</version>
268         </dependency>
269
270
271         <dependency>
272             <groupId>io.swagger</groupId>
273             <artifactId>swagger-jersey-jaxrs</artifactId>
274             <version>1.5.0</version>
275         </dependency>
276
277         <dependency>
278             <groupId>com.google.guava</groupId>
279             <artifactId>guava</artifactId>
280             <version>19.0</version>
281         </dependency>
282
283         <dependency>
284             <groupId>com.att.eelf</groupId>
285             <artifactId>eelf-core</artifactId>
286             <version>1.0.0</version>
287         </dependency>
288     </dependencies>
289
290     <reporting>
291         <plugins>
292             <plugin>
293                 <groupId>org.apache.maven.plugins</groupId>
294                 <artifactId>maven-javadoc-plugin</artifactId>
295                 <version>2.10.3</version>
296                 <configuration>
297                     <author>true</author>
298                     <breakiterator>true</breakiterator>
299                     <version>true</version>
300                     <links>
301                         <link>https://docs.oracle.com/javase/7/docs/api/</link>
302                         <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
303                         <link>http://docs.oracle.com/javaee/7/api/</link>
304                     </links>
305                 </configuration>
306             </plugin>
307         </plugins>
308     </reporting>
309
310         <profiles>
311                 <profile>
312                         <id>docker</id>
313                         <build>
314                                 <plugins>
315                                         <plugin>
316                                                 <groupId>io.fabric8</groupId>
317                                                 <artifactId>docker-maven-plugin</artifactId>
318                                                 <version>0.19.1</version>
319                                                 <configuration>
320                                                         <verbose>true</verbose>
321                                                         <apiVersion>1.23</apiVersion>
322                                                         <registry>nexus3.onap.org:10003</registry>
323                                                         <images>
324                                                                 <!-- MUSIC War -->
325                                                                 <image>
326                                                                         <name>music</name>
327                                                                         <alias>docker_music</alias>
328                                                                         <build>
329                                                                                 <cleanup>true</cleanup>
330                                                                                 <tags>
331                                                                                         <tag>${docker.tag}</tag>
332                                                                                         <tag>${docker.latest.tag}</tag>
333                                                                                 </tags>
334                                                                                 <dockerFileDir>${project.basedir}</dockerFileDir>
335                                                                                 <assembly>
336                                                                                         <descriptorRef>artifact</descriptorRef>
337                                                                                 </assembly>
338                                                                         </build>
339                                                                 </image>
340                                                         </images>
341                                                 </configuration>
342                                                 <executions>
343                                                         <execution>
344                                                                 <id>clean-images</id>
345                                                                 <phase>pre-clean</phase>
346                                                                 <goals>
347                                                                         <goal>remove</goal>
348                                                                 </goals>
349                                                                 <configuration>
350                                                                         <removeAll>true</removeAll>
351                                                                         <image>music</image>
352                                                                 </configuration>
353                                                         </execution>
354                                                         <execution>
355                                                                 <id>generate-images</id>
356                                                                 <phase>package</phase>
357                                                                 <goals>
358                                                                         <goal>build</goal>
359                                                                 </goals>
360                                                         </execution>
361                                                         <execution>
362                                                                 <id>push-images</id>
363                                                                 <phase>deploy</phase>
364                                                                 <goals>
365                                                                         <goal>push</goal>
366                                                                 </goals>
367                                                                 <configuration>
368                                                                         <image>music</image>
369                                                                 </configuration>
370                                                         </execution>
371                                                 </executions>
372                                         </plugin>
373                                 </plugins>      
374                         </build>
375                 </profile>
376         </profiles>
377         <distributionManagement>
378                 <repository>
379                         <id>ecomp-releases</id>
380                         <name>Release Repository</name>
381                         <url>${nexusproxy}/${releaseNexusPath}</url>
382                 </repository>
383                 <snapshotRepository>
384                         <id>ecomp-snapshots</id>
385                         <name>Snapshot Repository</name>
386                         <url>${nexusproxy}/${snapshotNexusPath}</url>
387                 </snapshotRepository>
388                 <!-- added for javadoc -->
389                 <site>
390                         <id>ecomp-site</id>
391                         <url>dav:${nexusproxy}${sitePath}</url>
392                 </site>
393         </distributionManagement>
394 </project>