0f15cc384ebd2eeadec05b52f608a9e2bf0fe1e3
[music.git] / 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</artifactId>
29     <packaging>pom</packaging>
30     <version>3.2.37-SNAPSHOT</version>
31     <description>
32             This is the MUSIC project.
33     </description>
34
35     <parent>
36         <groupId>org.onap.oparent</groupId>
37         <artifactId>oparent</artifactId>
38         <version>2.0.0</version>
39         <relativePath/>
40     </parent>
41
42     <properties>
43         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
44         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
45         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
46         <java.version>1.8</java.version>
47         <!--nexus -->
48         <nexusproxy>https://nexus.onap.org</nexusproxy>
49         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
50         <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
51         <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
52         <stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
53         <sitePath>/content/sites/site/org/onap/music/${project.version}</sitePath>
54         <!--maven -->
55         <timestamp>${maven.build.timestamp}</timestamp>
56         <maven.build.timestamp.format>yyyy.MM.dd.HH.mm</maven.build.timestamp.format>
57         <!--skip checkstyle -->
58         <maven.check.skip>false</maven.check.skip>
59         <!--docker -->
60         <docker.tag>${project.version}-${timestamp}</docker.tag>
61         <docker.latest.tag>${project.version}-latest</docker.latest.tag>
62         <maven.compiler.source>1.8</maven.compiler.source>
63         <maven.compiler.target>1.8</maven.compiler.target>
64         <!-- Default Sonar configuration -->
65         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml,${project.reporting.outputDirectory}/jacoco-it/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
66     </properties>
67
68     <repositories>
69         <repository>
70             <id>onap-releases</id>
71             <name>ONAP - Release Repository</name>
72             <url>${nexusproxy}/${releaseNexusPath}</url>
73         </repository>
74         <repository>
75             <id>onap-staging</id>
76             <name>ONAP - Staging Repository</name>
77             <url>${nexusproxy}/${stagingNexusPath}</url>
78         </repository>
79         <repository>
80             <id>onap-snapshots</id>
81             <name>ONAP - Snapshot Repository</name>
82             <url>${nexusproxy}/${snapshotNexusPath}</url>
83         </repository>
84         <repository>
85             <id>onap-public</id>
86             <name>ONAP public Repository</name>
87             <url>${nexusproxy}/content/groups/public</url>
88         </repository>
89     </repositories>
90
91     <reporting>
92         <plugins>
93             <plugin>
94                 <groupId>org.apache.maven.plugins</groupId>
95                 <artifactId>maven-javadoc-plugin</artifactId>
96                 <version>2.10.3</version>
97                 <configuration>
98                     <author>true</author>
99                     <breakiterator>true</breakiterator>
100                     <version>true</version>
101                     <links>
102                         <link>https://docs.oracle.com/javase/7/docs/api/</link>
103                         <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
104                         <link>http://docs.oracle.com/javaee/7/api/</link>
105                     </links>
106                 </configuration>
107             </plugin>
108             <plugin>
109                 <groupId>org.apache.maven.plugins</groupId>
110                 <artifactId>maven-compiler-plugin</artifactId>
111                 <configuration>
112                     <source>1.8</source>
113                     <target>1.8</target>
114                 </configuration>
115             </plugin>
116         </plugins>
117     </reporting>
118
119     <profiles>
120         <profile>
121             <id>docker</id>
122             <build>
123                 <plugins>
124                     <plugin>
125                         <groupId>io.fabric8</groupId>
126                         <artifactId>docker-maven-plugin</artifactId>
127                         <version>0.19.1</version>
128                         <configuration>
129                             <verbose>true</verbose>
130                             <apiVersion>1.23</apiVersion>
131                             <registry>nexus3.onap.org:10003</registry>
132                             <images>
133                                 <!-- MUSIC War -->
134                                 <image>
135                                     <name>onap/music/music_sb</name>
136                                     <alias>docker_music</alias>
137                                     <build>
138                                         <cleanup>true</cleanup>
139                                         <tags>
140                                             <tag>${docker.tag}</tag>
141                                             <tag>${docker.latest.tag}</tag>
142                                         </tags>
143                                         <dockerFileDir>${project.basedir}/distribution/music</dockerFileDir>
144                                     </build>
145                                 </image>
146                                 <!-- Cassandra -->
147                                 <image>
148                                     <name>onap/music/cassandra_3_11</name>
149                                     <alias>docker_cassandra_sec</alias>
150                                     <build>
151                                         <cleanup>true</cleanup>
152                                         <tags>
153                                             <tag>${docker.tag}</tag>
154                                             <tag>${docker.latest.tag}</tag>
155                                         </tags>
156                                         <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
157                                     </build>
158                                 </image>
159                                 <!-- Cassandra Job -->
160                                 <image>
161                                     <name>onap/music/cassandra_job</name>
162                                     <alias>docker_cassandra_job</alias>
163                                     <build>
164                                         <cleanup>true</cleanup>
165                                         <tags>
166                                             <tag>${docker.tag}</tag>
167                                             <tag>${docker.latest.tag}</tag>
168                                         </tags>
169                                         <dockerFileDir>${project.basedir}/distribution/cassandra_job</dockerFileDir>
170                                     </build>
171                                 </image>
172                             </images>
173                         </configuration>
174                         <executions>
175                             <execution>
176                                 <id>clean-images</id>
177                                 <phase>pre-clean</phase>
178                                 <goals>
179                                     <goal>remove</goal>
180                                 </goals>
181                                 <configuration>
182                                     <removeAll>true</removeAll>
183                                     <image>music</image>
184                                 </configuration>
185                             </execution>
186                             <execution>
187                                 <id>generate-images</id>
188                                 <phase>package</phase>
189                                 <goals>
190                                     <goal>build</goal>
191                                 </goals>
192                             </execution>
193                             <execution>
194                                 <id>push-images</id>
195                                 <phase>deploy</phase>
196                                 <goals>
197                                     <goal>push</goal>
198                                 </goals>
199                                 <configuration>
200                                     <image>onap/music/music</image>
201                                 </configuration>
202                             </execution>
203                         </executions>
204                     </plugin>
205                 </plugins>
206             </build>
207         </profile>
208         <profile>
209             <id>default</id>
210         </profile>
211     </profiles>
212     <distributionManagement>
213         <repository>
214             <id>ecomp-releases</id>
215             <name>Release Repository</name>
216             <url>${nexusproxy}/${releaseNexusPath}</url>
217         </repository>
218         <snapshotRepository>
219             <id>ecomp-snapshots</id>
220             <name>Snapshot Repository</name>
221             <url>${nexusproxy}/${snapshotNexusPath}</url>
222         </snapshotRepository>
223         <!-- added for javadoc -->
224         <site>
225             <id>ecomp-site</id>
226             <url>dav:${nexusproxy}${sitePath}</url>
227         </site>
228     </distributionManagement>
229     <modules>
230         <module>music-core</module>
231         <module>music-rest</module>
232     </modules>
233 </project>