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>karaf4-parent</artifactId>
11 <version>1.1.0-SNAPSHOT</version>
14 <groupId>org.opendaylight.odlparent</groupId>
15 <artifactId>karaf4-parent</artifactId>
16 <version>3.1.1</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 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
98 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
99 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
100 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
101 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
103 <!-- Support libraries used by OpenDaylight -->
104 <odl.mdsal.version>1.7.1</odl.mdsal.version>
105 <odl.mdsal.model.version>0.12.1</odl.mdsal.model.version>
106 <!-- Used by aaa, vtn -->
107 <commons.codec.version>1.10</commons.codec.version>
108 <!-- Used by netconf, ovsdb -->
109 <commons.lang3.version>3.7</commons.lang3.version>
110 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
111 <commons.lang.version>2.6</commons.lang.version>
112 <!-- Used by neutron; see also controller, vtn -->
113 <commons.net.version>3.6</commons.net.version>
114 <!-- Used by neutron -->
115 <eclipse.persistence.version>2.7.1</eclipse.persistence.version>
117 <felix.dependencymanager.version>4.4.1</felix.dependencymanager.version>
118 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
119 <gson.version>2.8.2</gson.version>
120 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
121 <guava.version>23.6</guava.version>
122 <!-- Used by lispflowmapping, sxp, vtn/manager -->
123 <hamcrest.version>1.3.1</hamcrest.version>
124 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
125 integration/distribution, snmp4sdn, toolkit, ttp -->
126 <jackson.version>2.3.2</jackson.version>
127 <!-- Used by snmp4sdn, yangtools -->
128 <javassist.version>3.20.0-GA</javassist.version>
130 <!-- FIXME remove all dependencies for jersey 1.17 after migration all
132 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity, defense4all,
133 snmp4sdn, toolkit -->
134 <jersey.version>1.19.4</jersey.version>
136 <jersey.client.version>1.19.4</jersey.client.version>
138 <!-- New packages for jersey migration 1.17 to 2.8 -->
139 <!-- appache.geronimo.bundle for DocGen -->
140 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
141 <org.json.version>20131018</org.json.version>
144 <jettison.version>1.3.8</jettison.version>
145 <!-- Used by persistence -->
146 <jsr305.api.version>3.0.0</jsr305.api.version>
147 <!-- Need to stick to JUnit 4.11 until https://github.com/jayway/powermock/issues/560
148 is fixed (either in PowerMock or with a new JUnit release) -->
149 <!-- Used everywhere -->
150 <junit.version>4.11</junit.version>
151 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
152 <logback.version>1.2.2</logback.version>
153 <!-- Used by nic, sfc, sxp, tsdr -->
154 <mockito.version>1.10.19</mockito.version>
155 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
156 <netty.version>4.1.22.Final</netty.version>
157 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity,
159 <slf4j.version>1.7.25</slf4j.version>
160 <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit,
162 <spring.version>3.2.17.RELEASE</spring.version>
166 <!-- Extra support libraries used by SDN-C -->
167 <equinox.osgi.version>3.8.1.v20120830-144521</equinox.osgi.version>
168 <jackson-annotations-version>${jackson.version}</jackson-annotations-version>
169 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
170 <apache.httpcomponents.core.version>4.4.4</apache.httpcomponents.core.version>
171 <apache.httpcomponents.client.version>4.5.2</apache.httpcomponents.client.version>
172 <antlr.version>4.7.1</antlr.version>
173 <mysql.connector.version>5.1.39</mysql.connector.version>
174 <mariadb.connector.version>2.1.1</mariadb.connector.version>
175 <h2database.version>1.4.196</h2database.version>
176 <derby.version>10.14.2.0</derby.version>
178 <eelf.version>1.0.0</eelf.version>
179 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
181 <tomcat-jdbc.version>8.5.14</tomcat-jdbc.version>
186 <!-- Profiles from ONAP oparent -->
188 <id>generate-json</id>
191 <exists>${swagger-properties}</exists>
194 <name>swagger-sdk.generate-json</name>
200 <groupId>org.codehaus.mojo</groupId>
201 <artifactId>properties-maven-plugin</artifactId>
202 <version>1.0.0</version>
205 <phase>initialize</phase>
207 <goal>read-project-properties</goal>
211 <file>${basedir}/src/main/resources/swagger.properties</file>
218 <groupId>com.github.kongchen</groupId>
219 <artifactId>swagger-maven-plugin</artifactId>
220 <version>3.1.4</version>
224 <locations>${api-rest-package}</locations>
225 <schemes>http,https</schemes>
226 <host>${api-host-ip}:${api-host-port}</host>
227 <basePath>${api-base-path}</basePath>
229 <title>${api-title}</title>
230 <version>${api-version}</version>
231 <description>${api-description}</description>
233 <name>${api-license}</name>
236 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
242 <phase>compile</phase>
244 <goal>generate</goal>
250 <groupId>org.apache.maven.plugins</groupId>
251 <artifactId>maven-install-plugin</artifactId>
252 <version>2.3.1</version>
255 <id>install-file-id</id>
256 <phase>install</phase>
258 <goal>install-file</goal>
261 <file>${basedir}/src/main/resources/swagger.json</file>
262 <groupId>${project.groupId}</groupId>
263 <artifactId>${project.artifactId}-swagger-schema</artifactId>
264 <version>${project.version}</version>
265 <packaging>json</packaging>
274 <id>generate-sdk</id>
277 <exists>${swagger-json}</exists>
280 <name>swagger-sdk.generate-java-sdk</name>
286 <groupId>org.apache.maven.plugins</groupId>
287 <artifactId>maven-antrun-plugin</artifactId>
288 <version>1.8</version>
291 <phase>initialize</phase>
292 <id>ant-create-script</id>
294 <exportAntProperties>true</exportAntProperties>
297 <taskdef resource="net/sf/antcontrib/antlib.xml"
298 classpathref="maven.plugin.classpath" />
299 <condition property="is_windows" value="true">
300 <os family="windows" />
302 <condition property="isLinux" value="true">
306 <equals arg1="${is_windows}" arg2="true" />
308 <property name="swagger.sdk.script.file"
309 value="generated-source-script.bat" />
311 file="${project.build.directory}${file.separator}generated-source-script.bat"
313 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
315 file="${project.build.directory}${file.separator}generated-source-script.bat"
317 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
320 <property name="swagger.sdk.script.file"
321 value="generated-source-script.sh" />
323 file="${project.build.directory}${file.separator}generated-source-script.sh"
325 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
327 file="${project.build.directory}${file.separator}generated-source-script.sh"
329 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
331 file="${project.build.directory}${file.separator}generated-source-script.sh"
344 <groupId>ant-contrib</groupId>
345 <artifactId>ant-contrib</artifactId>
346 <version>1.0b3</version>
349 <artifactId>ant</artifactId>
350 <groupId>ant</groupId>
357 <groupId>io.swagger</groupId>
358 <artifactId>swagger-codegen-maven-plugin</artifactId>
359 <version>2.2.1</version>
363 <goal>generate</goal>
366 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
367 <output>${project.build.directory}/generated-sources</output>
368 <language>java</language>
370 <dateLibrary>joda</dateLibrary>
372 <library>jersey2</library>
373 <groupId>${project.groupId}</groupId>
374 <artifactId>${project.artifactId}-java-sdk</artifactId>
375 <artifactVersion>${project.version}</artifactVersion>
376 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
377 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
378 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
384 <artifactId>exec-maven-plugin</artifactId>
385 <groupId>org.codehaus.mojo</groupId>
386 <version>1.5.0</version>
389 <id>swagger-generate-sources</id>
390 <phase>generate-sources</phase>
395 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
401 <groupId>org.apache.maven.plugins</groupId>
402 <artifactId>maven-clean-plugin</artifactId>
403 <version>3.0.0</version>
406 <id>clean-generated-files</id>
407 <phase>generate-sources</phase>
414 <directory>${project.build.directory}/generated-sources</directory>
425 <groupId>org.onap.msb.swagger-sdk</groupId>
426 <artifactId>swagger-sdk</artifactId>
427 <version>1.0.0</version>
432 <!-- End of profiles from ONAP oparent -->
437 <dependencyManagement>
440 <groupId>org.opendaylight.controller</groupId>
441 <artifactId>mdsal-artifacts</artifactId>
442 <version>${odl.mdsal.version}</version>
444 <scope>import</scope>
447 <groupId>org.opendaylight.mdsal.model</groupId>
448 <artifactId>mdsal-model-artifacts</artifactId>
449 <version>${odl.mdsal.model.version}</version>
451 <scope>import</scope>
454 <groupId>org.onap.sdnc.core</groupId>
455 <artifactId>sli-common</artifactId>
456 <version>${sdnctl.sli.version}</version>
460 <groupId>org.onap.sdnc.core</groupId>
461 <artifactId>sli-provider</artifactId>
462 <version>${sdnctl.sli.version}</version>
466 <groupId>org.onap.sdnc.core</groupId>
467 <artifactId>aai-service-provider</artifactId>
468 <version>${sdnctl.aai.service.version}</version>
472 <groupId>org.onap.sdnc.core</groupId>
473 <artifactId>dblib-provider</artifactId>
474 <version>${sdnctl.dblib.version}</version>
477 <groupId>com.att.eelf</groupId>
478 <artifactId>eelf-core</artifactId>
479 <version>${eelf.version}</version>
482 <groupId>org.apache.derby</groupId>
483 <artifactId>derby</artifactId>
484 <version>${derby.version}</version>
489 </dependencyManagement>
495 <artifactId>maven-javadoc-plugin</artifactId>
496 <version>2.10.4</version>
498 <failOnError>false</failOnError>
499 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
501 <groupId>org.umlgraph</groupId>
502 <artifactId>umlgraph</artifactId>
503 <version>5.6</version>
505 <additionalparam>-views</additionalparam>
506 <useStandardDocletOptions>true</useStandardDocletOptions>
507 <excludePackageNames>org.opendaylight.*</excludePackageNames>
508 <additionalDependencies>
509 <additionalDependency>
510 <groupId>org.slf4j</groupId>
511 <artifactId>slf4j-api</artifactId>
512 <version>${slf4j.version}</version>
513 </additionalDependency>
514 <additionalDependency>
515 <groupId>org.antlr</groupId>
516 <artifactId>antlr4</artifactId>
517 <version>${antlr.version}</version>
518 </additionalDependency>
519 <additionalDependency>
520 <groupId>org.antlr</groupId>
521 <artifactId>antlr4-runtime</artifactId>
522 <version>${antlr.version}</version>
523 </additionalDependency>
525 <additionalDependency>
526 <groupId>com.sun.jersey</groupId>
527 <artifactId>jersey-client</artifactId>
528 <version>${jersey.json.version}</version>
529 </additionalDependency>
530 <additionalDependency>
531 <groupId>com.sun.jersey</groupId>
532 <artifactId>jersey-core</artifactId>
533 <version>${jersey.json.version}</version>
534 </additionalDependency>
535 <additionalDependency>
536 <groupId>org.apache.httpcomponents</groupId>
537 <artifactId>httpcore-osgi</artifactId>
538 <version>${apache.httpcomponents.core.version}</version>
539 </additionalDependency>
540 <additionalDependency>
541 <groupId>org.apache.httpcomponents</groupId>
542 <artifactId>httpclient-osgi</artifactId>
543 <version>${apache.httpcomponents.client.version}</version>
544 </additionalDependency>
545 <additionalDependency>
546 <groupId>com.fasterxml.jackson.core</groupId>
547 <artifactId>jackson-databind</artifactId>
548 <version>${fasterxml.jackson.version}</version>
549 </additionalDependency>
550 <additionalDependency>
551 <groupId>com.fasterxml.jackson.core</groupId>
552 <artifactId>jackson-annotations</artifactId>
553 <version>${fasterxml.jackson.version}</version>
554 </additionalDependency>
555 <additionalDependency>
556 <groupId>com.fasterxml.jackson.core</groupId>
557 <artifactId>jackson-core</artifactId>
558 <version>${fasterxml.jackson.version}</version>
559 </additionalDependency>
560 <additionalDependency>
561 <groupId>commons-lang</groupId>
562 <artifactId>commons-lang</artifactId>
563 <version>${commons.lang.version}</version>
564 </additionalDependency>
565 </additionalDependencies>
570 <report>javadoc-no-fork</report>
571 <report>test-javadoc-no-fork</report>
577 <report>aggregate</report>
578 <report>test-aggregate</report>
584 <groupId>org.apache.maven.plugins</groupId>
585 <artifactId>maven-jxr-plugin</artifactId>
586 <version>2.3</version>
591 <report>aggregate</report>
592 <report>test-aggregate</report>
599 <artifactId>maven-surefire-plugin</artifactId>
600 <version>2.17</version>
603 <groupId>org.apache.maven.plugins</groupId>
604 <artifactId>maven-changelog-plugin</artifactId>
605 <version>2.3</version>
614 <report>changelog</report>
615 <report>file-activity</report>
621 <groupId>org.codehaus.mojo</groupId>
622 <artifactId>taglist-maven-plugin</artifactId>
623 <version>2.4</version>
632 <url>${onap.nexus.public-url}</url>
634 <enabled>true</enabled>
637 <enabled>true</enabled>
641 <id>onap-staging</id>
642 <url>${onap.nexus.staging-url}</url>
644 <enabled>true</enabled>
647 <enabled>true</enabled>
651 <id>onap-snapshot</id>
652 <url>${onap.nexus.snapshot-url}</url>
654 <enabled>false</enabled>
657 <enabled>true</enabled>
661 <id>opendaylight-mirror</id>
662 <name>opendaylight-mirror</name>
663 <url>${opendaylight.nexus.public-url}</url>
665 <enabled>true</enabled>
666 <updatePolicy>never</updatePolicy>
669 <enabled>false</enabled>
673 <id>opendaylight-snapshot</id>
674 <name>opendaylight-snapshot</name>
675 <url>${opendaylight.nexus.snapshot-url}</url>
677 <enabled>false</enabled>
680 <enabled>true</enabled>
683 <!-- Black Duck plugin dependencies -->
686 <name>JCenter Repository</name>
687 <url>http://jcenter.bintray.com</url>
692 <name>Restlet Repository</name>
693 <url>http://maven.restlet.com</url>
695 </pluginRepositories>
701 <url>https://nexus.onap.org/content/groups/public</url>
703 <enabled>true</enabled>
704 <updatePolicy>never</updatePolicy>
707 <enabled>true</enabled>
708 <updatePolicy>always</updatePolicy>
712 <id>onap-staging</id>
713 <url>https://nexus.onap.org/content/groups/staging</url>
715 <enabled>true</enabled>
716 <updatePolicy>never</updatePolicy>
719 <enabled>true</enabled>
720 <updatePolicy>always</updatePolicy>
724 <id>ecomp-release</id>
725 <name>onap-repository-releases</name>
726 <url>https://nexus.onap.org/content/repositories/releases</url>
728 <enabled>true</enabled>
729 <updatePolicy>never</updatePolicy>
732 <enabled>false</enabled>
736 <id>ecomp-snapshot</id>
737 <name>onap-repository-snapshots</name>
738 <url>https://nexus.onap.org/content/repositories/snapshots</url>
740 <enabled>false</enabled>
743 <enabled>true</enabled>
747 <id>opendaylight-mirror</id>
748 <name>opendaylight-mirror</name>
749 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
751 <enabled>true</enabled>
752 <updatePolicy>never</updatePolicy>
755 <enabled>false</enabled>
759 <id>opendaylight-snapshot</id>
760 <name>opendaylight-snapshot</name>
761 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
763 <enabled>false</enabled>
766 <enabled>true</enabled>
772 <distributionManagement>
774 <id>ecomp-releases</id>
775 <url>http://nexus.onap.org/content/repositories/releases</url>
778 <id>ecomp-snapshots</id>
779 <url>http://nexus.onap.org/content/repositories/snapshots</url>
780 </snapshotRepository>
781 </distributionManagement>
787 <!-- Plugins from ONAP oparent -->
789 <groupId>org.apache.maven.plugins</groupId>
790 <artifactId>maven-deploy-plugin</artifactId>
791 <!-- This version supports the "deployAtEnd" parameter -->
792 <version>2.8</version>
799 <groupId>org.apache.maven.plugins</groupId>
800 <artifactId>maven-site-plugin</artifactId>
801 <version>3.6</version>
804 <groupId>org.apache.maven.wagon</groupId>
805 <artifactId>wagon-webdav-jackrabbit</artifactId>
806 <version>2.10</version>
809 <groupId>org.apache.maven.doxia</groupId>
810 <artifactId>doxia-core</artifactId>
811 <version>1.7</version>
814 <groupId>org.apache.maven.doxia</groupId>
815 <artifactId>doxia-sink-api</artifactId>
816 <version>1.7</version>
819 <groupId>org.apache.maven.doxia</groupId>
820 <artifactId>doxia-logging-api</artifactId>
821 <version>1.7</version>
826 <id>attach-descriptor</id>
828 <goal>attach-descriptor</goal>
834 <artifactId>maven-checkstyle-plugin</artifactId>
835 <version>2.17</version>
838 <groupId>org.onap.oparent</groupId>
839 <artifactId>checkstyle</artifactId>
840 <version>1.1.1</version>
845 <id>check-license</id>
849 <phase>process-sources</phase>
851 <configLocation>onap-checkstyle/check-license.xml</configLocation>
852 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
853 <includeResources>false</includeResources>
854 <includeTestSourceDirectory>true</includeTestSourceDirectory>
855 <includeTestResources>false</includeTestResources>
856 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
859 <failsOnError>false</failsOnError>
860 <consoleOutput>true</consoleOutput>
868 <phase>process-sources</phase>
870 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
871 with minor changes -->
872 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
873 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated
874 sources directory -->
875 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
876 <includeResources>true</includeResources>
877 <includeTestSourceDirectory>true</includeTestSourceDirectory>
878 <includeTestResources>true</includeTestResources>
881 <failsOnError>false</failsOnError>
882 <consoleOutput>true</consoleOutput>
888 <groupId>org.jacoco</groupId>
889 <artifactId>jacoco-maven-plugin</artifactId>
890 <version>${jacoco.version}</version>
892 <!-- Note: This exclusion list should match <sonar.exclusions> property
895 <exclude>**/gen/**</exclude>
896 <exclude>**/generated-sources/**</exclude>
897 <exclude>**/yang-gen/**</exclude>
898 <exclude>**/pax/**</exclude>
902 <!-- Prepares the property pointing to the JaCoCo runtime agent which
903 is passed as VM argument when Maven the Surefire plugin is executed. -->
905 <id>pre-unit-test</id>
907 <goal>prepare-agent</goal>
910 <!-- Sets the path to the file which contains the execution data. -->
911 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
912 <!-- Sets the name of the property containing the settings for JaCoCo
914 <propertyName>surefireArgLine</propertyName>
917 <!-- Ensures that the code coverage report for unit tests is created
918 after unit tests have been run. -->
920 <id>post-unit-test</id>
926 <!-- Sets the path to the file which contains the execution data. -->
927 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
928 <!-- Sets the output directory for the code coverage report. -->
929 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
933 <id>pre-integration-test</id>
934 <phase>pre-integration-test</phase>
936 <goal>prepare-agent</goal>
939 <!-- Sets the path to the file which contains the execution data. -->
940 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
941 <!-- Sets the name of the property containing the settings for JaCoCo
943 <propertyName>failsafeArgLine</propertyName>
946 <!-- Ensures that the code coverage report for integration tests after
947 integration tests have been run. -->
949 <id>post-integration-test</id>
950 <phase>post-integration-test</phase>
955 <!-- Sets the path to the file which contains the execution data. -->
956 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
957 <!-- Sets the output directory for the code coverage report. -->
958 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
964 <groupId>org.apache.maven.plugins</groupId>
965 <artifactId>maven-surefire-plugin</artifactId>
966 <version>2.19.1</version>
968 <!-- Sets the VM argument line used when unit tests are run. -->
969 <argLine>${surefireArgLine}</argLine>
970 <!-- Excludes integration tests when unit tests are run. -->
972 <exclude>**/IT*.java</exclude>
977 <groupId>org.apache.maven.plugins</groupId>
978 <artifactId>maven-failsafe-plugin</artifactId>
979 <version>2.19.1</version>
981 <!-- Ensures that both integration-test and verify goals of the Failsafe
982 Maven plugin are executed. -->
984 <id>integration-tests</id>
986 <goal>integration-test</goal>
990 <!-- Sets the VM argument line used when integration tests are run. -->
991 <argLine>${failsafeArgLine}</argLine>
997 <groupId>org.apache.maven.plugins</groupId>
998 <artifactId>maven-compiler-plugin</artifactId>
999 <version>${maven.compile.plugin.version}</version>
1001 <source>${java.version.source}</source>
1002 <target>${java.version.target}</target>
1006 <groupId>org.sonarsource.scanner.maven</groupId>
1007 <artifactId>sonar-maven-plugin</artifactId>
1008 <version>3.3.0.603</version>
1011 <!-- End of plugins from ONAP oparent -->
1014 <groupId>org.apache.maven.plugins</groupId>
1015 <artifactId>maven-javadoc-plugin</artifactId>
1016 <version>2.10</version>
1018 <additionalDependencies>
1019 <additionalDependency>
1020 <groupId>org.slf4j</groupId>
1021 <artifactId>slf4j-api</artifactId>
1022 <version>${slf4j.version}</version>
1023 </additionalDependency>
1024 <additionalDependency>
1025 <groupId>org.antlr</groupId>
1026 <artifactId>antlr4</artifactId>
1027 <version>${antlr.version}</version>
1028 </additionalDependency>
1029 <additionalDependency>
1030 <groupId>org.antlr</groupId>
1031 <artifactId>antlr4-runtime</artifactId>
1032 <version>${antlr.version}</version>
1033 </additionalDependency>
1035 <additionalDependency>
1036 <groupId>com.sun.jersey</groupId>
1037 <artifactId>jersey-client</artifactId>
1038 <version>${jersey.client.version}</version>
1039 </additionalDependency>
1040 <additionalDependency>
1041 <groupId>com.sun.jersey</groupId>
1042 <artifactId>jersey-core</artifactId>
1043 <version>${jersey.version}</version>
1044 </additionalDependency>
1045 <additionalDependency>
1046 <groupId>org.apache.httpcomponents</groupId>
1047 <artifactId>httpcore-osgi</artifactId>
1048 <version>${apache.httpcomponents.core.version}</version>
1049 </additionalDependency>
1050 <additionalDependency>
1051 <groupId>org.apache.httpcomponents</groupId>
1052 <artifactId>httpclient-osgi</artifactId>
1053 <version>${apache.httpcomponents.client.version}</version>
1054 </additionalDependency>
1055 <additionalDependency>
1056 <groupId>com.fasterxml.jackson.core</groupId>
1057 <artifactId>jackson-databind</artifactId>
1058 <version>${jackson.version}</version>
1059 </additionalDependency>
1060 <additionalDependency>
1061 <groupId>com.fasterxml.jackson.core</groupId>
1062 <artifactId>jackson-annotations</artifactId>
1063 <version>${jackson.version}</version>
1064 </additionalDependency>
1065 <additionalDependency>
1066 <groupId>com.fasterxml.jackson.core</groupId>
1067 <artifactId>jackson-core</artifactId>
1068 <version>${jackson.version}</version>
1069 </additionalDependency>
1070 <additionalDependency>
1071 <groupId>commons-lang</groupId>
1072 <artifactId>commons-lang</artifactId>
1073 <version>${commons.lang.version}</version>
1074 </additionalDependency>
1075 </additionalDependencies>
1082 <goal>aggregate</goal>
1090 <artifactId>maven-source-plugin</artifactId>
1091 <version>2.1.1</version>
1094 <id>bundle-sources</id>
1095 <phase>package</phase>
1097 <!-- produce source artifact for main project sources -->
1098 <goal>jar-no-fork</goal>
1100 <!-- produce source artifact for project test sources -->
1101 <goal>test-jar-no-fork</goal>
1113 <!-- Plugins from ONAP oparent -->
1115 <artifactId>maven-checkstyle-plugin</artifactId>
1118 <groupId>org.codehaus.mojo</groupId>
1119 <artifactId>build-helper-maven-plugin</artifactId>
1120 <version>1.12</version>
1122 <!-- Jacoco / Sonar -->
1124 <groupId>org.jacoco</groupId>
1125 <artifactId>jacoco-maven-plugin</artifactId>
1128 <groupId>org.apache.maven.plugins</groupId>
1129 <artifactId>maven-surefire-plugin</artifactId>
1132 <groupId>org.apache.maven.plugins</groupId>
1133 <artifactId>maven-failsafe-plugin</artifactId>
1136 <!-- End of plugins from ONAP oparent -->
1138 <groupId>org.codehaus.mojo</groupId>
1139 <artifactId>properties-maven-plugin</artifactId>
1140 <version>1.0.0</version>
1144 <goal>set-system-properties</goal>
1149 <name>maven.wagon.http.ssl.allowall</name>
1150 <value>${ssl.allowall}</value>
1153 <name>maven.wagon.http.ssl.insecure</name>
1154 <value>${ssl.insecure}</value>
1162 <groupId>org.sonatype.plugins</groupId>
1163 <artifactId>nexus-staging-maven-plugin</artifactId>
1164 <version>1.6.7</version>
1165 <extensions>true</extensions>
1167 <nexusUrl>${onap.nexus.url}</nexusUrl>
1168 <stagingProfileId>176c31dfe190a</stagingProfileId>
1169 <serverId>ecomp-staging</serverId>
1173 <groupId>org.codehaus.mojo</groupId>
1174 <artifactId>versions-maven-plugin</artifactId>
1175 <version>2.5</version>
1177 <processAllModules>true</processAllModules>
1181 <artifactId>maven-scm-plugin</artifactId>
1182 <version>1.8.1</version>
1184 <tag>${project.artifactId}-${project.version}</tag>