1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
6 <modelVersion>4.0.0</modelVersion>
7 <packaging>pom</packaging>
8 <groupId>org.onap.ccsdk.parent</groupId>
9 <artifactId>single-feature-parent</artifactId>
10 <version>1.0.1-SNAPSHOT</version>
13 <groupId>org.opendaylight.odlparent</groupId>
14 <artifactId>single-feature-parent</artifactId>
15 <version>2.0.5</version>
20 <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
21 <url>http://wiki.onap.org</url>
22 <description>Root POM to be used in place of odlparent for CCSDK based projects</description>
27 <url>https://jira.onap.org/</url>
32 <!--- properties from oparent -->
33 <maven.compiler.source>1.8</maven.compiler.source>
34 <maven.compiler.target>1.8</maven.compiler.target>
35 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
37 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
38 <!-- sitePath may be overridden in the inheriting POM if desired -->
39 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
40 <jacoco.version>0.7.7.201606060606</jacoco.version>
41 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
42 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
43 <!-- Default Sonar configuration -->
44 <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
45 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
46 <!-- Note: This list should match jacoco-maven-plugin's exclusion
48 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
49 <!-- If following file exist, auto-generation of swagger.json will
51 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
52 <!-- If following file exist, auto-generation of sdk will be done -->
53 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
54 <!--- end of properties from oparent -->
56 <!-- ONAP repositories -->
57 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
58 <onap.nexus.port>443</onap.nexus.port>
59 <onap.nexus.protocol>https</onap.nexus.protocol>
60 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
61 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
62 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
63 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
64 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
65 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
68 <!-- OpenDaylight repositories -->
69 <opendaylight.nexus.public-url>https://nexus.opendaylight.org/content/repositories/public/</opendaylight.nexus.public-url>
70 <opendaylight.nexus.snapshot-url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</opendaylight.nexus.snapshot-url>
73 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
74 <java.version.source>1.8</java.version.source>
75 <java.version.target>1.8</java.version.target>
76 <bundle.plugin.version>2.5.0</bundle.plugin.version>
77 <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
78 <features.file>features.xml</features.file>
79 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
80 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
81 <checkstyle.skip>true</checkstyle.skip>
84 <sonar.language>java</sonar.language>
85 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
86 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
87 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
88 <sonar.projectVersion>${project.version}</sonar.projectVersion>
93 <!-- CCSDK component versions -->
94 <ccsdk.sli.core.version>0.2.1-SNAPSHOT</ccsdk.sli.core.version>
95 <ccsdk.sli.adaptors.version>0.2.1-SNAPSHOT</ccsdk.sli.adaptors.version>
96 <ccsdk.sli.northbound.version>0.2.1-SNAPSHOT</ccsdk.sli.northbound.version>
97 <ccsdk.sli.plugins.version>0.2.1-SNAPSHOT</ccsdk.sli.plugins.version>
98 <ccsdl.distribution.version>0.2.1-SNAPSHOT</ccsdl.distribution.version>
99 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
100 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
101 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
102 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
103 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
106 <!-- Support libraries used by OpenDaylight -->
107 <odl.mdsal.version>1.6.1</odl.mdsal.version>
108 <!-- Used by aaa, vtn -->
109 <commons.codec.version>1.10</commons.codec.version>
110 <!-- Used by netconf, ovsdb -->
111 <commons.lang3.version>3.6</commons.lang3.version>
112 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
113 <commons.lang.version>2.6</commons.lang.version>
114 <!-- Used by neutron; see also controller, vtn -->
115 <commons.net.version>3.6</commons.net.version>
116 <!-- Used by neutron -->
117 <eclipse.persistence.version>2.6.2</eclipse.persistence.version>
119 <felix.dependencymanager.version>4.3.0</felix.dependencymanager.version>
120 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
121 <gson.version>2.7</gson.version>
122 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
123 <guava.version>22.0</guava.version>
124 <!-- Used by lispflowmapping, sxp, vtn/manager -->
125 <hamcrest.version>1.3</hamcrest.version>
126 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
127 integration/distribution, snmp4sdn, toolkit, ttp -->
128 <jackson.version>2.3.2</jackson.version>
129 <!-- Used by snmp4sdn, yangtools -->
130 <javassist.version>3.20.0-GA</javassist.version>
132 <!-- FIXME remove all dependencies for jersey 1.17 after migration
134 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity,
135 defense4all, snmp4sdn, toolkit -->
136 <jersey.version>1.17</jersey.version>
138 <jersey.client.version>1.17</jersey.client.version>
140 <!-- New packages for jersey migration 1.17 to 2.8 -->
141 <!-- appache.geronimo.bundle for DocGen -->
142 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
143 <org.json.version>20131018</org.json.version>
146 <jettison.version>1.3.7</jettison.version>
147 <!-- Used by persistence -->
148 <jsr305.api.version>3.0.0</jsr305.api.version>
149 <!-- Need to stick to JUnit 4.11 until https://github.com/jayway/powermock/issues/560
150 is fixed (either in PowerMock or with a new JUnit release) -->
151 <!-- Used everywhere -->
152 <junit.version>4.11</junit.version>
153 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity,
155 <logback.version>1.2.2</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.8.Final</netty.version>
160 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also
161 affinity, toolkit -->
162 <slf4j.version>1.7.21</slf4j.version>
163 <!-- Used in integration/distribution; see also affinity, snmp4sdn,
164 toolkit, tsdr, ttp -->
165 <spring.version>5.0.4.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</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.186</h2database.version>
180 <tomcat-jdbc.version>8.5.14</tomcat-jdbc.version>
185 <!-- Profiles from ONAP oparent -->
187 <id>generate-json</id>
190 <exists>${swagger-properties}</exists>
193 <name>swagger-sdk.generate-json</name>
199 <groupId>org.codehaus.mojo</groupId>
200 <artifactId>properties-maven-plugin</artifactId>
201 <version>1.0.0</version>
204 <phase>initialize</phase>
206 <goal>read-project-properties</goal>
210 <file>${basedir}/src/main/resources/swagger.properties</file>
217 <groupId>com.github.kongchen</groupId>
218 <artifactId>swagger-maven-plugin</artifactId>
219 <version>3.1.4</version>
223 <locations>${api-rest-package}</locations>
224 <schemes>http,https</schemes>
225 <host>${api-host-ip}:${api-host-port}</host>
226 <basePath>${api-base-path}</basePath>
228 <title>${api-title}</title>
229 <version>${api-version}</version>
230 <description>${api-description}</description>
232 <name>${api-license}</name>
235 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
241 <phase>compile</phase>
243 <goal>generate</goal>
249 <groupId>org.apache.maven.plugins</groupId>
250 <artifactId>maven-install-plugin</artifactId>
251 <version>2.3.1</version>
254 <id>install-file-id</id>
255 <phase>install</phase>
257 <goal>install-file</goal>
260 <file>${basedir}/src/main/resources/swagger.json</file>
261 <groupId>${project.groupId}</groupId>
262 <artifactId>${project.artifactId}-swagger-schema</artifactId>
263 <version>${project.version}</version>
264 <packaging>json</packaging>
273 <id>generate-sdk</id>
276 <exists>${swagger-json}</exists>
279 <name>swagger-sdk.generate-java-sdk</name>
285 <groupId>org.apache.maven.plugins</groupId>
286 <artifactId>maven-antrun-plugin</artifactId>
287 <version>1.8</version>
290 <phase>initialize</phase>
291 <id>ant-create-script</id>
293 <exportAntProperties>true</exportAntProperties>
297 resource="net/sf/antcontrib/antlib.xml"
298 classpathref="maven.plugin.classpath" />
299 <condition property="is_windows"
301 <os family="windows" />
303 <condition property="isLinux"
308 <equals arg1="${is_windows}"
312 name="swagger.sdk.script.file"
313 value="generated-source-script.bat" />
315 file="${project.build.directory}${file.separator}generated-source-script.bat"
317 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
319 file="${project.build.directory}${file.separator}generated-source-script.bat"
321 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
325 name="swagger.sdk.script.file"
326 value="generated-source-script.sh" />
328 file="${project.build.directory}${file.separator}generated-source-script.sh"
330 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}" />
332 file="${project.build.directory}${file.separator}generated-source-script.sh"
334 message="mvn clean install -Dmaven.test.skip=true${line.separator}" />
336 file="${project.build.directory}${file.separator}generated-source-script.sh"
349 <groupId>ant-contrib</groupId>
350 <artifactId>ant-contrib</artifactId>
351 <version>1.0b3</version>
354 <artifactId>ant</artifactId>
355 <groupId>ant</groupId>
362 <groupId>io.swagger</groupId>
363 <artifactId>swagger-codegen-maven-plugin</artifactId>
364 <version>2.2.1</version>
368 <goal>generate</goal>
371 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
372 <output>${project.build.directory}/generated-sources</output>
373 <language>java</language>
375 <dateLibrary>joda</dateLibrary>
377 <library>jersey2</library>
378 <groupId>${project.groupId}</groupId>
379 <artifactId>${project.artifactId}-java-sdk</artifactId>
380 <artifactVersion>${project.version}</artifactVersion>
381 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
382 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
383 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
389 <artifactId>exec-maven-plugin</artifactId>
390 <groupId>org.codehaus.mojo</groupId>
391 <version>1.5.0</version>
394 <id>swagger-generate-sources</id>
395 <phase>generate-sources</phase>
400 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
406 <groupId>org.apache.maven.plugins</groupId>
407 <artifactId>maven-clean-plugin</artifactId>
408 <version>3.0.0</version>
411 <id>clean-generated-files</id>
412 <phase>generate-sources</phase>
419 <directory>${project.build.directory}/generated-sources</directory>
430 <groupId>org.onap.msb.swagger-sdk</groupId>
431 <artifactId>swagger-sdk</artifactId>
432 <version>1.0.0</version>
437 <!-- End of profiles from ONAP oparent -->
442 <dependencyManagement>
445 <groupId>org.opendaylight.mdsal.model</groupId>
446 <artifactId>mdsal-model-artifacts</artifactId>
447 <version>0.11.1</version>
449 <scope>import</scope>
452 <groupId>org.opendaylight.controller</groupId>
453 <artifactId>mdsal-artifacts</artifactId>
454 <version>1.6.1</version>
456 <scope>import</scope>
459 <groupId>org.onap.ccsdk.sli.core</groupId>
460 <artifactId>sli-common</artifactId>
461 <version>${ccsdk.sli.core.version}</version>
465 <groupId>org.onap.ccsdk.sli.core</groupId>
466 <artifactId>sli-provider</artifactId>
467 <version>${ccsdk.sli.core.version}</version>
470 <groupId>org.onap.ccsdk.sli.core</groupId>
471 <artifactId>ccsdk-sli</artifactId>
472 <version>${ccsdk.sli.core.version}</version>
474 <classifier>features</classifier>
477 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
478 <artifactId>aai-service-provider</artifactId>
479 <version>${sdnctl.aai.service.version}</version>
483 <groupId>org.onap.ccsdk.sli.core</groupId>
484 <artifactId>dblib-provider</artifactId>
485 <version>${sdnctl.dblib.version}</version>
489 <groupId>org.testng</groupId>
490 <artifactId>testng</artifactId>
491 <version>6.11</version>
494 <groupId>org.springframework</groupId>
495 <artifactId>spring-test</artifactId>
496 <version>${spring.version}</version>
499 <groupId>org.springframework</groupId>
500 <artifactId>spring-beans</artifactId>
501 <version>${spring.version}</version>
504 <groupId>org.springframework</groupId>
505 <artifactId>spring-context</artifactId>
506 <version>${spring.version}</version>
510 </dependencyManagement>
516 <artifactId>maven-javadoc-plugin</artifactId>
517 <version>2.10.4</version>
519 <failOnError>false</failOnError>
520 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
522 <groupId>org.umlgraph</groupId>
523 <artifactId>umlgraph</artifactId>
524 <version>5.6</version>
526 <additionalparam>-views</additionalparam>
527 <useStandardDocletOptions>true</useStandardDocletOptions>
528 <excludePackageNames>org.opendaylight.*</excludePackageNames>
529 <additionalDependencies>
530 <additionalDependency>
531 <groupId>org.slf4j</groupId>
532 <artifactId>slf4j-api</artifactId>
533 <version>${slf4j.version}</version>
534 </additionalDependency>
535 <additionalDependency>
536 <groupId>org.antlr</groupId>
537 <artifactId>antlr4</artifactId>
538 <version>${antlr.version}</version>
539 </additionalDependency>
540 <additionalDependency>
541 <groupId>org.antlr</groupId>
542 <artifactId>antlr4-runtime</artifactId>
543 <version>${antlr.version}</version>
544 </additionalDependency>
546 <additionalDependency>
547 <groupId>com.sun.jersey</groupId>
548 <artifactId>jersey-client</artifactId>
549 <version>${jersey.json.version}</version>
550 </additionalDependency>
551 <additionalDependency>
552 <groupId>com.sun.jersey</groupId>
553 <artifactId>jersey-core</artifactId>
554 <version>${jersey.json.version}</version>
555 </additionalDependency>
556 <additionalDependency>
557 <groupId>org.apache.httpcomponents</groupId>
558 <artifactId>httpcore-osgi</artifactId>
559 <version>${apache.httpcomponents.core.version}</version>
560 </additionalDependency>
561 <additionalDependency>
562 <groupId>org.apache.httpcomponents</groupId>
563 <artifactId>httpclient-osgi</artifactId>
564 <version>${apache.httpcomponents.client.version}</version>
565 </additionalDependency>
566 <additionalDependency>
567 <groupId>com.fasterxml.jackson.core</groupId>
568 <artifactId>jackson-databind</artifactId>
569 <version>${fasterxml.jackson.version}</version>
570 </additionalDependency>
571 <additionalDependency>
572 <groupId>com.fasterxml.jackson.core</groupId>
573 <artifactId>jackson-annotations</artifactId>
574 <version>${fasterxml.jackson.version}</version>
575 </additionalDependency>
576 <additionalDependency>
577 <groupId>com.fasterxml.jackson.core</groupId>
578 <artifactId>jackson-core</artifactId>
579 <version>${fasterxml.jackson.version}</version>
580 </additionalDependency>
581 <additionalDependency>
582 <groupId>commons-lang</groupId>
583 <artifactId>commons-lang</artifactId>
584 <version>${commons.lang.version}</version>
585 </additionalDependency>
586 </additionalDependencies>
591 <report>javadoc-no-fork</report>
592 <report>test-javadoc-no-fork</report>
598 <report>aggregate</report>
599 <report>test-aggregate</report>
605 <groupId>org.apache.maven.plugins</groupId>
606 <artifactId>maven-jxr-plugin</artifactId>
607 <version>2.3</version>
612 <report>aggregate</report>
613 <report>test-aggregate</report>
620 <artifactId>maven-surefire-plugin</artifactId>
621 <version>2.17</version>
624 <groupId>org.apache.maven.plugins</groupId>
625 <artifactId>maven-changelog-plugin</artifactId>
626 <version>2.3</version>
635 <report>changelog</report>
636 <report>file-activity</report>
642 <groupId>org.codehaus.mojo</groupId>
643 <artifactId>taglist-maven-plugin</artifactId>
644 <version>2.4</version>
653 <url>${onap.nexus.public-url}</url>
655 <enabled>true</enabled>
658 <enabled>true</enabled>
662 <id>onap-snapshot</id>
663 <url>${onap.nexus.snapshot-url}</url>
665 <enabled>false</enabled>
668 <enabled>true</enabled>
672 <id>opendaylight-mirror</id>
673 <name>opendaylight-mirror</name>
674 <url>${opendaylight.nexus.public-url}</url>
676 <enabled>true</enabled>
677 <updatePolicy>never</updatePolicy>
680 <enabled>false</enabled>
684 <id>opendaylight-snapshot</id>
685 <name>opendaylight-snapshot</name>
686 <url>${opendaylight.nexus.snapshot-url}</url>
688 <enabled>false</enabled>
691 <enabled>true</enabled>
694 <!-- Black Duck plugin dependencies -->
697 <name>JCenter Repository</name>
698 <url>http://jcenter.bintray.com</url>
703 <name>Restlet Repository</name>
704 <url>http://maven.restlet.com</url>
706 </pluginRepositories>
712 <url>https://nexus.onap.org/content/groups/public</url>
714 <enabled>true</enabled>
715 <updatePolicy>never</updatePolicy>
718 <enabled>true</enabled>
719 <updatePolicy>always</updatePolicy>
723 <id>onap-staging</id>
724 <url>https://nexus.onap.org/content/groups/staging</url>
726 <enabled>true</enabled>
727 <updatePolicy>never</updatePolicy>
730 <enabled>true</enabled>
731 <updatePolicy>always</updatePolicy>
735 <id>ecomp-release</id>
736 <name>onap-repository-releases</name>
737 <url>https://nexus.onap.org/content/repositories/releases</url>
739 <enabled>true</enabled>
740 <updatePolicy>never</updatePolicy>
743 <enabled>false</enabled>
747 <id>ecomp-snapshot</id>
748 <name>onap-repository-snapshots</name>
749 <url>https://nexus.onap.org/content/repositories/snapshots</url>
751 <enabled>false</enabled>
754 <enabled>true</enabled>
758 <id>opendaylight-mirror</id>
759 <name>opendaylight-mirror</name>
760 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
762 <enabled>true</enabled>
763 <updatePolicy>never</updatePolicy>
766 <enabled>false</enabled>
770 <id>opendaylight-snapshot</id>
771 <name>opendaylight-snapshot</name>
772 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
774 <enabled>false</enabled>
777 <enabled>true</enabled>
783 <distributionManagement>
785 <id>ecomp-releases</id>
786 <url>http://nexus.onap.org/content/repositories/releases</url>
789 <id>ecomp-snapshots</id>
790 <url>http://nexus.onap.org/content/repositories/snapshots</url>
791 </snapshotRepository>
792 </distributionManagement>
798 <!-- Plugins from ONAP oparent -->
800 <groupId>org.apache.maven.plugins</groupId>
801 <artifactId>maven-deploy-plugin</artifactId>
802 <!-- This version supports the "deployAtEnd" parameter -->
803 <version>2.8</version>
810 <groupId>org.apache.maven.plugins</groupId>
811 <artifactId>maven-site-plugin</artifactId>
812 <version>3.6</version>
815 <groupId>org.apache.maven.wagon</groupId>
816 <artifactId>wagon-webdav-jackrabbit</artifactId>
817 <version>2.10</version>
820 <groupId>org.apache.maven.doxia</groupId>
821 <artifactId>doxia-core</artifactId>
822 <version>1.7</version>
825 <groupId>org.apache.maven.doxia</groupId>
826 <artifactId>doxia-sink-api</artifactId>
827 <version>1.7</version>
830 <groupId>org.apache.maven.doxia</groupId>
831 <artifactId>doxia-logging-api</artifactId>
832 <version>1.7</version>
837 <id>attach-descriptor</id>
839 <goal>attach-descriptor</goal>
845 <artifactId>maven-checkstyle-plugin</artifactId>
846 <version>2.17</version>
849 <groupId>org.onap.oparent</groupId>
850 <artifactId>checkstyle</artifactId>
851 <version>1.1.0-SNAPSHOT</version>
856 <id>check-license</id>
860 <phase>process-sources</phase>
862 <configLocation>onap-checkstyle/check-license.xml</configLocation>
863 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
864 <includeResources>false</includeResources>
865 <includeTestSourceDirectory>true</includeTestSourceDirectory>
866 <includeTestResources>false</includeTestResources>
867 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
870 <failsOnError>false</failsOnError>
871 <consoleOutput>true</consoleOutput>
879 <phase>process-sources</phase>
881 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
882 with minor changes -->
883 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
884 <!-- <sourceDirectory> is needed so that
885 checkstyle ignores the generated sources directory -->
886 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
887 <includeResources>true</includeResources>
888 <includeTestSourceDirectory>true</includeTestSourceDirectory>
889 <includeTestResources>true</includeTestResources>
892 <failsOnError>false</failsOnError>
893 <consoleOutput>true</consoleOutput>
899 <groupId>org.jacoco</groupId>
900 <artifactId>jacoco-maven-plugin</artifactId>
901 <version>${jacoco.version}</version>
903 <!-- Note: This exclusion list should match <sonar.exclusions>
906 <exclude>**/gen/**</exclude>
907 <exclude>**/generated-sources/**</exclude>
908 <exclude>**/yang-gen/**</exclude>
909 <exclude>**/pax/**</exclude>
913 <!-- Prepares the property pointing to the JaCoCo
914 runtime agent which is passed as VM argument when Maven the Surefire plugin
917 <id>pre-unit-test</id>
919 <goal>prepare-agent</goal>
922 <!-- Sets the path to the file which contains
923 the execution data. -->
924 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
925 <!-- Sets the name of the property containing
926 the settings for JaCoCo runtime agent. -->
927 <propertyName>surefireArgLine</propertyName>
930 <!-- Ensures that the code coverage report for unit
931 tests is created after unit tests have been run. -->
933 <id>post-unit-test</id>
939 <!-- Sets the path to the file which contains
940 the execution data. -->
941 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
942 <!-- Sets the output directory for the code
944 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
948 <id>pre-integration-test</id>
949 <phase>pre-integration-test</phase>
951 <goal>prepare-agent</goal>
954 <!-- Sets the path to the file which contains
955 the execution data. -->
956 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
957 <!-- Sets the name of the property containing
958 the settings for JaCoCo runtime agent. -->
959 <propertyName>failsafeArgLine</propertyName>
962 <!-- Ensures that the code coverage report for integration
963 tests after integration tests have been run. -->
965 <id>post-integration-test</id>
966 <phase>post-integration-test</phase>
971 <!-- Sets the path to the file which contains
972 the execution data. -->
973 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
974 <!-- Sets the output directory for the code
976 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
982 <groupId>org.apache.maven.plugins</groupId>
983 <artifactId>maven-surefire-plugin</artifactId>
984 <version>2.19.1</version>
986 <!-- Sets the VM argument line used when unit tests
988 <argLine>${surefireArgLine}</argLine>
989 <!-- Excludes integration tests when unit tests are
992 <exclude>**/IT*.java</exclude>
997 <groupId>org.apache.maven.plugins</groupId>
998 <artifactId>maven-failsafe-plugin</artifactId>
999 <version>2.19.1</version>
1001 <!-- Ensures that both integration-test and verify
1002 goals of the Failsafe Maven plugin are executed. -->
1004 <id>integration-tests</id>
1006 <goal>integration-test</goal>
1010 <!-- Sets the VM argument line used when
1011 integration tests are run. -->
1012 <argLine>${failsafeArgLine}</argLine>
1018 <groupId>org.apache.maven.plugins</groupId>
1019 <artifactId>maven-compiler-plugin</artifactId>
1020 <version>${maven.compile.plugin.version}</version>
1022 <source>${java.version.source}</source>
1023 <target>${java.version.target}</target>
1027 <groupId>org.sonarsource.scanner.maven</groupId>
1028 <artifactId>sonar-maven-plugin</artifactId>
1029 <version>3.3.0.603</version>
1032 <!-- End of plugins from ONAP oparent -->
1035 <groupId>org.apache.maven.plugins</groupId>
1036 <artifactId>maven-javadoc-plugin</artifactId>
1037 <version>2.10</version>
1039 <additionalDependencies>
1040 <additionalDependency>
1041 <groupId>org.slf4j</groupId>
1042 <artifactId>slf4j-api</artifactId>
1043 <version>${slf4j.version}</version>
1044 </additionalDependency>
1045 <additionalDependency>
1046 <groupId>org.antlr</groupId>
1047 <artifactId>antlr4</artifactId>
1048 <version>${antlr.version}</version>
1049 </additionalDependency>
1050 <additionalDependency>
1051 <groupId>org.antlr</groupId>
1052 <artifactId>antlr4-runtime</artifactId>
1053 <version>${antlr.version}</version>
1054 </additionalDependency>
1056 <additionalDependency>
1057 <groupId>com.sun.jersey</groupId>
1058 <artifactId>jersey-client</artifactId>
1059 <version>${jersey.client.version}</version>
1060 </additionalDependency>
1061 <additionalDependency>
1062 <groupId>com.sun.jersey</groupId>
1063 <artifactId>jersey-core</artifactId>
1064 <version>${jersey.version}</version>
1065 </additionalDependency>
1066 <additionalDependency>
1067 <groupId>org.apache.httpcomponents</groupId>
1068 <artifactId>httpcore-osgi</artifactId>
1069 <version>${apache.httpcomponents.core.version}</version>
1070 </additionalDependency>
1071 <additionalDependency>
1072 <groupId>org.apache.httpcomponents</groupId>
1073 <artifactId>httpclient-osgi</artifactId>
1074 <version>${apache.httpcomponents.client.version}</version>
1075 </additionalDependency>
1076 <additionalDependency>
1077 <groupId>com.fasterxml.jackson.core</groupId>
1078 <artifactId>jackson-databind</artifactId>
1079 <version>${jackson.version}</version>
1080 </additionalDependency>
1081 <additionalDependency>
1082 <groupId>com.fasterxml.jackson.core</groupId>
1083 <artifactId>jackson-annotations</artifactId>
1084 <version>${jackson.version}</version>
1085 </additionalDependency>
1086 <additionalDependency>
1087 <groupId>com.fasterxml.jackson.core</groupId>
1088 <artifactId>jackson-core</artifactId>
1089 <version>${jackson.version}</version>
1090 </additionalDependency>
1091 <additionalDependency>
1092 <groupId>commons-lang</groupId>
1093 <artifactId>commons-lang</artifactId>
1094 <version>${commons.lang.version}</version>
1095 </additionalDependency>
1096 </additionalDependencies>
1103 <goal>aggregate</goal>
1111 <artifactId>maven-source-plugin</artifactId>
1112 <version>2.1.1</version>
1115 <id>bundle-sources</id>
1116 <phase>package</phase>
1118 <!-- produce source artifact for main project
1120 <goal>jar-no-fork</goal>
1122 <!-- produce source artifact for project
1124 <goal>test-jar-no-fork</goal>
1136 <!-- Plugins from ONAP oparent -->
1138 <artifactId>maven-checkstyle-plugin</artifactId>
1141 <groupId>org.codehaus.mojo</groupId>
1142 <artifactId>build-helper-maven-plugin</artifactId>
1143 <version>1.12</version>
1145 <!-- Jacoco / Sonar -->
1147 <groupId>org.jacoco</groupId>
1148 <artifactId>jacoco-maven-plugin</artifactId>
1151 <groupId>org.apache.maven.plugins</groupId>
1152 <artifactId>maven-surefire-plugin</artifactId>
1155 <groupId>org.apache.maven.plugins</groupId>
1156 <artifactId>maven-failsafe-plugin</artifactId>
1159 <!-- End of plugins from ONAP oparent -->
1161 <groupId>org.codehaus.mojo</groupId>
1162 <artifactId>properties-maven-plugin</artifactId>
1163 <version>1.0.0</version>
1167 <goal>set-system-properties</goal>
1172 <name>maven.wagon.http.ssl.allowall</name>
1173 <value>${ssl.allowall}</value>
1176 <name>maven.wagon.http.ssl.insecure</name>
1177 <value>${ssl.insecure}</value>
1185 <groupId>org.sonatype.plugins</groupId>
1186 <artifactId>nexus-staging-maven-plugin</artifactId>
1187 <version>1.6.7</version>
1188 <extensions>true</extensions>
1190 <nexusUrl>${onap.nexus.url}</nexusUrl>
1191 <stagingProfileId>176c31dfe190a</stagingProfileId>
1192 <serverId>ecomp-staging</serverId>
1196 <groupId>org.codehaus.mojo</groupId>
1197 <artifactId>versions-maven-plugin</artifactId>
1198 <version>2.5</version>
1200 <processAllModules>true</processAllModules>
1204 <artifactId>maven-scm-plugin</artifactId>
1205 <version>1.8.1</version>
1207 <tag>${project.artifactId}-${project.version}</tag>