[DCAEGEN2] Release dcaegen2-services-mapper container
[dcaegen2/services/mapper.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 * ============LICENSE_START=======================================================
4 * ONAP : DCAEGEN2/services/mapper
5 * ================================================================================
6 * Copyright 2018-2019 TechMahindra
7 * Copyright (C) 2020-2022 Huawei Technologies Co., Ltd.
8 * Copyright (c) 2021-2022 AT&T Intellectual Property. All rights reserved.
9 * Copyright (C) 2023 Deutsche Telekom AG. All rights reserved.
10 * ================================================================================
11 * Licensed under the Apache License, Version 2.0 (the "License");
12 * you may not use this file except in compliance with the License.
13 * You may obtain a copy of the License at
14 *
15 *     http://www.apache.org/licenses/LICENSE-2.0
16 *
17 * Unless required by applicable law or agreed to in writing, software
18 * distributed under the License is distributed on an "AS IS" BASIS,
19 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 * See the License for the specific language governing permissions and
21 * limitations under the License.
22 * ============LICENSE_END=========================================================
23  -->
24 <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">
25     <modelVersion>4.0.0</modelVersion>
26
27     <parent>
28       <groupId>org.onap.oparent</groupId>
29       <artifactId>oparent</artifactId>
30       <version>2.0.0</version>
31       <relativePath/>
32     </parent>
33
34     <groupId>org.onap.dcaegen2.services.mapper</groupId>
35     <artifactId>mapper</artifactId>
36     <version>1.5.0-SNAPSHOT</version>
37     <packaging>pom</packaging>
38
39     <name>dcaegen2-services-mapper</name>
40     <description>Universal VES mapper for DCAE Analytics Service</description>
41
42     <licenses>
43         <license>
44             <name>The Apache Software License, Version 2.0</name>
45             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
46         </license>
47     </licenses>
48
49     <properties>
50
51         <!-- PROJECT SETTINGS-->
52         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
53         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
54         <main.basedir>${project.basedir}</main.basedir>
55
56         <!--TEST SETTINGS -->
57         <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
58
59         <slf4j.version>1.7.25</slf4j.version>
60         <jackson.json.version>2.9.4</jackson.json.version>
61
62         <netty.http.version>0.16.0</netty.http.version>
63         <gson.version>2.2.4</gson.version>
64         <guava.version>13.0.1</guava.version>
65         <guice.version>3.0</guice.version>
66         <logback.version>1.0.9</logback.version>
67         <findbugs.jsr305.version>2.0.1</findbugs.jsr305.version>
68         <findbugs.annotations.version>3.0.0</findbugs.annotations.version>
69         <lombok.version>1.16.10</lombok.version>
70
71         <json.path.version>2.2.0</json.path.version>
72         <quartz.version>2.2.0</quartz.version>
73         <httpclient.version>4.5.13</httpclient.version>
74         <commons.lang3.version>3.5</commons.lang3.version>
75
76         <docker.maven.version>1.0.0</docker.maven.version>
77
78         <!--TESTING DEPENDENCIES -->
79         <junit.version>4.12</junit.version>
80         <jayway.jsonpath.version>2.2.0</jayway.jsonpath.version>
81         <jsonassert.version>1.4.0</jsonassert.version>
82         <mockito.version>2.5.7</mockito.version>
83         <cucumber.version>1.2.5</cucumber.version>
84
85
86         <!-- PLUGINS VERSIONS -->
87         <compiler.plugin.version>3.3</compiler.plugin.version>
88         <!--  <surefire.plugin.version>2.19.1</surefire.plugin.version> -->
89         <failsafe.plugin.version>2.19.1</failsafe.plugin.version>
90         <bundle.plugin.version>2.5.4</bundle.plugin.version>
91         <autorun.plugin.version>1.7</autorun.plugin.version>
92         <eclipe.plugin.version>2.10</eclipe.plugin.version>
93         <findbugs.plugin.version>3.0.2</findbugs.plugin.version>
94         <pmd.plugin.version>3.5</pmd.plugin.version>
95         <!--  <surefire.report.plugin.version>2.19.1</surefire.report.plugin.version> -->
96         <checkstyle.plugin.version>2.16</checkstyle.plugin.version>
97         <javadoc.plugin.version>2.10.4</javadoc.plugin.version>
98         <source.plugin.version>2.4</source.plugin.version>
99         <jar.plugin.version>2.4</jar.plugin.version>
100         <lombok.plugin.version>1.16.10.0</lombok.plugin.version>
101         <jgitflow.plugin.version>1.0-m5.1</jgitflow.plugin.version>
102         <gitcommitid.plugin.version>2.2.3</gitcommitid.plugin.version>
103         <maven.site.plugin>3.5.1</maven.site.plugin>
104         <jxr.plugin.version>2.5</jxr.plugin.version>
105         <project.info.reports.plugin.version>2.7</project.info.reports.plugin.version>
106
107         <!--PLUGIN SETTINGS -->
108         <!-- <compiler.source.version>1.7</compiler.source.version>
109         <compiler.target.version>1.7</compiler.target.version> -->
110          <compiler.source.version>11</compiler.source.version>
111         <compiler.target.version>11</compiler.target.version>
112         <unit.test.pattern>**/*Test.java</unit.test.pattern>
113         <skip.unit.tests>false</skip.unit.tests>
114         <integration.test.pattern>**/*IT.java</integration.test.pattern>
115         <skip.integration.tests>true</skip.integration.tests>
116        <!--  <pmd.violation.buildfail>true</pmd.violation.buildfail> -->
117         <findbugs.failOnError>true</findbugs.failOnError>
118         <checkstyle.failOnViolation>true</checkstyle.failOnViolation>
119         <checkstyle.file.name>checkstyle.xml</checkstyle.file.name>
120         <checkstyle.suppression.file.name>suppressions.xml</checkstyle.suppression.file.name>
121         <dependency.locations.enabled>false</dependency.locations.enabled>
122         <nexusproxy>https://nexus.onap.org</nexusproxy>
123         <snapshots.path>content/repositories/snapshots/</snapshots.path>
124         <releases.path>content/repositories/releases/</releases.path>
125         <site.path>
126             content/sites/site/org/onap/dcaegen2/services/mapper/${project.artifactId}/${project.version}
127         </site.path>
128         <sonar.coverage.jacoco.xmlReportPaths>
129           ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
130         </sonar.coverage.jacoco.xmlReportPaths>
131     </properties>
132
133     <dependencyManagement>
134
135         <dependencies>
136
137             <!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
138             <dependency>
139                 <groupId>com.googlecode.json-simple</groupId>
140                 <artifactId>json-simple</artifactId>
141                 <version>1.1</version>
142             </dependency>
143
144             <!-- UTILITIES -->
145             <dependency>
146                 <groupId>org.apache.commons</groupId>
147                 <artifactId>commons-lang3</artifactId>
148                 <version>${commons.lang3.version}</version>
149             </dependency>
150
151             <!-- TEST DEPENDENCIES -->
152
153             <dependency>
154                 <groupId>junit</groupId>
155                 <artifactId>junit</artifactId>
156                 <version>${junit.version}</version>
157                 <scope>test</scope>
158             </dependency>
159
160             <dependency>
161                 <groupId>org.mockito</groupId>
162                 <artifactId>mockito-core</artifactId>
163                 <version>${mockito.version}</version>
164             </dependency>
165
166             <dependency>
167                 <groupId>com.jayway.jsonpath</groupId>
168                 <artifactId>json-path-assert</artifactId>
169                 <version>${jayway.jsonpath.version}</version>
170                 <scope>test</scope>
171             </dependency>
172             <dependency>
173                 <groupId>com.spotify</groupId>
174                 <artifactId>docker-maven-plugin</artifactId>
175                 <version>${docker.maven.version}</version>
176             </dependency>
177
178         </dependencies>
179
180     </dependencyManagement>
181
182
183     <build>
184
185         <resources>
186             <resource>
187                 <directory>${project.basedir}/src/main/resources</directory>
188             </resource>
189             <resource>
190                 <directory>${project.build.directory}/git</directory>
191             </resource>
192         </resources>
193
194         <extensions>
195             <extension>
196                 <groupId>org.apache.maven.wagon</groupId>
197                 <artifactId>wagon-webdav-jackrabbit</artifactId>
198                 <version>1.0-beta-7</version>
199             </extension>
200         </extensions>
201
202         <pluginManagement>
203
204             <plugins>
205
206                 <!-- COMPILER PLUGIN -->
207                 <plugin>
208                     <groupId>org.apache.maven.plugins</groupId>
209                     <artifactId>maven-compiler-plugin</artifactId>
210                     <version>${compiler.plugin.version}</version>
211                     <configuration>
212                         <source>${compiler.target.version}</source>
213                         <target>${compiler.source.version}</target>
214                     </configuration>
215                 </plugin>
216
217                 <!-- MAVEN SOURCE PLUGIN -->
218                 <plugin>
219                     <groupId>org.apache.maven.plugins</groupId>
220                     <artifactId>maven-source-plugin</artifactId>
221                     <version>${source.plugin.version}</version>
222                     <configuration>
223                         <excludeResources>true</excludeResources>
224                     </configuration>
225                     <executions>
226                         <execution>
227                             <id>attach-sources</id>
228                             <phase>verify</phase>
229                             <goals>
230                                 <goal>jar-no-fork</goal>
231                             </goals>
232                         </execution>
233                     </executions>
234                 </plugin>
235
236                 <!-- MAVEN BUNDLE PLUGIN -->
237                 <plugin>
238                     <groupId>org.apache.felix</groupId>
239                     <artifactId>maven-bundle-plugin</artifactId>
240                     <version>${bundle.plugin.version}</version>
241                     <extensions>true</extensions>
242                     <configuration>
243                         <instructions>
244                             <Embed-Dependency>*;inline=false;scope=compile</Embed-Dependency>
245                             <Embed-Transitive>true</Embed-Transitive>
246                             <Embed-Directory>lib</Embed-Directory>
247                         </instructions>
248                     </configuration>
249                     <executions>
250                         <execution>
251                             <id>Bundling mapper Jar</id>
252                             <phase>package</phase>
253                             <goals>
254                                 <goal>bundle</goal>
255                             </goals>
256                         </execution>
257                     </executions>
258                 </plugin>
259
260                 <!-- MAVEN AUTO RUN PLUGIN -->
261                 <plugin>
262                     <groupId>org.apache.maven.plugins</groupId>
263                     <artifactId>maven-antrun-plugin</artifactId>
264                     <version>${autorun.plugin.version}</version>
265                 </plugin>
266
267                 <!-- ECLIPSE PLUGIN -->
268                 <plugin>
269                     <groupId>org.apache.maven.plugins</groupId>
270                     <artifactId>maven-eclipse-plugin</artifactId>
271                     <version>${eclipe.plugin.version}</version>
272                 </plugin>
273
274                 <!-- JAR PLUGIN -->
275                 <plugin>
276                     <groupId>org.apache.maven.plugins</groupId>
277                     <artifactId>maven-jar-plugin</artifactId>
278                     <version>${jar.plugin.version}</version>
279                     <configuration>
280                         <archive>
281                             <manifest>
282                                 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
283                             </manifest>
284                             <manifestEntries>
285                                 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
286                             </manifestEntries>
287                         </archive>
288                     </configuration>
289                 </plugin>
290
291                 <plugin>
292                     <groupId>org.apache.maven.plugins</groupId>
293                     <artifactId>maven-site-plugin</artifactId>
294                     <version>${maven.site.plugin}</version>
295                 </plugin>
296                 <plugin>
297                     <groupId>com.spotify</groupId>
298                     <artifactId>docker-maven-plugin</artifactId>
299                     <version>${docker.maven.version}</version>
300                     <configuration>
301                         <skipDockerBuild>true</skipDockerBuild>
302                     </configuration>
303                 </plugin>
304             </plugins>
305
306         </pluginManagement>
307
308         <plugins>
309
310             <plugin>
311                 <groupId>org.apache.maven.plugins</groupId>
312                 <artifactId>maven-compiler-plugin</artifactId>
313             </plugin>
314
315             <plugin>
316                 <groupId>org.apache.maven.plugins</groupId>
317                 <artifactId>maven-jar-plugin</artifactId>
318             </plugin>
319
320             <plugin>
321                 <groupId>org.apache.maven.plugins</groupId>
322                 <artifactId>maven-source-plugin</artifactId>
323             </plugin>
324
325         </plugins>
326     </build>
327
328     <reporting>
329         <plugins>
330             <plugin>
331                 <groupId>org.apache.maven.plugins</groupId>
332                 <artifactId>maven-checkstyle-plugin</artifactId>
333                 <configuration>
334                     <configLocation>${checkstyle.file.name}</configLocation>
335                     <suppressionsLocation>${checkstyle.suppression.file.name}</suppressionsLocation>
336                 </configuration>
337             </plugin>
338         </plugins>
339     </reporting>
340
341     <modules>
342         <module>UniversalVesAdapter</module>
343     </modules>
344
345 </project>