Default Cipher to empty string
[music.git] / music-rest / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  ============LICENSE_START==========================================
4  org.onap.music
5  ===================================================================
6   Copyright (c) 2017 AT&T Intellectual Property
7  ===================================================================
8   Modifications Copyright (c) 2019 IBM.
9  ===================================================================
10   Licensed under the Apache License, Version 2.0 (the "License");
11   you may not use this file except in compliance with the License.
12   You may obtain a copy of the License at
13
14      http://www.apache.org/licenses/LICENSE-2.0
15
16   Unless required by applicable law or agreed to in writing, software
17   distributed under the License is distributed on an "AS IS" BASIS,
18   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19   See the License for the specific language governing permissions and
20   limitations under the License.
21
22  ============LICENSE_END=============================================
23  ====================================================================
24 -->
25 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26     <modelVersion>4.0.0</modelVersion>
27     <groupId>org.onap.music</groupId>
28     <artifactId>MUSIC-rest</artifactId>
29     <packaging>jar</packaging>
30     <version>3.2.40-SNAPSHOT</version>
31     <description>
32             This is the MUSIC Spring-based REST service.
33     </description>
34     <name>music-rest</name>
35
36     <parent>
37         <groupId>org.onap.music</groupId>
38         <artifactId>MUSIC</artifactId>
39         <version>3.2.40-SNAPSHOT</version>
40     </parent>
41
42     <properties>
43         <start-class>org.onap.music.MusicApplication</start-class>
44         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
45         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
46         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
47         <java.version>1.8</java.version>
48         <jersey1.version>1.19</jersey1.version>
49         <jersey2.version>2.25.1</jersey2.version>
50         <jaxrs.version>2.0.1</jaxrs.version>
51
52         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
53         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
54         <!--nexus -->
55         <nexusproxy>https://nexus.onap.org</nexusproxy>
56         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
57         <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
58         <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
59         <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
60         <sitePath>/content/sites/site/org/onap/music/${project.version}</sitePath>
61         <!--maven -->
62         <timestamp>${maven.build.timestamp}</timestamp>
63         <maven.build.timestamp.format>yyyy.MM.dd.HH.mm</maven.build.timestamp.format>
64         <!--skip checkstyle -->
65         <maven.check.skip>false</maven.check.skip>
66         <!--docker -->
67         <docker.tag>${project.version}-${timestamp}</docker.tag>
68         <docker.latest.tag>${project.version}-latest</docker.latest.tag>
69         <maven.compiler.source>1.8</maven.compiler.source>
70         <maven.compiler.target>1.8</maven.compiler.target>
71     </properties>
72
73     <dependencyManagement>
74         <dependencies>
75             <dependency>
76                 <groupId>org.springframework.boot</groupId>
77                 <artifactId>spring-boot-dependencies</artifactId>
78                 <version>2.1.1.RELEASE</version>
79                 <type>pom</type>
80                 <scope>import</scope>
81             </dependency>
82         </dependencies>
83     </dependencyManagement>
84
85     <dependencies>
86
87         <dependency>
88             <groupId>org.springframework.boot</groupId>
89             <artifactId>spring-boot-starter</artifactId>
90         </dependency>
91         <dependency>
92             <groupId>org.springframework.data</groupId>
93             <artifactId>spring-data-cassandra</artifactId>
94         </dependency>
95         <dependency>
96             <groupId>org.springframework.boot</groupId>
97             <artifactId>spring-boot-starter-jersey</artifactId>
98         </dependency>
99         <dependency>
100             <groupId>org.springframework.boot</groupId>
101             <artifactId>spring-boot-starter-web</artifactId>
102         </dependency>
103         <dependency>
104             <groupId>org.springframework.boot</groupId>
105             <artifactId>spring-boot-starter-tomcat</artifactId>
106         </dependency>
107         <dependency>
108             <groupId>org.springframework.boot</groupId>
109             <artifactId>spring-boot-starter-test</artifactId>
110             <scope>test</scope>
111         </dependency>
112         <dependency>
113             <groupId>org.springframework</groupId>
114             <artifactId>spring-aop</artifactId>
115             <scope>compile</scope>
116         </dependency>
117         <dependency>
118             <groupId>org.springframework.boot</groupId>
119             <artifactId>spring-boot-autoconfigure</artifactId>
120         </dependency>
121         <dependency>
122             <groupId>org.aspectj</groupId>
123             <artifactId>aspectjweaver</artifactId>
124             <scope>compile</scope>
125         </dependency>
126         <!-- Springboot -->
127         <dependency>
128           <groupId>org.onap.music</groupId>
129           <artifactId>MUSIC-core</artifactId>
130           <version>3.2.40-SNAPSHOT</version>
131         </dependency>
132         <!-- Jersey -->
133         <dependency>
134             <groupId>com.sun.jersey</groupId>
135             <artifactId>jersey-client</artifactId>
136             <version>${jersey1.version}</version>
137             <exclusions>
138                 <exclusion>
139                     <groupId>javax.ws.rs</groupId>
140                     <artifactId>jsr311-api</artifactId>
141                 </exclusion>
142             </exclusions>
143         </dependency>
144         <dependency>
145             <groupId>com.sun.jersey</groupId>
146             <artifactId>jersey-server</artifactId>
147             <version>${jersey1.version}</version>
148         </dependency>
149         <dependency>
150             <groupId>com.sun.jersey</groupId>
151             <artifactId>jersey-json</artifactId>
152             <version>${jersey1.version}</version>
153             <exclusions>
154                 <exclusion>
155                     <groupId>org.codehaus.jackson</groupId>
156                     <artifactId>jackson-jaxrs</artifactId>
157                 </exclusion>
158             </exclusions>
159         </dependency>
160         <dependency>
161             <groupId>com.sun.jersey</groupId>
162             <artifactId>jersey-servlet</artifactId>
163             <version>${jersey1.version}</version>
164         </dependency>
165         <!-- /Jersey -->
166         <!-- Testing -->
167         <dependency>
168             <groupId>junit</groupId>
169             <artifactId>junit</artifactId>
170             <version>4.12</version>
171             <scope>test</scope>
172         </dependency>
173         <dependency>
174             <groupId>org.cassandraunit</groupId>
175             <artifactId>cassandra-unit-spring</artifactId>
176             <version>3.5.0.1</version>
177             <scope>test</scope>
178             <exclusions>
179                 <exclusion>
180                     <groupId>org.slf4j</groupId>
181                     <artifactId>slf4j-log4j12</artifactId>
182                 </exclusion>
183                 <exclusion>
184                     <groupId>ch.qos.logback</groupId>
185                     <artifactId>logback-core</artifactId>
186                 </exclusion>
187                 <exclusion>
188                     <groupId>ch.qos.logback</groupId>
189                     <artifactId>logback-classic</artifactId>
190                 </exclusion>
191                 <exclusion>
192                     <groupId>org.cassandraunit</groupId>
193                     <artifactId>cassandra-unit</artifactId>
194                 </exclusion>
195                 <exclusion>
196                     <groupId>io.dropwizard.metrics</groupId>
197                     <artifactId>metrics-core</artifactId>
198                 </exclusion>
199                 <exclusion>
200                     <groupId>com.addthis.metrics</groupId>
201                     <artifactId>reporter-config-base</artifactId>
202                 </exclusion>
203             </exclusions>
204         </dependency>
205         <dependency>
206             <groupId>org.cassandraunit</groupId>
207             <artifactId>cassandra-unit-shaded</artifactId>
208             <version>3.5.0.1</version>
209             <scope>test</scope>
210         </dependency>
211         <dependency>
212             <groupId>org.mockito</groupId>
213             <artifactId>mockito-core</artifactId>
214             <version>2.23.4</version>
215             <scope>test</scope>
216         </dependency>
217         <!--  /Testing -->
218     </dependencies>
219
220     <build>
221         <plugins>
222             <plugin>
223                 <groupId>org.springframework.boot</groupId>
224                 <artifactId>spring-boot-maven-plugin</artifactId>
225                 <version>2.1.1.RELEASE</version>
226                 <configuration>
227                     <mainClass>org.onap.music.MusicApplication</mainClass>
228                     <outputDirectory>${project.basedir}/distribution/music/</outputDirectory>
229                     <addResources>true</addResources>
230                     <finalName>MUSIC-SB</finalName>
231                     <excludes>
232                       <exclude>
233                         <groupId>javax.ws.rs</groupId>
234                         <artifactId>jsr311-api</artifactId>
235                       </exclude>
236                     </excludes>
237                 </configuration>
238                 <executions>
239                     <execution>
240                         <phase>package</phase>
241                         <goals>
242                             <goal>repackage</goal>
243                         </goals>
244                     </execution>
245                 </executions>
246             </plugin>
247         </plugins>
248         <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
249             <plugins>
250                 <!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
251                 <plugin>
252                     <artifactId>maven-clean-plugin</artifactId>
253                     <version>3.1.0</version>
254                 </plugin>
255                 <!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
256                 <plugin>
257                     <artifactId>maven-resources-plugin</artifactId>
258                     <version>3.0.2</version>
259                 </plugin>
260                 <plugin>
261                     <artifactId>maven-compiler-plugin</artifactId>
262                     <version>3.8.0</version>
263                 </plugin>
264                 <plugin>
265                     <artifactId>maven-surefire-plugin</artifactId>
266                     <version>2.22.1</version>
267                 </plugin>
268                 <plugin>
269                     <artifactId>maven-jar-plugin</artifactId>
270                     <version>3.0.2</version>
271                 </plugin>
272                 <plugin>
273                     <artifactId>maven-install-plugin</artifactId>
274                     <version>2.5.2</version>
275                 </plugin>
276                 <plugin>
277                     <artifactId>maven-deploy-plugin</artifactId>
278                     <version>2.8.2</version>
279                 </plugin>
280                 <!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
281                 <plugin>
282                     <artifactId>maven-site-plugin</artifactId>
283                     <version>3.7.1</version>
284                 </plugin>
285                 <plugin>
286                     <artifactId>maven-project-info-reports-plugin</artifactId>
287                     <version>3.0.0</version>
288                 </plugin>
289             </plugins>
290         </pluginManagement>
291     </build>
292     <profiles>
293         <profile>
294             <id>docker</id>
295             <build>
296                 <plugins>
297                     <plugin>
298                         <groupId>io.fabric8</groupId>
299                         <artifactId>docker-maven-plugin</artifactId>
300                         <version>0.19.1</version>
301                         <configuration>
302                             <verbose>true</verbose>
303                             <apiVersion>1.23</apiVersion>
304                             <registry>nexus3.onap.org:10003</registry>
305                             <images>
306                                 <!-- MUSIC War -->
307                                 <image>
308                                     <name>onap/music/music_sb</name>
309                                     <alias>docker_music</alias>
310                                     <build>
311                                         <cleanup>true</cleanup>
312                                         <tags>
313                                             <tag>${docker.tag}</tag>
314                                             <tag>${docker.latest.tag}</tag>
315                                         </tags>
316                                         <dockerFileDir>${project.basedir}/distribution/music</dockerFileDir>
317                                     </build>
318                                 </image>
319                                 <!-- Cassandra -->
320                                 <image>
321                                     <name>onap/music/cassandra_3_11</name>
322                                     <alias>docker_cassandra_sec</alias>
323                                     <build>
324                                         <cleanup>true</cleanup>
325                                         <tags>
326                                             <tag>${docker.tag}</tag>
327                                             <tag>${docker.latest.tag}</tag>
328                                         </tags>
329                                         <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
330                                     </build>
331                                 </image>
332                                 <!-- Cassandra Job -->
333                                 <image>
334                                     <name>onap/music/cassandra_job</name>
335                                     <alias>docker_cassandra_job</alias>
336                                     <build>
337                                         <cleanup>true</cleanup>
338                                         <tags>
339                                             <tag>${docker.tag}</tag>
340                                             <tag>${docker.latest.tag}</tag>
341                                         </tags>
342                                         <dockerFileDir>${project.basedir}/distribution/cassandra_job</dockerFileDir>
343                                     </build>
344                                 </image>
345                             </images>
346                         </configuration>
347                         <executions>
348                             <execution>
349                                 <id>clean-images</id>
350                                 <phase>pre-clean</phase>
351                                 <goals>
352                                     <goal>remove</goal>
353                                 </goals>
354                                 <configuration>
355                                     <removeAll>true</removeAll>
356                                     <image>music</image>
357                                 </configuration>
358                             </execution>
359                             <execution>
360                                 <id>generate-images</id>
361                                 <phase>package</phase>
362                                 <goals>
363                                     <goal>build</goal>
364                                 </goals>
365                             </execution>
366                             <execution>
367                                 <id>push-images</id>
368                                 <phase>deploy</phase>
369                                 <goals>
370                                     <goal>push</goal>
371                                 </goals>
372                                 <configuration>
373                                     <image>onap/music/music</image>
374                                 </configuration>
375                             </execution>
376                         </executions>
377                     </plugin>
378                 </plugins>
379             </build>
380         </profile>
381         <profile>
382             <id>default</id>
383         </profile>
384     </profiles>
385 </project>