1 <?xml version="1.0" encoding="UTF-8"?>
3 ~ ===============================LICENSE_START======================================
5 ~ ================================================================================
6 ~ Copyright © 2017 AT&T Intellectual Property. All rights reserved.
7 ~ ================================================================================
8 ~ Licensed under the Apache License, Version 2.0 (the "License");
9 ~ you may not use this file except in compliance with the License.
10 ~ You may obtain a copy of the License at
12 ~ http://www.apache.org/licenses/LICENSE-2.0
14 ~ Unless required by applicable law or agreed to in writing, software
15 ~ distributed under the License is distributed on an "AS IS" BASIS,
16 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 ~ See the License for the specific language governing permissions and
18 ~ limitations under the License.
19 ~ ============================LICENSE_END===========================================
22 <project xmlns="http://maven.apache.org/POM/4.0.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24 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>
28 <groupId>org.onap.oparent</groupId>
29 <artifactId>oparent</artifactId>
30 <version>1.1.0</version>
34 <groupId>org.onap.dcaegen2.services.mapper</groupId>
35 <artifactId>mapper</artifactId>
36 <version>0.0.1-SNAPSHOT</version>
37 <packaging>pom</packaging>
39 <name>dcae-services-mapper</name>
40 <description>Universal VES mapper for DCAE Analytics Service</description>
44 <name>The Apache Software License, Version 2.0</name>
45 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
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>
57 <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
59 <slf4j.version>1.7.25</slf4j.version>
60 <jackson.json.version>2.9.4</jackson.json.version>
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>
71 <json.path.version>2.2.0</json.path.version>
72 <quartz.version>2.2.0</quartz.version>
73 <httpclient.version>4.5.2</httpclient.version>
74 <commons.lang3.version>3.5</commons.lang3.version>
77 <!--TESTING DEPENDENCIES -->
78 <junit.version>4.12</junit.version>
79 <jayway.jsonpath.version>2.2.0</jayway.jsonpath.version>
80 <jsonassert.version>1.4.0</jsonassert.version>
81 <mockito.version>2.5.7</mockito.version>
82 <cucumber.version>1.2.5</cucumber.version>
85 <!-- PLUGINS VERSIONS -->
86 <compiler.plugin.version>3.3</compiler.plugin.version>
87 <surefire.plugin.version>2.19.1</surefire.plugin.version>
88 <failsafe.plugin.version>2.19.1</failsafe.plugin.version>
89 <bundle.plugin.version>2.5.4</bundle.plugin.version>
90 <autorun.plugin.version>1.7</autorun.plugin.version>
91 <eclipe.plugin.version>2.10</eclipe.plugin.version>
92 <findbugs.plugin.version>3.0.2</findbugs.plugin.version>
93 <pmd.plugin.version>3.5</pmd.plugin.version>
94 <surefire.report.plugin.version>2.19.1</surefire.report.plugin.version>
95 <checkstyle.plugin.version>2.16</checkstyle.plugin.version>
96 <javadoc.plugin.version>2.10.4</javadoc.plugin.version>
97 <source.plugin.version>2.4</source.plugin.version>
98 <jar.plugin.version>2.4</jar.plugin.version>
99 <lombok.plugin.version>1.16.10.0</lombok.plugin.version>
100 <jgitflow.plugin.version>1.0-m5.1</jgitflow.plugin.version>
101 <gitcommitid.plugin.version>2.2.3</gitcommitid.plugin.version>
102 <maven.site.plugin>3.5.1</maven.site.plugin>
103 <jxr.plugin.version>2.5</jxr.plugin.version>
104 <project.info.reports.plugin.version>2.7</project.info.reports.plugin.version>
106 <!--PLUGIN SETTINGS -->
107 <!-- <compiler.source.version>1.7</compiler.source.version>
108 <compiler.target.version>1.7</compiler.target.version> -->
109 <compiler.source.version>1.8</compiler.source.version>
110 <compiler.target.version>1.8</compiler.target.version>
111 <unit.test.pattern>**/*Test.java</unit.test.pattern>
112 <skip.unit.tests>false</skip.unit.tests>
113 <integration.test.pattern>**/*IT.java</integration.test.pattern>
114 <skip.integration.tests>true</skip.integration.tests>
115 <!-- <pmd.violation.buildfail>true</pmd.violation.buildfail> -->
116 <findbugs.failOnError>true</findbugs.failOnError>
117 <checkstyle.failOnViolation>true</checkstyle.failOnViolation>
118 <checkstyle.file.name>checkstyle.xml</checkstyle.file.name>
119 <checkstyle.suppression.file.name>suppressions.xml</checkstyle.suppression.file.name>
120 <dependency.locations.enabled>false</dependency.locations.enabled>
121 <nexusproxy>https://nexus.onap.org</nexusproxy>
122 <snapshots.path>content/repositories/snapshots/</snapshots.path>
123 <releases.path>content/repositories/releases/</releases.path>
125 content/sites/site/org/onap/dcaegen2/services/mapper/${project.artifactId}/${project.version}
129 <dependencyManagement>
135 <groupId>org.slf4j</groupId>
136 <artifactId>slf4j-api</artifactId>
137 <version>${slf4j.version}</version>
138 <scope>provided</scope>
144 <groupId>org.apache.commons</groupId>
145 <artifactId>commons-lang3</artifactId>
146 <version>${commons.lang3.version}</version>
149 <!-- JACKSON JSON -->
151 <groupId>com.fasterxml.jackson.core</groupId>
152 <artifactId>jackson-core</artifactId>
153 <version>${jackson.json.version}</version>
156 <groupId>com.fasterxml.jackson.core</groupId>
157 <artifactId>jackson-databind</artifactId>
158 <version>${jackson.json.version}</version>
161 <groupId>com.fasterxml.jackson.core</groupId>
162 <artifactId>jackson-annotations</artifactId>
163 <version>${jackson.json.version}</version>
168 <groupId>com.jayway.jsonpath</groupId>
169 <artifactId>json-path</artifactId>
170 <version>${json.path.version}</version>
174 <!-- TEST DEPENDENCIES -->
177 <groupId>junit</groupId>
178 <artifactId>junit</artifactId>
179 <version>${junit.version}</version>
184 <groupId>org.mockito</groupId>
185 <artifactId>mockito-core</artifactId>
186 <version>${mockito.version}</version>
190 <groupId>com.jayway.jsonpath</groupId>
191 <artifactId>json-path-assert</artifactId>
192 <version>${jayway.jsonpath.version}</version>
198 </dependencyManagement>
205 <directory>${project.basedir}/src/main/resources</directory>
208 <directory>${project.build.directory}/git</directory>
214 <groupId>org.apache.maven.wagon</groupId>
215 <artifactId>wagon-webdav-jackrabbit</artifactId>
216 <version>1.0-beta-7</version>
224 <!-- COMPILER PLUGIN -->
226 <groupId>org.apache.maven.plugins</groupId>
227 <artifactId>maven-compiler-plugin</artifactId>
228 <version>${compiler.plugin.version}</version>
230 <source>${compiler.target.version}</source>
231 <target>${compiler.source.version}</target>
235 <!-- MAVEN SOURCE PLUGIN -->
237 <groupId>org.apache.maven.plugins</groupId>
238 <artifactId>maven-source-plugin</artifactId>
239 <version>${source.plugin.version}</version>
241 <excludeResources>true</excludeResources>
245 <id>attach-sources</id>
246 <phase>verify</phase>
248 <goal>jar-no-fork</goal>
255 <!-- MAVEN JAVADOC PLUGIN -->
257 <groupId>org.apache.maven.plugins</groupId>
258 <artifactId>maven-javadoc-plugin</artifactId>
259 <version>${javadoc.plugin.version}</version>
261 minimize console output messages
263 <verbose>false</verbose>
264 <useStandardDocletOptions>false</useStandardDocletOptions>
271 <goal>aggregate</goal>
275 <id>attach-javadoc</id>
283 <!-- MAVEN BUNDLE PLUGIN -->
285 <groupId>org.apache.felix</groupId>
286 <artifactId>maven-bundle-plugin</artifactId>
287 <version>${bundle.plugin.version}</version>
288 <extensions>true</extensions>
291 <Embed-Dependency>*;inline=false;scope=compile</Embed-Dependency>
292 <Embed-Transitive>true</Embed-Transitive>
293 <Embed-Directory>lib</Embed-Directory>
298 <id>Bundling mapper Jar</id>
299 <phase>package</phase>
307 <!-- MAVEN AUTO RUN PLUGIN -->
309 <groupId>org.apache.maven.plugins</groupId>
310 <artifactId>maven-antrun-plugin</artifactId>
311 <version>${autorun.plugin.version}</version>
314 <!-- SUREFIRE TEST PLUGIN -->
316 <groupId>org.apache.maven.plugins</groupId>
317 <artifactId>maven-surefire-plugin</artifactId>
318 <version>${surefire.plugin.version}</version>
320 <skipTests>${skip.unit.tests}</skipTests>
321 <argLine>-Xmx2048m -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
322 -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError
324 <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
325 <parallel>methods</parallel>
326 <threadCount>8</threadCount>
327 <forkCount>8</forkCount>
328 <reuseForks>true</reuseForks>
329 <reportFormat>xml</reportFormat>
330 <trimStackTrace>false</trimStackTrace>
331 <systemPropertyVariables>
332 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
333 <logback.configurationFile>
334 ${basedir}/src/test/resources/logback-test.xml
335 </logback.configurationFile>
336 <HADOOP_HOME>${project.build.directory}</HADOOP_HOME>
337 </systemPropertyVariables>
339 <include>${unit.test.pattern}</include>
342 <exclude>${integration.test.pattern}</exclude>
344 <!-- Sets the VM argument line used when unit tests are run. -->
345 <argLine>${surefireArgLine}</argLine>
349 <groupId>org.apache.maven.surefire</groupId>
350 <artifactId>surefire-junit47</artifactId>
351 <version>${surefire.plugin.version}</version>
356 <!-- FAIL SAFE PLUGIN FOR INTEGRATION TEST -->
358 <groupId>org.apache.maven.plugins</groupId>
359 <artifactId>maven-failsafe-plugin</artifactId>
360 <version>${failsafe.plugin.version}</version>
363 <id>integration-tests</id>
365 <goal>integration-test</goal>
369 <skipTests>${skip.integration.tests}</skipTests>
370 <!-- Sets the VM argument line used when integration tests are run. -->
371 <!--suppress MavenModelInspection -->
372 <argLine>${failsafeArgLine}</argLine>
378 <!-- FIND BUGS (STATIC CODE ANALYSIS) PLUGIN -->
380 <groupId>org.codehaus.mojo</groupId>
381 <artifactId>findbugs-maven-plugin</artifactId>
382 <version>${findbugs.plugin.version}</version>
385 <threshold>Low</threshold>
386 <xmlOutput>true</xmlOutput>
387 <!-- BUILD FAIL ON FINDBUGS ERRORS -->
388 <failOnError>${findbugs.failOnError}</failOnError>
389 <excludeFilterFile>${main.basedir}/findbugs-exclude.xml</excludeFilterFile>
390 <outputDirectory>${project.reporting.outputDirectory}/findbugs</outputDirectory>
391 <findbugsXmlOutputDirectory>${project.reporting.outputDirectory}/findbugs
392 </findbugsXmlOutputDirectory>
396 <id>analyze-compile</id>
397 <phase>compile</phase>
405 <!-- PMD PLUGIN SETUP -->
407 <groupId>org.apache.maven.plugins</groupId>
408 <artifactId>maven-pmd-plugin</artifactId>
409 <version>${pmd.plugin.version}</version>
411 <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
412 <targetJdk>${compiler.target.version}</targetJdk>
413 <linkXRef>false</linkXRef>
415 IGNORE PMD & CPD ANALYTICS MODEL FACADE OBJECTS
416 <exclude>**/model/facade/**/*.java</exclude>
418 BUILD FAIL ON PMD VIOLATION
419 <failOnViolation>${pmd.violation.buildfail}</failOnViolation>
420 <targetDirectory>${project.reporting.outputDirectory}/pmd</targetDirectory>
429 <printFailingErrors>true</printFailingErrors>
430 <excludeFromFailureFile>${main.basedir}/pmd-exclude.properties</excludeFromFailureFile>
436 <goal>cpd-check</goal>
439 <printFailingErrors>true</printFailingErrors>
440 <excludeFromFailureFile>${main.basedir}/cpd-exclude.properties</excludeFromFailureFile>
446 <!-- CHECKSTYLE PLUGIN -->
448 <groupId>org.apache.maven.plugins</groupId>
449 <artifactId>maven-checkstyle-plugin</artifactId>
450 <version>${checkstyle.plugin.version}</version>
454 <phase>validate</phase>
456 <configLocation>${checkstyle.file.name}</configLocation>
457 <suppressionsLocation>${checkstyle.suppression.file.name}</suppressionsLocation>
458 <encoding>UTF-8</encoding>
459 <consoleOutput>true</consoleOutput>
460 BUILD FAIL ON CHECKSTYLE VIOLATION
461 <failOnViolation>${checkstyle.failOnViolation}</failOnViolation>
462 <includeTestSourceDirectory>true</includeTestSourceDirectory>
463 <outputFile>${project.reporting.outputDirectory}/checkstyle</outputFile>
472 <groupId>com.puppycrawl.tools</groupId>
473 <artifactId>checkstyle</artifactId>
474 <version>6.19</version>
479 <!-- ECLIPSE PLUGIN -->
481 <groupId>org.apache.maven.plugins</groupId>
482 <artifactId>maven-eclipse-plugin</artifactId>
483 <version>${eclipe.plugin.version}</version>
488 <!-- GIT COMMIT ID PLUGIN -->
490 <groupId>pl.project13.maven</groupId>
491 <artifactId>git-commit-id-plugin</artifactId>
492 <version>${gitcommitid.plugin.version}</version>
495 <id>generate-git-properties</id>
496 <phase>generate-resources</phase>
498 <goal>revision</goal>
501 <failOnNoGitDirectory>false</failOnNoGitDirectory>
502 <generateGitPropertiesFile>true</generateGitPropertiesFile>
503 <generateGitPropertiesFilename>
504 ${project.build.directory}/git/git.properties
505 </generateGitPropertiesFilename>
514 <groupId>org.apache.maven.plugins</groupId>
515 <artifactId>maven-jar-plugin</artifactId>
516 <version>${jar.plugin.version}</version>
520 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
523 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
530 <groupId>org.apache.maven.plugins</groupId>
531 <artifactId>maven-site-plugin</artifactId>
532 <version>${maven.site.plugin}</version>
536 <groupId>org.apache.maven.plugins</groupId>
537 <artifactId>maven-jxr-plugin</artifactId>
538 <version>${jxr.plugin.version}</version>
542 <groupId>org.apache.maven.plugins</groupId>
543 <artifactId>maven-project-info-reports-plugin</artifactId>
544 <version>${project.info.reports.plugin.version}</version>
546 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
547 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
552 <groupId>org.apache.maven.plugins</groupId>
553 <artifactId>maven-surefire-report-plugin</artifactId>
554 <version>${surefire.report.plugin.version}</version>
564 <groupId>org.apache.maven.plugins</groupId>
565 <artifactId>maven-compiler-plugin</artifactId>
569 <groupId>org.apache.maven.plugins</groupId>
570 <artifactId>maven-jar-plugin</artifactId>
574 <groupId>org.apache.maven.plugins</groupId>
575 <artifactId>maven-surefire-plugin</artifactId>
579 <groupId>org.apache.maven.plugins</groupId>
580 <artifactId>maven-failsafe-plugin</artifactId>
584 <groupId>org.apache.maven.plugins</groupId>
585 <artifactId>maven-source-plugin</artifactId>
589 <groupId>org.apache.maven.plugins</groupId>
590 <artifactId>maven-javadoc-plugin</artifactId>
594 <groupId>org.apache.maven.plugins</groupId>
595 <artifactId>maven-pmd-plugin</artifactId>
599 <groupId>org.codehaus.mojo</groupId>
600 <artifactId>findbugs-maven-plugin</artifactId>
604 <groupId>org.apache.maven.plugins</groupId>
605 <artifactId>maven-checkstyle-plugin</artifactId>
606 <inherited>false</inherited>
610 <groupId>pl.project13.maven</groupId>
611 <artifactId>git-commit-id-plugin</artifactId>
620 <groupId>org.apache.maven.plugins</groupId>
621 <artifactId>maven-site-plugin</artifactId>
624 <groupId>org.apache.maven.plugins</groupId>
625 <artifactId>maven-checkstyle-plugin</artifactId>
627 <configLocation>${checkstyle.file.name}</configLocation>
628 <suppressionsLocation>${checkstyle.suppression.file.name}</suppressionsLocation>
632 <groupId>org.apache.maven.plugins</groupId>
633 <artifactId>maven-jxr-plugin</artifactId>
636 <groupId>org.apache.maven.plugins</groupId>
637 <artifactId>maven-pmd-plugin</artifactId>
640 <groupId>org.apache.maven.plugins</groupId>
641 <artifactId>maven-project-info-reports-plugin</artifactId>
644 <groupId>org.apache.maven.plugins</groupId>
645 <artifactId>maven-surefire-report-plugin</artifactId>
652 <id>doclint-java8-disable</id>
659 <groupId>org.apache.maven.plugins</groupId>
660 <artifactId>maven-javadoc-plugin</artifactId>
662 <additionalparam>-Xdoclint:none</additionalparam>
671 <module>UniversalVesAdapter</module>
672 <!-- <module></module> -->