1 <?xml version="1.0" encoding="UTF-8"?>
3 * ============LICENSE_START=======================================================
4 * ONAP : DCAEGEN2/services/mapper
5 * ================================================================================
6 * Copyright 2018 TechMahindra
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=========================================================
21 <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">
22 <modelVersion>4.0.0</modelVersion>
25 <groupId>org.onap.oparent</groupId>
26 <artifactId>oparent</artifactId>
27 <version>1.2.0</version>
31 <groupId>org.onap.dcaegen2.services.mapper</groupId>
32 <artifactId>mapper</artifactId>
33 <version>0.0.1-SNAPSHOT</version>
34 <packaging>pom</packaging>
36 <name>dcaegen2-services-mapper</name>
37 <description>Universal VES mapper for DCAE Analytics Service</description>
41 <name>The Apache Software License, Version 2.0</name>
42 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
48 <!-- PROJECT SETTINGS-->
49 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
50 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
51 <main.basedir>${project.basedir}</main.basedir>
54 <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
56 <slf4j.version>1.7.25</slf4j.version>
57 <jackson.json.version>2.9.4</jackson.json.version>
59 <netty.http.version>0.16.0</netty.http.version>
60 <gson.version>2.2.4</gson.version>
61 <guava.version>13.0.1</guava.version>
62 <guice.version>3.0</guice.version>
63 <logback.version>1.0.9</logback.version>
64 <findbugs.jsr305.version>2.0.1</findbugs.jsr305.version>
65 <findbugs.annotations.version>3.0.0</findbugs.annotations.version>
66 <lombok.version>1.16.10</lombok.version>
68 <json.path.version>2.2.0</json.path.version>
69 <quartz.version>2.2.0</quartz.version>
70 <httpclient.version>4.5.6</httpclient.version>
71 <commons.lang3.version>3.5</commons.lang3.version>
73 <docker.maven.version>1.1.1</docker.maven.version>
75 <!--TESTING DEPENDENCIES -->
76 <junit.version>4.12</junit.version>
77 <jayway.jsonpath.version>2.2.0</jayway.jsonpath.version>
78 <jsonassert.version>1.4.0</jsonassert.version>
79 <mockito.version>2.5.7</mockito.version>
80 <cucumber.version>1.2.5</cucumber.version>
83 <!-- PLUGINS VERSIONS -->
84 <compiler.plugin.version>3.3</compiler.plugin.version>
85 <surefire.plugin.version>2.19.1</surefire.plugin.version>
86 <failsafe.plugin.version>2.19.1</failsafe.plugin.version>
87 <bundle.plugin.version>2.5.4</bundle.plugin.version>
88 <autorun.plugin.version>1.7</autorun.plugin.version>
89 <eclipe.plugin.version>2.10</eclipe.plugin.version>
90 <findbugs.plugin.version>3.0.2</findbugs.plugin.version>
91 <pmd.plugin.version>3.5</pmd.plugin.version>
92 <surefire.report.plugin.version>2.19.1</surefire.report.plugin.version>
93 <checkstyle.plugin.version>2.16</checkstyle.plugin.version>
94 <javadoc.plugin.version>2.10.4</javadoc.plugin.version>
95 <source.plugin.version>2.4</source.plugin.version>
96 <jar.plugin.version>2.4</jar.plugin.version>
97 <lombok.plugin.version>1.16.10.0</lombok.plugin.version>
98 <jgitflow.plugin.version>1.0-m5.1</jgitflow.plugin.version>
99 <gitcommitid.plugin.version>2.2.3</gitcommitid.plugin.version>
100 <maven.site.plugin>3.5.1</maven.site.plugin>
101 <jxr.plugin.version>2.5</jxr.plugin.version>
102 <project.info.reports.plugin.version>2.7</project.info.reports.plugin.version>
104 <!--PLUGIN SETTINGS -->
105 <!-- <compiler.source.version>1.7</compiler.source.version>
106 <compiler.target.version>1.7</compiler.target.version> -->
107 <compiler.source.version>1.8</compiler.source.version>
108 <compiler.target.version>1.8</compiler.target.version>
109 <unit.test.pattern>**/*Test.java</unit.test.pattern>
110 <skip.unit.tests>false</skip.unit.tests>
111 <integration.test.pattern>**/*IT.java</integration.test.pattern>
112 <skip.integration.tests>true</skip.integration.tests>
113 <!-- <pmd.violation.buildfail>true</pmd.violation.buildfail> -->
114 <findbugs.failOnError>true</findbugs.failOnError>
115 <checkstyle.failOnViolation>true</checkstyle.failOnViolation>
116 <checkstyle.file.name>checkstyle.xml</checkstyle.file.name>
117 <checkstyle.suppression.file.name>suppressions.xml</checkstyle.suppression.file.name>
118 <dependency.locations.enabled>false</dependency.locations.enabled>
119 <nexusproxy>https://nexus.onap.org</nexusproxy>
120 <snapshots.path>content/repositories/snapshots/</snapshots.path>
121 <releases.path>content/repositories/releases/</releases.path>
123 content/sites/site/org/onap/dcaegen2/services/mapper/${project.artifactId}/${project.version}
127 <dependencyManagement>
133 <groupId>org.slf4j</groupId>
134 <artifactId>slf4j-api</artifactId>
135 <version>${slf4j.version}</version>
136 <scope>provided</scope>
142 <groupId>org.apache.commons</groupId>
143 <artifactId>commons-lang3</artifactId>
144 <version>${commons.lang3.version}</version>
147 <!-- JACKSON JSON -->
149 <groupId>com.fasterxml.jackson.core</groupId>
150 <artifactId>jackson-core</artifactId>
151 <version>${jackson.json.version}</version>
154 <groupId>com.fasterxml.jackson.core</groupId>
155 <artifactId>jackson-databind</artifactId>
156 <version>${jackson.json.version}</version>
159 <groupId>com.fasterxml.jackson.core</groupId>
160 <artifactId>jackson-annotations</artifactId>
161 <version>${jackson.json.version}</version>
166 <groupId>com.jayway.jsonpath</groupId>
167 <artifactId>json-path</artifactId>
168 <version>${json.path.version}</version>
172 <!-- TEST DEPENDENCIES -->
175 <groupId>junit</groupId>
176 <artifactId>junit</artifactId>
177 <version>${junit.version}</version>
182 <groupId>org.mockito</groupId>
183 <artifactId>mockito-core</artifactId>
184 <version>${mockito.version}</version>
188 <groupId>com.jayway.jsonpath</groupId>
189 <artifactId>json-path-assert</artifactId>
190 <version>${jayway.jsonpath.version}</version>
194 <groupId>com.spotify</groupId>
195 <artifactId>docker-maven-plugin</artifactId>
196 <version>${docker.maven.version}</version>
201 </dependencyManagement>
208 <directory>${project.basedir}/src/main/resources</directory>
211 <directory>${project.build.directory}/git</directory>
217 <groupId>org.apache.maven.wagon</groupId>
218 <artifactId>wagon-webdav-jackrabbit</artifactId>
219 <version>1.0-beta-7</version>
227 <!-- COMPILER PLUGIN -->
229 <groupId>org.apache.maven.plugins</groupId>
230 <artifactId>maven-compiler-plugin</artifactId>
231 <version>${compiler.plugin.version}</version>
233 <source>${compiler.target.version}</source>
234 <target>${compiler.source.version}</target>
238 <!-- MAVEN SOURCE PLUGIN -->
240 <groupId>org.apache.maven.plugins</groupId>
241 <artifactId>maven-source-plugin</artifactId>
242 <version>${source.plugin.version}</version>
244 <excludeResources>true</excludeResources>
248 <id>attach-sources</id>
249 <phase>verify</phase>
251 <goal>jar-no-fork</goal>
258 <!-- MAVEN JAVADOC PLUGIN -->
260 <groupId>org.apache.maven.plugins</groupId>
261 <artifactId>maven-javadoc-plugin</artifactId>
262 <version>${javadoc.plugin.version}</version>
264 minimize console output messages
266 <verbose>false</verbose>
267 <useStandardDocletOptions>false</useStandardDocletOptions>
274 <goal>aggregate</goal>
278 <id>attach-javadoc</id>
286 <!-- MAVEN BUNDLE PLUGIN -->
288 <groupId>org.apache.felix</groupId>
289 <artifactId>maven-bundle-plugin</artifactId>
290 <version>${bundle.plugin.version}</version>
291 <extensions>true</extensions>
294 <Embed-Dependency>*;inline=false;scope=compile</Embed-Dependency>
295 <Embed-Transitive>true</Embed-Transitive>
296 <Embed-Directory>lib</Embed-Directory>
301 <id>Bundling mapper Jar</id>
302 <phase>package</phase>
310 <!-- MAVEN AUTO RUN PLUGIN -->
312 <groupId>org.apache.maven.plugins</groupId>
313 <artifactId>maven-antrun-plugin</artifactId>
314 <version>${autorun.plugin.version}</version>
317 <!-- SUREFIRE TEST PLUGIN -->
319 <groupId>org.apache.maven.plugins</groupId>
320 <artifactId>maven-surefire-plugin</artifactId>
321 <version>${surefire.plugin.version}</version>
323 <skipTests>${skip.unit.tests}</skipTests>
324 <argLine>-Xmx2048m -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
325 -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError
327 <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
328 <parallel>methods</parallel>
329 <threadCount>8</threadCount>
330 <forkCount>8</forkCount>
331 <reuseForks>true</reuseForks>
332 <reportFormat>xml</reportFormat>
333 <trimStackTrace>false</trimStackTrace>
334 <systemPropertyVariables>
335 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
336 <logback.configurationFile>
337 ${basedir}/src/test/resources/logback-test.xml
338 </logback.configurationFile>
339 <HADOOP_HOME>${project.build.directory}</HADOOP_HOME>
340 </systemPropertyVariables>
342 <include>${unit.test.pattern}</include>
345 <exclude>${integration.test.pattern}</exclude>
347 Sets the VM argument line used when unit tests are run.
348 <argLine>${surefireArgLine}</argLine>
352 <groupId>org.apache.maven.surefire</groupId>
353 <artifactId>surefire-junit47</artifactId>
354 <version>${surefire.plugin.version}</version>
359 <!-- FAIL SAFE PLUGIN FOR INTEGRATION TEST -->
361 <groupId>org.apache.maven.plugins</groupId>
362 <artifactId>maven-failsafe-plugin</artifactId>
363 <version>${failsafe.plugin.version}</version>
366 <id>integration-tests</id>
368 <goal>integration-test</goal>
372 <skipTests>${skip.integration.tests}</skipTests>
373 Sets the VM argument line used when integration tests are run.
374 suppress MavenModelInspection
375 <argLine>${failsafeArgLine}</argLine>
381 <!-- FIND BUGS (STATIC CODE ANALYSIS) PLUGIN -->
383 <groupId>org.codehaus.mojo</groupId>
384 <artifactId>findbugs-maven-plugin</artifactId>
385 <version>${findbugs.plugin.version}</version>
388 <threshold>Low</threshold>
389 <xmlOutput>true</xmlOutput>
390 BUILD FAIL ON FINDBUGS ERRORS
391 <failOnError>${findbugs.failOnError}</failOnError>
392 <excludeFilterFile>${main.basedir}/findbugs-exclude.xml</excludeFilterFile>
393 <outputDirectory>${project.reporting.outputDirectory}/findbugs</outputDirectory>
394 <findbugsXmlOutputDirectory>${project.reporting.outputDirectory}/findbugs
395 </findbugsXmlOutputDirectory>
399 <id>analyze-compile</id>
400 <phase>compile</phase>
408 <!-- PMD PLUGIN SETUP -->
410 <groupId>org.apache.maven.plugins</groupId>
411 <artifactId>maven-pmd-plugin</artifactId>
412 <version>${pmd.plugin.version}</version>
414 <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
415 <targetJdk>${compiler.target.version}</targetJdk>
416 <linkXRef>false</linkXRef>
418 IGNORE PMD & CPD ANALYTICS MODEL FACADE OBJECTS
419 <exclude>**/model/facade/**/*.java</exclude>
421 BUILD FAIL ON PMD VIOLATION
422 <failOnViolation>${pmd.violation.buildfail}</failOnViolation>
423 <targetDirectory>${project.reporting.outputDirectory}/pmd</targetDirectory>
432 <printFailingErrors>true</printFailingErrors>
433 <excludeFromFailureFile>${main.basedir}/pmd-exclude.properties</excludeFromFailureFile>
439 <goal>cpd-check</goal>
442 <printFailingErrors>true</printFailingErrors>
443 <excludeFromFailureFile>${main.basedir}/cpd-exclude.properties</excludeFromFailureFile>
449 <!-- CHECKSTYLE PLUGIN -->
451 <groupId>org.apache.maven.plugins</groupId>
452 <artifactId>maven-checkstyle-plugin</artifactId>
453 <version>${checkstyle.plugin.version}</version>
457 <phase>validate</phase>
459 <configLocation>${checkstyle.file.name}</configLocation>
460 <suppressionsLocation>${checkstyle.suppression.file.name}</suppressionsLocation>
461 <encoding>UTF-8</encoding>
462 <consoleOutput>true</consoleOutput>
463 BUILD FAIL ON CHECKSTYLE VIOLATION
464 <failOnViolation>${checkstyle.failOnViolation}</failOnViolation>
465 <includeTestSourceDirectory>true</includeTestSourceDirectory>
466 <outputFile>${project.reporting.outputDirectory}/checkstyle</outputFile>
475 <groupId>com.puppycrawl.tools</groupId>
476 <artifactId>checkstyle</artifactId>
477 <version>6.19</version>
482 <!-- ECLIPSE PLUGIN -->
484 <groupId>org.apache.maven.plugins</groupId>
485 <artifactId>maven-eclipse-plugin</artifactId>
486 <version>${eclipe.plugin.version}</version>
491 <!-- GIT COMMIT ID PLUGIN -->
493 <groupId>pl.project13.maven</groupId>
494 <artifactId>git-commit-id-plugin</artifactId>
495 <version>${gitcommitid.plugin.version}</version>
498 <id>generate-git-properties</id>
499 <phase>generate-resources</phase>
501 <goal>revision</goal>
504 <failOnNoGitDirectory>false</failOnNoGitDirectory>
505 <generateGitPropertiesFile>true</generateGitPropertiesFile>
506 <generateGitPropertiesFilename>
507 ${project.build.directory}/git/git.properties
508 </generateGitPropertiesFilename>
517 <groupId>org.apache.maven.plugins</groupId>
518 <artifactId>maven-jar-plugin</artifactId>
519 <version>${jar.plugin.version}</version>
523 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
526 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
533 <groupId>org.apache.maven.plugins</groupId>
534 <artifactId>maven-site-plugin</artifactId>
535 <version>${maven.site.plugin}</version>
539 <groupId>org.apache.maven.plugins</groupId>
540 <artifactId>maven-jxr-plugin</artifactId>
541 <version>${jxr.plugin.version}</version>
545 <groupId>org.apache.maven.plugins</groupId>
546 <artifactId>maven-project-info-reports-plugin</artifactId>
547 <version>${project.info.reports.plugin.version}</version>
549 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
550 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
555 <groupId>org.apache.maven.plugins</groupId>
556 <artifactId>maven-surefire-report-plugin</artifactId>
557 <version>${surefire.report.plugin.version}</version>
561 <groupId>com.spotify</groupId>
562 <artifactId>docker-maven-plugin</artifactId>
563 <version>${docker.maven.version}</version>
565 <skipDockerBuild>false</skipDockerBuild>
575 <groupId>org.apache.maven.plugins</groupId>
576 <artifactId>maven-compiler-plugin</artifactId>
580 <groupId>org.apache.maven.plugins</groupId>
581 <artifactId>maven-jar-plugin</artifactId>
585 <groupId>org.apache.maven.plugins</groupId>
586 <artifactId>maven-surefire-plugin</artifactId>
590 <groupId>org.apache.maven.plugins</groupId>
591 <artifactId>maven-failsafe-plugin</artifactId>
595 <groupId>org.apache.maven.plugins</groupId>
596 <artifactId>maven-source-plugin</artifactId>
600 <groupId>org.apache.maven.plugins</groupId>
601 <artifactId>maven-javadoc-plugin</artifactId>
605 <groupId>org.apache.maven.plugins</groupId>
606 <artifactId>maven-pmd-plugin</artifactId>
610 <groupId>org.codehaus.mojo</groupId>
611 <artifactId>findbugs-maven-plugin</artifactId>
615 <groupId>org.apache.maven.plugins</groupId>
616 <artifactId>maven-checkstyle-plugin</artifactId>
617 <inherited>false</inherited>
621 <groupId>pl.project13.maven</groupId>
622 <artifactId>git-commit-id-plugin</artifactId>
631 <groupId>org.apache.maven.plugins</groupId>
632 <artifactId>maven-site-plugin</artifactId>
635 <groupId>org.apache.maven.plugins</groupId>
636 <artifactId>maven-checkstyle-plugin</artifactId>
638 <configLocation>${checkstyle.file.name}</configLocation>
639 <suppressionsLocation>${checkstyle.suppression.file.name}</suppressionsLocation>
643 <groupId>org.apache.maven.plugins</groupId>
644 <artifactId>maven-jxr-plugin</artifactId>
647 <groupId>org.apache.maven.plugins</groupId>
648 <artifactId>maven-pmd-plugin</artifactId>
651 <groupId>org.apache.maven.plugins</groupId>
652 <artifactId>maven-project-info-reports-plugin</artifactId>
655 <groupId>org.apache.maven.plugins</groupId>
656 <artifactId>maven-surefire-report-plugin</artifactId>
663 <id>doclint-java8-disable</id>
670 <groupId>org.apache.maven.plugins</groupId>
671 <artifactId>maven-javadoc-plugin</artifactId>
673 <additionalparam>-Xdoclint:none</additionalparam>
682 <module>snmpmapper</module>
683 <module>UniversalVesAdapter</module>