1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
7 <modelVersion>4.0.0</modelVersion>
8 <packaging>pom</packaging>
9 <groupId>org.onap.ccsdk.parent</groupId>
10 <artifactId>odlparent</artifactId>
11 <version>1.1.0-SNAPSHOT</version>
14 <groupId>org.opendaylight.odlparent</groupId>
15 <artifactId>odlparent</artifactId>
16 <version>3.1.3</version>
21 <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
22 <url>http://wiki.onap.org</url>
23 <description>Root POM to be used in place of odlparent for CCSDK based projects</description>
28 <url>https://jira.onap.org/</url>
33 <!-- properties from oparent -->
34 <maven.compiler.source>1.8</maven.compiler.source>
35 <maven.compiler.target>1.8</maven.compiler.target>
36 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
38 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
39 <!-- sitePath may be overridden in the inheriting POM if desired -->
40 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
41 <jacoco.version>0.7.7.201606060606</jacoco.version>
42 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
43 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
44 <!-- Default Sonar configuration -->
45 <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec,target/code-coverage/jacoco-it.exec</sonar.jacoco.reportPaths>
46 <!-- Note: This list should match jacoco-maven-plugin's exclusion list
48 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
49 <!-- If following file exist, auto-generation of swagger.json will be done -->
50 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
51 <!-- If following file exist, auto-generation of sdk will be done -->
52 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
53 <!-- end of properties from oparent -->
55 <!-- ONAP repositories -->
56 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
57 <onap.nexus.port>443</onap.nexus.port>
58 <onap.nexus.protocol>https</onap.nexus.protocol>
59 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
60 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
61 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
62 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
63 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
64 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
67 <!-- OpenDaylight repositories -->
68 <opendaylight.nexus.public-url>https://nexus.opendaylight.org/content/repositories/public/</opendaylight.nexus.public-url>
69 <opendaylight.nexus.snapshot-url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</opendaylight.nexus.snapshot-url>
72 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
73 <java.version.source>1.8</java.version.source>
74 <java.version.target>1.8</java.version.target>
75 <bundle.plugin.version>2.5.0</bundle.plugin.version>
76 <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
77 <features.file>features.xml</features.file>
78 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
79 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
80 <checkstyle.skip>true</checkstyle.skip>
83 <sonar.language>java</sonar.language>
84 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
85 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
86 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
87 <sonar.projectVersion>${project.version}</sonar.projectVersion>
92 <!-- CCSDK component versions -->
93 <ccsdk.sli.core.version>0.3.0-SNAPSHOT</ccsdk.sli.core.version>
94 <ccsdk.sli.adaptors.version>0.3.0-SNAPSHOT</ccsdk.sli.adaptors.version>
95 <ccsdk.sli.northbound.version>0.3.0-SNAPSHOT</ccsdk.sli.northbound.version>
96 <ccsdk.sli.plugins.version>0.3.0-SNAPSHOT</ccsdk.sli.plugins.version>
97 <ccsdk.distribution.version>0.3.0-SNAPSHOT</ccsdk.distribution.version>
98 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
99 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
100 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
101 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
102 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
106 <!-- Support libraries used by OpenDaylight -->
107 <odl.mdsal.version>1.7.3</odl.mdsal.version>
108 <odl.mdsal.model.version>0.12.3</odl.mdsal.model.version>
109 <!-- Used by aaa, vtn -->
110 <commons.codec.version>1.10</commons.codec.version>
111 <!-- Used by netconf, ovsdb -->
112 <commons.lang3.version>3.7</commons.lang3.version>
113 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
114 <commons.lang.version>2.6</commons.lang.version>
115 <!-- Used by neutron; see also controller, vtn -->
116 <commons.net.version>3.6</commons.net.version>
117 <!-- Used by neutron -->
118 <eclipse.persistence.version>2.7.1</eclipse.persistence.version>
120 <felix.dependencymanager.version>4.4.1</felix.dependencymanager.version>
121 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
122 <gson.version>2.8.2</gson.version>
123 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
124 <guava.version>23.6</guava.version>
125 <!-- Used by lispflowmapping, sxp, vtn/manager -->
126 <hamcrest.version>1.3.1</hamcrest.version>
127 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
128 integration/distribution, snmp4sdn, toolkit, ttp -->
129 <jackson.version>2.3.2</jackson.version>
130 <!-- Used by snmp4sdn, yangtools -->
131 <javassist.version>3.20.0-GA</javassist.version>
133 <!-- FIXME remove all dependencies for jersey 1.17 after migration all
135 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity, defense4all,
136 snmp4sdn, toolkit -->
137 <jersey.version>1.19.4</jersey.version>
139 <jersey.client.version>1.19.4</jersey.client.version>
141 <!-- New packages for jersey migration 1.17 to 2.8 -->
142 <!-- appache.geronimo.bundle for DocGen -->
143 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
144 <org.json.version>20131018</org.json.version>
147 <jettison.version>1.3.8</jettison.version>
148 <!-- Used by persistence -->
149 <jsr305.api.version>3.0.0</jsr305.api.version>
150 <!-- Need to stick to JUnit 4.11 until https://github.com/jayway/powermock/issues/560
151 is fixed (either in PowerMock or with a new JUnit release) -->
152 <!-- Used everywhere -->
153 <junit.version>4.11</junit.version>
154 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
155 <logback.version>1.2.3</logback.version>
156 <!-- Used by nic, sfc, sxp, tsdr -->
157 <mockito.version>1.10.19</mockito.version>
158 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
159 <netty.version>4.1.22.Final</netty.version>
160 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity,
162 <slf4j.version>1.7.25</slf4j.version>
163 <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit,
165 <spring.version>3.2.17.RELEASE</spring.version>
169 <!-- Extra support libraries used by SDN-C -->
170 <equinox.osgi.version>3.8.1.v20120830-144521</equinox.osgi.version>
171 <jackson-annotations-version>${jackson.version}</jackson-annotations-version>
172 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
173 <apache.httpcomponents.core.version>4.4.4</apache.httpcomponents.core.version>
174 <apache.httpcomponents.client.version>4.5.2</apache.httpcomponents.client.version>
175 <antlr.version>4.7.1</antlr.version>
176 <mysql.connector.version>5.1.39</mysql.connector.version>
177 <mariadb.connector.version>2.1.1</mariadb.connector.version>
178 <h2database.version>1.4.196</h2database.version>
179 <derby.version>10.14.2.0</derby.version>
181 <eelf.version>1.0.0</eelf.version>
182 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
184 <tomcat-jdbc.version>8.5.14</tomcat-jdbc.version>
188 <!-- Profiles from ONAP oparent -->
190 <id>generate-json</id>
193 <exists>${swagger-properties}</exists>
196 <name>swagger-sdk.generate-json</name>
202 <groupId>org.codehaus.mojo</groupId>
203 <artifactId>properties-maven-plugin</artifactId>
204 <version>1.0.0</version>
207 <phase>initialize</phase>
209 <goal>read-project-properties</goal>
213 <file>${basedir}/src/main/resources/swagger.properties</file>
220 <groupId>com.github.kongchen</groupId>
221 <artifactId>swagger-maven-plugin</artifactId>
222 <version>3.1.4</version>
226 <locations>${api-rest-package}</locations>
227 <schemes>http,https</schemes>
228 <host>${api-host-ip}:${api-host-port}</host>
229 <basePath>${api-base-path}</basePath>
231 <title>${api-title}</title>
232 <version>${api-version}</version>
233 <description>${api-description}</description>
235 <name>${api-license}</name>
238 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
244 <phase>compile</phase>
246 <goal>generate</goal>
252 <groupId>org.apache.maven.plugins</groupId>
253 <artifactId>maven-install-plugin</artifactId>
254 <version>2.3.1</version>
257 <id>install-file-id</id>
258 <phase>install</phase>
260 <goal>install-file</goal>
263 <file>${basedir}/src/main/resources/swagger.json</file>
264 <groupId>${project.groupId}</groupId>
265 <artifactId>${project.artifactId}-swagger-schema</artifactId>
266 <version>${project.version}</version>
267 <packaging>json</packaging>
276 <id>generate-sdk</id>
279 <exists>${swagger-json}</exists>
282 <name>swagger-sdk.generate-java-sdk</name>
288 <groupId>org.apache.maven.plugins</groupId>
289 <artifactId>maven-antrun-plugin</artifactId>
290 <version>1.8</version>
293 <phase>initialize</phase>
294 <id>ant-create-script</id>
296 <exportAntProperties>true</exportAntProperties>
299 <taskdef resource="net/sf/antcontrib/antlib.xml"
300 classpathref="maven.plugin.classpath" />
301 <condition property="is_windows" value="true">
302 <os family="windows" />
304 <condition property="isLinux" value="true">
308 <equals arg1="${is_windows}" arg2="true" />
310 <property name="swagger.sdk.script.file"
311 value="generated-source-script.bat" />
313 file="${project.build.directory}${file.separator}generated-source-script.bat"
315 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
317 file="${project.build.directory}${file.separator}generated-source-script.bat"
319 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
322 <property name="swagger.sdk.script.file"
323 value="generated-source-script.sh" />
325 file="${project.build.directory}${file.separator}generated-source-script.sh"
327 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
329 file="${project.build.directory}${file.separator}generated-source-script.sh"
331 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
333 file="${project.build.directory}${file.separator}generated-source-script.sh"
346 <groupId>ant-contrib</groupId>
347 <artifactId>ant-contrib</artifactId>
348 <version>1.0b3</version>
351 <artifactId>ant</artifactId>
352 <groupId>ant</groupId>
359 <groupId>io.swagger</groupId>
360 <artifactId>swagger-codegen-maven-plugin</artifactId>
361 <version>2.2.1</version>
365 <goal>generate</goal>
368 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
369 <output>${project.build.directory}/generated-sources</output>
370 <language>java</language>
372 <dateLibrary>joda</dateLibrary>
374 <library>jersey2</library>
375 <groupId>${project.groupId}</groupId>
376 <artifactId>${project.artifactId}-java-sdk</artifactId>
377 <artifactVersion>${project.version}</artifactVersion>
378 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
379 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
380 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
386 <artifactId>exec-maven-plugin</artifactId>
387 <groupId>org.codehaus.mojo</groupId>
388 <version>1.5.0</version>
391 <id>swagger-generate-sources</id>
392 <phase>generate-sources</phase>
397 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
403 <groupId>org.apache.maven.plugins</groupId>
404 <artifactId>maven-clean-plugin</artifactId>
405 <version>3.0.0</version>
408 <id>clean-generated-files</id>
409 <phase>generate-sources</phase>
416 <directory>${project.build.directory}/generated-sources</directory>
427 <groupId>org.onap.msb.swagger-sdk</groupId>
428 <artifactId>swagger-sdk</artifactId>
429 <version>1.0.0</version>
434 <!-- End of profiles from ONAP oparent -->
439 <dependencyManagement>
442 <groupId>org.opendaylight.controller</groupId>
443 <artifactId>mdsal-artifacts</artifactId>
444 <version>${odl.mdsal.version}</version>
446 <scope>import</scope>
449 <groupId>org.opendaylight.mdsal.model</groupId>
450 <artifactId>mdsal-model-artifacts</artifactId>
451 <version>${odl.mdsal.model.version}</version>
453 <scope>import</scope>
456 <groupId>org.onap.sdnc.core</groupId>
457 <artifactId>sli-common</artifactId>
458 <version>${sdnctl.sli.version}</version>
462 <groupId>org.onap.sdnc.core</groupId>
463 <artifactId>sli-provider</artifactId>
464 <version>${sdnctl.sli.version}</version>
468 <groupId>org.onap.sdnc.core</groupId>
469 <artifactId>aai-service-provider</artifactId>
470 <version>${sdnctl.aai.service.version}</version>
474 <groupId>org.onap.sdnc.core</groupId>
475 <artifactId>dblib-provider</artifactId>
476 <version>${sdnctl.dblib.version}</version>
479 <groupId>com.att.eelf</groupId>
480 <artifactId>eelf-core</artifactId>
481 <version>${eelf.version}</version>
484 <groupId>org.apache.derby</groupId>
485 <artifactId>derby</artifactId>
486 <version>${derby.version}</version>
491 </dependencyManagement>
497 <artifactId>maven-javadoc-plugin</artifactId>
498 <version>2.10.4</version>
500 <failOnError>false</failOnError>
501 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
503 <groupId>org.umlgraph</groupId>
504 <artifactId>umlgraph</artifactId>
505 <version>5.6</version>
507 <additionalparam>-views</additionalparam>
508 <useStandardDocletOptions>true</useStandardDocletOptions>
509 <excludePackageNames>org.opendaylight.*</excludePackageNames>
510 <additionalDependencies>
511 <additionalDependency>
512 <groupId>org.slf4j</groupId>
513 <artifactId>slf4j-api</artifactId>
514 <version>${slf4j.version}</version>
515 </additionalDependency>
516 <additionalDependency>
517 <groupId>org.antlr</groupId>
518 <artifactId>antlr4</artifactId>
519 <version>${antlr.version}</version>
520 </additionalDependency>
521 <additionalDependency>
522 <groupId>org.antlr</groupId>
523 <artifactId>antlr4-runtime</artifactId>
524 <version>${antlr.version}</version>
525 </additionalDependency>
527 <additionalDependency>
528 <groupId>com.sun.jersey</groupId>
529 <artifactId>jersey-client</artifactId>
530 <version>${jersey.json.version}</version>
531 </additionalDependency>
532 <additionalDependency>
533 <groupId>com.sun.jersey</groupId>
534 <artifactId>jersey-core</artifactId>
535 <version>${jersey.json.version}</version>
536 </additionalDependency>
537 <additionalDependency>
538 <groupId>org.apache.httpcomponents</groupId>
539 <artifactId>httpcore-osgi</artifactId>
540 <version>${apache.httpcomponents.core.version}</version>
541 </additionalDependency>
542 <additionalDependency>
543 <groupId>org.apache.httpcomponents</groupId>
544 <artifactId>httpclient-osgi</artifactId>
545 <version>${apache.httpcomponents.client.version}</version>
546 </additionalDependency>
547 <additionalDependency>
548 <groupId>com.fasterxml.jackson.core</groupId>
549 <artifactId>jackson-databind</artifactId>
550 <version>${fasterxml.jackson.version}</version>
551 </additionalDependency>
552 <additionalDependency>
553 <groupId>com.fasterxml.jackson.core</groupId>
554 <artifactId>jackson-annotations</artifactId>
555 <version>${fasterxml.jackson.version}</version>
556 </additionalDependency>
557 <additionalDependency>
558 <groupId>com.fasterxml.jackson.core</groupId>
559 <artifactId>jackson-core</artifactId>
560 <version>${fasterxml.jackson.version}</version>
561 </additionalDependency>
562 <additionalDependency>
563 <groupId>commons-lang</groupId>
564 <artifactId>commons-lang</artifactId>
565 <version>${commons.lang.version}</version>
566 </additionalDependency>
567 </additionalDependencies>
572 <report>javadoc-no-fork</report>
573 <report>test-javadoc-no-fork</report>
579 <report>aggregate</report>
580 <report>test-aggregate</report>
586 <groupId>org.apache.maven.plugins</groupId>
587 <artifactId>maven-jxr-plugin</artifactId>
588 <version>2.3</version>
593 <report>aggregate</report>
594 <report>test-aggregate</report>
601 <artifactId>maven-surefire-plugin</artifactId>
602 <version>2.17</version>
605 <groupId>org.apache.maven.plugins</groupId>
606 <artifactId>maven-changelog-plugin</artifactId>
607 <version>2.3</version>
616 <report>changelog</report>
617 <report>file-activity</report>
623 <groupId>org.codehaus.mojo</groupId>
624 <artifactId>taglist-maven-plugin</artifactId>
625 <version>2.4</version>
634 <url>${onap.nexus.public-url}</url>
636 <enabled>true</enabled>
639 <enabled>true</enabled>
643 <id>onap-staging</id>
644 <url>${onap.nexus.staging-url}</url>
646 <enabled>true</enabled>
649 <enabled>true</enabled>
653 <id>onap-snapshot</id>
654 <url>${onap.nexus.snapshot-url}</url>
656 <enabled>false</enabled>
659 <enabled>true</enabled>
663 <id>opendaylight-mirror</id>
664 <name>opendaylight-mirror</name>
665 <url>${opendaylight.nexus.public-url}</url>
667 <enabled>true</enabled>
668 <updatePolicy>never</updatePolicy>
671 <enabled>false</enabled>
675 <id>opendaylight-snapshot</id>
676 <name>opendaylight-snapshot</name>
677 <url>${opendaylight.nexus.snapshot-url}</url>
679 <enabled>false</enabled>
682 <enabled>true</enabled>
685 <!-- Black Duck plugin dependencies -->
688 <name>JCenter Repository</name>
689 <url>http://jcenter.bintray.com</url>
694 <name>Restlet Repository</name>
695 <url>http://maven.restlet.com</url>
697 </pluginRepositories>
703 <url>https://nexus.onap.org/content/groups/public</url>
705 <enabled>true</enabled>
706 <updatePolicy>never</updatePolicy>
709 <enabled>true</enabled>
710 <updatePolicy>always</updatePolicy>
714 <id>onap-staging</id>
715 <url>https://nexus.onap.org/content/groups/staging</url>
717 <enabled>true</enabled>
718 <updatePolicy>never</updatePolicy>
721 <enabled>true</enabled>
722 <updatePolicy>always</updatePolicy>
726 <id>ecomp-release</id>
727 <name>onap-repository-releases</name>
728 <url>https://nexus.onap.org/content/repositories/releases</url>
730 <enabled>true</enabled>
731 <updatePolicy>never</updatePolicy>
734 <enabled>false</enabled>
738 <id>ecomp-snapshot</id>
739 <name>onap-repository-snapshots</name>
740 <url>https://nexus.onap.org/content/repositories/snapshots</url>
742 <enabled>false</enabled>
745 <enabled>true</enabled>
749 <id>opendaylight-mirror</id>
750 <name>opendaylight-mirror</name>
751 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
753 <enabled>true</enabled>
754 <updatePolicy>never</updatePolicy>
757 <enabled>false</enabled>
761 <id>opendaylight-snapshot</id>
762 <name>opendaylight-snapshot</name>
763 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
765 <enabled>false</enabled>
768 <enabled>true</enabled>
774 <distributionManagement>
776 <id>ecomp-releases</id>
777 <url>http://nexus.onap.org/content/repositories/releases</url>
780 <id>ecomp-snapshots</id>
781 <url>http://nexus.onap.org/content/repositories/snapshots</url>
782 </snapshotRepository>
783 </distributionManagement>
789 <!-- Plugins from ONAP oparent -->
791 <groupId>org.apache.maven.plugins</groupId>
792 <artifactId>maven-deploy-plugin</artifactId>
793 <!-- This version supports the "deployAtEnd" parameter -->
794 <version>2.8</version>
801 <groupId>org.apache.maven.plugins</groupId>
802 <artifactId>maven-site-plugin</artifactId>
803 <version>3.6</version>
806 <groupId>org.apache.maven.wagon</groupId>
807 <artifactId>wagon-webdav-jackrabbit</artifactId>
808 <version>2.10</version>
811 <groupId>org.apache.maven.doxia</groupId>
812 <artifactId>doxia-core</artifactId>
813 <version>1.7</version>
816 <groupId>org.apache.maven.doxia</groupId>
817 <artifactId>doxia-sink-api</artifactId>
818 <version>1.7</version>
821 <groupId>org.apache.maven.doxia</groupId>
822 <artifactId>doxia-logging-api</artifactId>
823 <version>1.7</version>
828 <id>attach-descriptor</id>
830 <goal>attach-descriptor</goal>
836 <artifactId>maven-checkstyle-plugin</artifactId>
837 <version>2.17</version>
840 <groupId>org.onap.oparent</groupId>
841 <artifactId>checkstyle</artifactId>
842 <version>1.1.1</version>
847 <id>check-license</id>
851 <phase>process-sources</phase>
853 <configLocation>onap-checkstyle/check-license.xml</configLocation>
854 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
855 <includeResources>false</includeResources>
856 <includeTestSourceDirectory>true</includeTestSourceDirectory>
857 <includeTestResources>false</includeTestResources>
858 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
861 <failsOnError>false</failsOnError>
862 <consoleOutput>true</consoleOutput>
870 <phase>process-sources</phase>
872 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
873 with minor changes -->
874 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
875 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated
876 sources directory -->
877 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
878 <includeResources>true</includeResources>
879 <includeTestSourceDirectory>true</includeTestSourceDirectory>
880 <includeTestResources>true</includeTestResources>
883 <failsOnError>false</failsOnError>
884 <consoleOutput>true</consoleOutput>
890 <groupId>org.jacoco</groupId>
891 <artifactId>jacoco-maven-plugin</artifactId>
892 <version>${jacoco.version}</version>
894 <!-- Note: This exclusion list should match <sonar.exclusions> property
897 <exclude>**/gen/**</exclude>
898 <exclude>**/generated-sources/**</exclude>
899 <exclude>**/yang-gen/**</exclude>
900 <exclude>**/pax/**</exclude>
904 <!-- Prepares the property pointing to the JaCoCo runtime agent which
905 is passed as VM argument when Maven the Surefire plugin is executed. -->
907 <id>pre-unit-test</id>
909 <goal>prepare-agent</goal>
912 <!-- Sets the path to the file which contains the execution data. -->
913 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
914 <!-- Sets the name of the property containing the settings for JaCoCo
916 <propertyName>surefireArgLine</propertyName>
919 <!-- Ensures that the code coverage report for unit tests is created
920 after unit tests have been run. -->
922 <id>post-unit-test</id>
928 <!-- Sets the path to the file which contains the execution data. -->
929 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
930 <!-- Sets the output directory for the code coverage report. -->
931 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
935 <id>pre-integration-test</id>
936 <phase>pre-integration-test</phase>
938 <goal>prepare-agent</goal>
941 <!-- Sets the path to the file which contains the execution data. -->
942 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
943 <!-- Sets the name of the property containing the settings for JaCoCo
945 <propertyName>failsafeArgLine</propertyName>
948 <!-- Ensures that the code coverage report for integration tests after
949 integration tests have been run. -->
951 <id>post-integration-test</id>
952 <phase>post-integration-test</phase>
957 <!-- Sets the path to the file which contains the execution data. -->
958 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
959 <!-- Sets the output directory for the code coverage report. -->
960 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
966 <groupId>org.apache.maven.plugins</groupId>
967 <artifactId>maven-surefire-plugin</artifactId>
968 <version>2.19.1</version>
970 <!-- Sets the VM argument line used when unit tests are run. -->
971 <argLine>${surefireArgLine}</argLine>
972 <!-- Excludes integration tests when unit tests are run. -->
974 <exclude>**/IT*.java</exclude>
979 <groupId>org.apache.maven.plugins</groupId>
980 <artifactId>maven-failsafe-plugin</artifactId>
981 <version>2.19.1</version>
983 <!-- Ensures that both integration-test and verify goals of the Failsafe
984 Maven plugin are executed. -->
986 <id>integration-tests</id>
988 <goal>integration-test</goal>
992 <!-- Sets the VM argument line used when integration tests are run. -->
993 <argLine>${failsafeArgLine}</argLine>
999 <groupId>org.apache.maven.plugins</groupId>
1000 <artifactId>maven-compiler-plugin</artifactId>
1001 <version>${maven.compile.plugin.version}</version>
1003 <source>${java.version.source}</source>
1004 <target>${java.version.target}</target>
1008 <groupId>org.sonarsource.scanner.maven</groupId>
1009 <artifactId>sonar-maven-plugin</artifactId>
1010 <version>3.3.0.603</version>
1013 <!-- End of plugins from ONAP oparent -->
1016 <groupId>org.apache.maven.plugins</groupId>
1017 <artifactId>maven-javadoc-plugin</artifactId>
1018 <version>2.10</version>
1020 <additionalDependencies>
1021 <additionalDependency>
1022 <groupId>org.slf4j</groupId>
1023 <artifactId>slf4j-api</artifactId>
1024 <version>${slf4j.version}</version>
1025 </additionalDependency>
1026 <additionalDependency>
1027 <groupId>org.antlr</groupId>
1028 <artifactId>antlr4</artifactId>
1029 <version>${antlr.version}</version>
1030 </additionalDependency>
1031 <additionalDependency>
1032 <groupId>org.antlr</groupId>
1033 <artifactId>antlr4-runtime</artifactId>
1034 <version>${antlr.version}</version>
1035 </additionalDependency>
1037 <additionalDependency>
1038 <groupId>com.sun.jersey</groupId>
1039 <artifactId>jersey-client</artifactId>
1040 <version>${jersey.client.version}</version>
1041 </additionalDependency>
1042 <additionalDependency>
1043 <groupId>com.sun.jersey</groupId>
1044 <artifactId>jersey-core</artifactId>
1045 <version>${jersey.version}</version>
1046 </additionalDependency>
1047 <additionalDependency>
1048 <groupId>org.apache.httpcomponents</groupId>
1049 <artifactId>httpcore-osgi</artifactId>
1050 <version>${apache.httpcomponents.core.version}</version>
1051 </additionalDependency>
1052 <additionalDependency>
1053 <groupId>org.apache.httpcomponents</groupId>
1054 <artifactId>httpclient-osgi</artifactId>
1055 <version>${apache.httpcomponents.client.version}</version>
1056 </additionalDependency>
1057 <additionalDependency>
1058 <groupId>com.fasterxml.jackson.core</groupId>
1059 <artifactId>jackson-databind</artifactId>
1060 <version>${jackson.version}</version>
1061 </additionalDependency>
1062 <additionalDependency>
1063 <groupId>com.fasterxml.jackson.core</groupId>
1064 <artifactId>jackson-annotations</artifactId>
1065 <version>${jackson.version}</version>
1066 </additionalDependency>
1067 <additionalDependency>
1068 <groupId>com.fasterxml.jackson.core</groupId>
1069 <artifactId>jackson-core</artifactId>
1070 <version>${jackson.version}</version>
1071 </additionalDependency>
1072 <additionalDependency>
1073 <groupId>commons-lang</groupId>
1074 <artifactId>commons-lang</artifactId>
1075 <version>${commons.lang.version}</version>
1076 </additionalDependency>
1077 </additionalDependencies>
1084 <goal>aggregate</goal>
1097 <!-- Plugins from ONAP oparent -->
1099 <artifactId>maven-checkstyle-plugin</artifactId>
1102 <groupId>org.codehaus.mojo</groupId>
1103 <artifactId>build-helper-maven-plugin</artifactId>
1104 <version>1.12</version>
1106 <!-- Jacoco / Sonar -->
1108 <groupId>org.jacoco</groupId>
1109 <artifactId>jacoco-maven-plugin</artifactId>
1112 <groupId>org.apache.maven.plugins</groupId>
1113 <artifactId>maven-surefire-plugin</artifactId>
1116 <groupId>org.apache.maven.plugins</groupId>
1117 <artifactId>maven-failsafe-plugin</artifactId>
1120 <!-- End of plugins from ONAP oparent -->
1122 <groupId>org.codehaus.mojo</groupId>
1123 <artifactId>properties-maven-plugin</artifactId>
1124 <version>1.0.0</version>
1128 <goal>set-system-properties</goal>
1133 <name>maven.wagon.http.ssl.allowall</name>
1134 <value>${ssl.allowall}</value>
1137 <name>maven.wagon.http.ssl.insecure</name>
1138 <value>${ssl.insecure}</value>
1146 <groupId>org.sonatype.plugins</groupId>
1147 <artifactId>nexus-staging-maven-plugin</artifactId>
1148 <version>1.6.7</version>
1149 <extensions>true</extensions>
1151 <nexusUrl>${onap.nexus.url}</nexusUrl>
1152 <stagingProfileId>176c31dfe190a</stagingProfileId>
1153 <serverId>ecomp-staging</serverId>
1157 <groupId>org.codehaus.mojo</groupId>
1158 <artifactId>versions-maven-plugin</artifactId>
1159 <version>2.5</version>
1161 <processAllModules>true</processAllModules>
1165 <artifactId>maven-scm-plugin</artifactId>
1166 <version>1.8.1</version>
1168 <tag>${project.artifactId}-${project.version}</tag>