JUnit test case coverage for Condition.java, JsonLock.java, MusicLockState.java,...
[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     </properties>
65
66     <repositories>
67         <repository>
68             <id>onap-releases</id>
69             <name>ONAP - Release Repository</name>
70             <url>${nexusproxy}/${releaseNexusPath}</url>
71         </repository>
72         <repository>
73             <id>onap-staging</id>
74             <name>ONAP - Staging Repository</name>
75             <url>${nexusproxy}/${stagingNexusPath}</url>
76         </repository>
77         <repository>
78             <id>onap-snapshots</id>
79             <name>ONAP - Snapshot Repository</name>
80             <url>${nexusproxy}/${snapshotNexusPath}</url>
81         </repository>
82         <repository>
83             <id>onap-public</id>
84             <name>ONAP public Repository</name>
85             <url>${nexusproxy}/content/groups/public</url>
86         </repository>
87     </repositories>
88
89     <reporting>
90         <plugins>
91             <plugin>
92                 <groupId>org.apache.maven.plugins</groupId>
93                 <artifactId>maven-javadoc-plugin</artifactId>
94                 <version>2.10.3</version>
95                 <configuration>
96                     <author>true</author>
97                     <breakiterator>true</breakiterator>
98                     <version>true</version>
99                     <links>
100                         <link>https://docs.oracle.com/javase/7/docs/api/</link>
101                         <link>https://tomcat.apache.org/tomcat-7.0-doc/jspapi/</link>
102                         <link>http://docs.oracle.com/javaee/7/api/</link>
103                     </links>
104                 </configuration>
105             </plugin>
106             <plugin>
107                 <groupId>org.apache.maven.plugins</groupId>
108                 <artifactId>maven-compiler-plugin</artifactId>
109                 <configuration>
110                     <source>1.8</source>
111                     <target>1.8</target>
112                 </configuration>
113             </plugin>
114         </plugins>
115     </reporting>
116
117     <profiles>
118         <profile>
119             <id>docker</id>
120             <build>
121                 <plugins>
122                     <plugin>
123                         <groupId>io.fabric8</groupId>
124                         <artifactId>docker-maven-plugin</artifactId>
125                         <version>0.19.1</version>
126                         <configuration>
127                             <verbose>true</verbose>
128                             <apiVersion>1.23</apiVersion>
129                             <registry>nexus3.onap.org:10003</registry>
130                             <images>
131                                 <!-- MUSIC War -->
132                                 <image>
133                                     <name>onap/music/music_sb</name>
134                                     <alias>docker_music</alias>
135                                     <build>
136                                         <cleanup>true</cleanup>
137                                         <tags>
138                                             <tag>${docker.tag}</tag>
139                                             <tag>${docker.latest.tag}</tag>
140                                         </tags>
141                                         <dockerFileDir>${project.basedir}/distribution/music</dockerFileDir>
142 <!--                                    <assembly>
143                                             <descriptorRef>artifact</descriptorRef>
144                                         </assembly>  -->
145                                     </build>
146                                 </image>
147                                 <!-- Cassandra -->
148                                 <image>
149                                     <name>onap/music/cassandra_3_11</name>
150                                     <alias>docker_cassandra_sec</alias>
151                                     <build>
152                                         <cleanup>true</cleanup>
153                                         <tags>
154                                             <tag>${docker.tag}</tag>
155                                             <tag>${docker.latest.tag}</tag>
156                                         </tags>
157                                         <dockerFileDir>${project.basedir}/distribution/cassandra</dockerFileDir>
158                                     </build>
159                                 </image>
160                                 <!-- Cassandra Job -->
161                                 <image>
162                                     <name>onap/music/cassandra_job</name>
163                                     <alias>docker_cassandra_job</alias>
164                                     <build>
165                                         <cleanup>true</cleanup>
166                                         <tags>
167                                             <tag>${docker.tag}</tag>
168                                             <tag>${docker.latest.tag}</tag>
169                                         </tags>
170                                         <dockerFileDir>${project.basedir}/distribution/cassandra_job</dockerFileDir>
171                                     </build>
172                                 </image>
173                                 <!-- tomcat 8.5 -->
174                                 <!-- <image> <name>onap/music/tomcat_music</name>
175                                     <alias>docker_tomcat</alias> <build> <cleanup>true</cleanup> <tags> <tag>8.5-${timestamp}</tag>
176                                     <tag>8.5-latest</tag> </tags> <dockerFileDir>${project.basedir}/distribution/tomcat</dockerFileDir>
177                                     </build> </image>\ -->
178                             </images>
179                         </configuration>
180                         <executions>
181                             <execution>
182                                 <id>clean-images</id>
183                                 <phase>pre-clean</phase>
184                                 <goals>
185                                     <goal>remove</goal>
186                                 </goals>
187                                 <configuration>
188                                     <removeAll>true</removeAll>
189                                     <image>music</image>
190                                 </configuration>
191                             </execution>
192                             <execution>
193                                 <id>generate-images</id>
194                                 <phase>package</phase>
195                                 <goals>
196                                     <goal>build</goal>
197                                 </goals>
198                             </execution>
199                             <execution>
200                                 <id>push-images</id>
201                                 <phase>deploy</phase>
202                                 <goals>
203                                     <goal>push</goal>
204                                 </goals>
205                                 <configuration>
206                                     <image>onap/music/music</image>
207                                 </configuration>
208                             </execution>
209                         </executions>
210                     </plugin>
211                 </plugins>
212             </build>
213         </profile>
214         <profile>
215             <id>default</id>
216         </profile>
217     </profiles>
218     <distributionManagement>
219         <repository>
220             <id>ecomp-releases</id>
221             <name>Release Repository</name>
222             <url>${nexusproxy}/${releaseNexusPath}</url>
223         </repository>
224         <snapshotRepository>
225             <id>ecomp-snapshots</id>
226             <name>Snapshot Repository</name>
227             <url>${nexusproxy}/${snapshotNexusPath}</url>
228         </snapshotRepository>
229         <!-- added for javadoc -->
230         <site>
231             <id>ecomp-site</id>
232             <url>dav:${nexusproxy}${sitePath}</url>
233         </site>
234     </distributionManagement>
235     <modules>
236         <module>music-core</module>
237         <module>music-rest</module>
238     </modules>
239 </project>