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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
5 <!-- PLEASE READ !!!!! This file is generated from ccsdk/parent/setup/src/main/template/pom-template.xml
6 Any updates needed should be made to that template and not to the generated
9 <groupId>org.opendaylight.odlparent</groupId>
10 <artifactId>karaf4-parent</artifactId>
11 <version>4.0.10</version>
15 <groupId>org.onap.ccsdk.parent</groupId>
16 <artifactId>karaf4-parent</artifactId>
17 <version>1.5.1-SNAPSHOT</version>
18 <packaging>pom</packaging>
20 <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
21 <description>Root POM to be used in place of odlparent for CCSDK based projects</description>
22 <url>http://wiki.onap.org</url>
29 <url>https://jira.onap.org/</url>
31 <distributionManagement>
33 <id>ecomp-releases</id>
34 <url>https://nexus.onap.org/content/repositories/releases</url>
37 <id>ecomp-snapshots</id>
38 <url>https://nexus.onap.org/content/repositories/snapshots</url>
40 </distributionManagement>
44 <!-- Sonar properties -->
45 <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
46 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
47 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
48 <!-- Default Sonar configuration -->
49 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml,${project.reporting.outputDirectory}/jacoco-it/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
50 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
51 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
53 <!-- Jacoco properties -->
54 <jacoco.version>0.8.5</jacoco.version>
56 <!-- properties from oparent -->
57 <maven.compiler.source>1.8</maven.compiler.source>
58 <maven.compiler.target>1.8</maven.compiler.target>
59 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
60 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
61 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
62 <!-- sitePath may be overridden in the inheriting POM if desired -->
63 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
67 <!-- If following file exist, auto-generation of swagger.json will be done -->
68 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
69 <!-- If following file exist, auto-generation of sdk will be done -->
70 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
71 <!-- end of properties from oparent -->
73 <!-- ONAP repositories -->
74 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
75 <onap.nexus.port>443</onap.nexus.port>
76 <onap.nexus.protocol>https</onap.nexus.protocol>
77 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
78 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
79 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
80 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
81 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
82 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
84 <!-- OpenDaylight repositories -->
85 <opendaylight.nexus.public-url>https://nexus.opendaylight.org/content/repositories/public/</opendaylight.nexus.public-url>
86 <opendaylight.nexus.snapshot-url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</opendaylight.nexus.snapshot-url>
88 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
89 <java.version.source>1.8</java.version.source>
90 <java.version.target>1.8</java.version.target>
91 <bundle.plugin.version>2.5.0</bundle.plugin.version>
92 <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
93 <features.file>features.xml</features.file>
94 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
95 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
96 <checkstyle.skip>true</checkstyle.skip>
100 <!-- CCSDK component versions -->
101 <ccsdk.cds.version>0.7.0-SNAPSHOT</ccsdk.cds.version>
102 <ccsdk.sli.core.version>0.7.0-SNAPSHOT</ccsdk.sli.core.version>
103 <ccsdk.sli.adaptors.version>0.7.0-SNAPSHOT</ccsdk.sli.adaptors.version>
104 <ccsdk.sli.northbound.version>0.7.0-SNAPSHOT</ccsdk.sli.northbound.version>
105 <ccsdk.sli.plugins.version>0.7.0-SNAPSHOT</ccsdk.sli.plugins.version>
106 <ccsdk.distribution.version>0.7.0-SNAPSHOT</ccsdk.distribution.version>
107 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
108 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
109 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
110 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
111 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
113 <!-- Support libraries used by OpenDaylight -->
114 <odl.controller.mdsal.version>1.9.1</odl.controller.mdsal.version>
115 <odl.mdsal.version>3.0.8</odl.mdsal.version>
116 <odl.mdsal.model.version>1.0.8</odl.mdsal.model.version>
117 <odl.netconf.restconf.version>1.9.1</odl.netconf.restconf.version>
118 <odl.netconf.netconf.version>1.6.1</odl.netconf.netconf.version>
119 <odl.netconf.sal.rest.docgen.version>1.9.1</odl.netconf.sal.rest.docgen.version>
121 <!-- Used by aaa, vtn -->
122 <commons.codec.version>1.12</commons.codec.version>
123 <!-- Used by netconf, ovsdb -->
124 <commons.lang3.version>3.8.1</commons.lang3.version>
125 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
126 <commons.lang.version>2.6</commons.lang.version>
127 <!-- Used by neutron; see also controller, vtn -->
128 <commons.net.version>3.6</commons.net.version>
129 <!-- Used by neutron -->
130 <eclipse.persistence.version>2.7.3</eclipse.persistence.version>
132 <felix.dependencymanager.version>4.4.1</felix.dependencymanager.version>
133 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
134 <gson.version>2.8.5</gson.version>
135 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
136 <guava.version>25.1-jre</guava.version>
137 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
138 integration/distribution, snmp4sdn, toolkit, ttp -->
139 <jackson.version>2.9.8</jackson.version>
140 <!-- Used by snmp4sdn, yangtools -->
141 <javassist.version>3.24.1-GA</javassist.version>
143 <!-- FIXME remove all dependencies for jersey 1.17 after migration all
145 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity, defense4all,
146 snmp4sdn, toolkit -->
147 <jersey.version>2.25.1</jersey.version>
149 <jersey.client.version>2.25.1</jersey.client.version>
151 <!-- New packages for jersey migration 1.17 to 2.8 -->
152 <!-- appache.geronimo.bundle for DocGen -->
153 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
154 <org.json.version>20131018</org.json.version>
156 <!-- Used everywhere -->
157 <junit.version>4.12</junit.version>
158 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
159 <logback.version>1.2.3</logback.version>
160 <!-- Used by nic, sfc, sxp, tsdr -->
161 <mockito.version>1.10.19</mockito.version>
162 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
163 <netty.version>4.1.34.Final</netty.version>
164 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity,
166 <slf4j.version>1.7.25</slf4j.version>
167 <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit,
169 <spring.version>4.3.24.RELEASE</spring.version>
171 <!-- Extra support libraries used by SDN-C -->
172 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
173 <antlr.version>4.7.2</antlr.version>
175 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
177 <!-- Managed dependency versions -->
178 <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
179 <apache.httpcomponents.client.version>4.5.10</apache.httpcomponents.client.version>
180 <derby.version>10.14.2.0</derby.version>
181 <eelf.version>1.0.0</eelf.version>
182 <grpc.version>1.21.1</grpc.version>
183 <mariadb.connector.version>2.4.4</mariadb.connector.version>
184 <mariadb4j.version>2.4.0</mariadb4j.version>
185 <testng.version>6.14.3</testng.version>
186 <tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
187 <jetty.version>9.4.12.v20180830</jetty.version>
188 <skip.karaf.featureTest>true</skip.karaf.featureTest>
190 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
193 <dependencyManagement>
196 <!-- Note: If value in BOM conflicts with value inherited from
197 parent pom, inherited value takes precedence. This seems more like
198 a bug than a feature, but this is how maven 3.6 works -->
200 <groupId>org.onap.ccsdk.parent</groupId>
201 <artifactId>dependencies-odl-bom</artifactId>
202 <version>1.5.1-SNAPSHOT</version>
204 <scope>import</scope>
207 <!-- Override incorrect versions in ODL parent poms -->
208 <!-- to match versions actually installed in ODL Neon -->
210 <groupId>com.google.protobuf</groupId>
211 <artifactId>protobuf-java</artifactId>
212 <version>3.6.1</version>
215 <groupId>io.netty</groupId>
216 <artifactId>netty-transport</artifactId>
217 <version>4.1.34.Final</version>
220 <groupId>io.netty</groupId>
221 <artifactId>netty-all</artifactId>
222 <version>4.1.34.Final</version>
223 <!-- <version>${netty.version}</version> -->
226 <groupId>junit</groupId>
227 <artifactId>junit</artifactId>
228 <version>4.12</version>
232 <groupId>org.eclipse.jetty</groupId>
233 <artifactId>jetty-server</artifactId>
234 <version>9.4.12.v20180830</version>
237 <groupId>org.eclipse.jetty</groupId>
238 <artifactId>jetty-servlets</artifactId>
239 <version>9.4.12.v20180830</version>
242 <groupId>org.glassfish.jersey.bundles.repackaged</groupId>
243 <artifactId>jersey-guava</artifactId>
244 <version>2.25.1</version>
247 <groupId>org.codehaus.jettison</groupId>
248 <artifactId>jettison</artifactId>
249 <version>1.3.8</version>
252 <groupId>org.onap.logging-analytics</groupId>
253 <artifactId>logging-slf4j</artifactId>
254 <version>1.6.1</version>
257 <groupId>org.onap.logging-analytics</groupId>
258 <artifactId>logging-filter-base</artifactId>
259 <version>1.6.1</version>
263 </dependencyManagement>
268 <url>https://nexus.onap.org/content/groups/public</url>
270 <enabled>true</enabled>
271 <updatePolicy>never</updatePolicy>
274 <enabled>true</enabled>
275 <updatePolicy>always</updatePolicy>
279 <id>onap-staging</id>
280 <url>https://nexus.onap.org/content/groups/staging</url>
282 <enabled>true</enabled>
283 <updatePolicy>never</updatePolicy>
286 <enabled>true</enabled>
287 <updatePolicy>always</updatePolicy>
291 <id>ecomp-release</id>
292 <name>onap-repository-releases</name>
293 <url>https://nexus.onap.org/content/repositories/releases</url>
295 <enabled>true</enabled>
296 <updatePolicy>never</updatePolicy>
299 <enabled>false</enabled>
303 <id>ecomp-snapshot</id>
304 <name>onap-repository-snapshots</name>
305 <url>https://nexus.onap.org/content/repositories/snapshots</url>
307 <enabled>false</enabled>
310 <enabled>true</enabled>
314 <id>opendaylight-mirror</id>
315 <name>opendaylight-mirror</name>
316 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
318 <enabled>true</enabled>
319 <updatePolicy>never</updatePolicy>
322 <enabled>false</enabled>
326 <id>opendaylight-snapshot</id>
327 <name>opendaylight-snapshot</name>
328 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
330 <enabled>false</enabled>
333 <enabled>true</enabled>
341 <url>${onap.nexus.public-url}</url>
343 <enabled>true</enabled>
346 <enabled>true</enabled>
350 <id>onap-staging</id>
351 <url>${onap.nexus.staging-url}</url>
353 <enabled>true</enabled>
356 <enabled>true</enabled>
360 <id>onap-snapshot</id>
361 <url>${onap.nexus.snapshot-url}</url>
363 <enabled>false</enabled>
366 <enabled>true</enabled>
370 <id>opendaylight-mirror</id>
371 <name>opendaylight-mirror</name>
372 <url>${opendaylight.nexus.public-url}</url>
374 <enabled>true</enabled>
375 <updatePolicy>never</updatePolicy>
378 <enabled>false</enabled>
382 <id>opendaylight-snapshot</id>
383 <name>opendaylight-snapshot</name>
384 <url>${opendaylight.nexus.snapshot-url}</url>
386 <enabled>false</enabled>
389 <enabled>true</enabled>
392 <!-- Black Duck plugin dependencies -->
395 <name>JCenter Repository</name>
396 <url>http://jcenter.bintray.com</url>
401 <name>Restlet Repository</name>
402 <url>http://maven.restlet.com</url>
404 </pluginRepositories>
410 <!-- Plugins from ONAP version (parent of oparent) -->
413 <groupId>org.apache.maven.plugins</groupId>
414 <artifactId>maven-deploy-plugin</artifactId>
415 <!-- This version supports the "deployAtEnd" parameter -->
416 <version>2.8</version>
422 <groupId>org.apache.maven.plugins</groupId>
423 <artifactId>maven-site-plugin</artifactId>
424 <version>3.6</version>
427 <groupId>org.apache.maven.wagon</groupId>
428 <artifactId>wagon-webdav-jackrabbit</artifactId>
429 <version>2.10</version>
434 <groupId>org.apache.maven.plugins</groupId>
435 <artifactId>maven-enforcer-plugin</artifactId>
436 <version>3.0.0-M2</version>
439 <id>enforce-property</id>
446 <property>onap.nexus.url</property>
447 <message>You must set a onap.nexus.url property in your
448 ~/.m2/settings.xml. See oparent/settings.xml for an example.
456 <id>enforce-no-snapshots</id>
463 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
464 <onlyWhenRelease>true</onlyWhenRelease>
466 </requireReleaseDeps>
472 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
474 <groupId>org.sonarsource.scanner.maven</groupId>
475 <artifactId>sonar-maven-plugin</artifactId>
476 <version>${sonar.scanner.version}</version>
478 <!-- end of plugins from ONAP version (parent of oparent) -->
480 <!-- Plugins from ONAP oparent -->
484 <groupId>org.apache.maven.plugins</groupId>
485 <artifactId>maven-surefire-plugin</artifactId>
486 <version>2.22.0</version>
488 <!-- Sets the VM argument line used when unit tests are run. -->
489 <argLine>${surefireArgLine}</argLine>
490 <!-- Excludes integration tests when unit tests are run. -->
492 <exclude>**/IT*.java</exclude>
497 <groupId>org.apache.maven.plugins</groupId>
498 <artifactId>maven-failsafe-plugin</artifactId>
499 <version>2.22.0</version>
501 <!-- Ensures that both integration-test and verify goals of the Failsafe
502 Maven plugin are executed. -->
504 <id>integration-tests</id>
506 <goal>integration-test</goal>
510 <!-- Sets the VM argument line used when integration tests are run. -->
511 <argLine>${failsafeArgLine}</argLine>
517 <!-- End of plugins from ONAP oparent -->
519 <groupId>org.codehaus.mojo</groupId>
520 <artifactId>properties-maven-plugin</artifactId>
521 <version>1.0.0</version>
525 <goal>set-system-properties</goal>
530 <name>maven.wagon.http.ssl.allowall</name>
531 <value>${ssl.allowall}</value>
534 <name>maven.wagon.http.ssl.insecure</name>
535 <value>${ssl.insecure}</value>
544 <groupId>org.codehaus.mojo</groupId>
545 <artifactId>versions-maven-plugin</artifactId>
546 <version>2.5</version>
548 <processAllModules>true</processAllModules>
552 <artifactId>maven-scm-plugin</artifactId>
553 <version>1.8.1</version>
555 <tag>${project.artifactId}-${project.version}</tag>
559 <groupId>com.github.ferstl</groupId>
560 <artifactId>depgraph-maven-plugin</artifactId>
561 <version>3.3.0</version>
563 <graphFormat>text</graphFormat>
564 <outputFileName>${dependency-list.file}</outputFileName>
565 <outputDirectory>${project.basedir}</outputDirectory>
566 <transitiveExcludes>*</transitiveExcludes>
567 <showVersions>true</showVersions>
568 <showGroupIds>true</showGroupIds>
575 <!-- Plugins from oparent version (parent of oparent) -->
577 <groupId>org.apache.maven.plugins</groupId>
578 <artifactId>maven-deploy-plugin</artifactId>
581 <groupId>org.apache.maven.plugins</groupId>
582 <artifactId>maven-site-plugin</artifactId>
585 <groupId>org.apache.maven.plugins</groupId>
586 <artifactId>maven-enforcer-plugin</artifactId>
588 <!-- end of plugins from oparent version (parent of oparent) -->
590 <!-- Plugins from oparent -->
592 <artifactId>maven-checkstyle-plugin</artifactId>
593 <version>2.17</version>
596 <groupId>org.onap.oparent</groupId>
597 <artifactId>checkstyle</artifactId>
598 <version>1.2.2</version>
603 <id>onap-license</id>
607 <phase>process-sources</phase>
609 <configLocation>onap-checkstyle/check-license.xml</configLocation>
610 <includeResources>false</includeResources>
611 <includeTestSourceDirectory>true</includeTestSourceDirectory>
612 <includeTestResources>false</includeTestResources>
613 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
616 <consoleOutput>true</consoleOutput>
617 <failOnViolation>false</failOnViolation>
621 <id>onap-java-style</id>
625 <phase>process-sources</phase>
627 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
628 with minor changes -->
629 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
630 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated
631 sources directory -->
632 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
633 <includeResources>true</includeResources>
634 <includeTestSourceDirectory>true</includeTestSourceDirectory>
635 <includeTestResources>true</includeTestResources>
638 <consoleOutput>true</consoleOutput>
639 <failOnViolation>false</failOnViolation>
645 <groupId>org.codehaus.mojo</groupId>
646 <artifactId>build-helper-maven-plugin</artifactId>
647 <version>1.12</version>
649 <!-- Jacoco / Sonar -->
651 <groupId>org.jacoco</groupId>
652 <artifactId>jacoco-maven-plugin</artifactId>
653 <version>${jacoco.version}</version>
656 <id>pre-unit-test</id>
658 <goal>prepare-agent</goal>
661 <!-- Sets the path to the file which contains the execution data. -->
662 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
663 <!-- Sets the name of the property containing the settings for JaCoCo
665 <propertyName>surefireArgLine</propertyName>
668 <!-- Ensures that the code coverage report for unit tests is created
669 after unit tests have been run. -->
671 <id>post-unit-test</id>
677 <!-- Sets the path to the file which contains the execution data. -->
678 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
679 <!-- Sets the output directory for the code coverage report. -->
680 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
684 <id>pre-integration-test</id>
685 <phase>pre-integration-test</phase>
687 <goal>prepare-agent</goal>
690 <!-- Sets the path to the file which contains the execution data. -->
691 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
692 <!-- Sets the name of the property containing the settings for JaCoCo
694 <propertyName>failsafeArgLine</propertyName>
697 <!-- Ensures that the code coverage report for integration tests after
698 integration tests have been run. -->
700 <id>post-integration-test</id>
701 <phase>post-integration-test</phase>
706 <!-- Sets the path to the file which contains the execution data. -->
707 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
708 <!-- Sets the output directory for the code coverage report. -->
709 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
713 <id>default-prepare-agent</id>
715 <goal>prepare-agent</goal>
719 <id>default-report</id>
720 <phase>prepare-package</phase>
726 <id>default-check</id>
733 <element>PACKAGE</element>
736 <counter>COMPLEXITY</counter>
737 <value>COVEREDRATIO</value>
738 <minimum>0.0</minimum>
748 <groupId>org.apache.maven.plugins</groupId>
749 <artifactId>maven-surefire-plugin</artifactId>
752 <groupId>org.apache.maven.plugins</groupId>
753 <artifactId>maven-failsafe-plugin</artifactId>
755 <!-- end of plugins from oparent -->
757 <groupId>org.apache.maven.plugins</groupId>
758 <artifactId>maven-javadoc-plugin</artifactId>
759 <version>2.10.4</version>
762 <id>attach-javadocs</id>
767 <additionalparam>-Xdoclint:none</additionalparam>
778 <artifactId>maven-javadoc-plugin</artifactId>
779 <version>2.10.4</version>
781 <failOnError>false</failOnError>
782 <additionalparam>-Xdoclint:none</additionalparam>
786 <groupId>org.jacoco</groupId>
787 <artifactId>jacoco-maven-plugin</artifactId>
788 <version>${jacoco.version}</version>
792 <!-- select non-aggregate reports -->
793 <report>report</report>
802 <!-- Profiles from ONAP oparent -->
804 <id>generate-json</id>
807 <exists>${swagger-properties}</exists>
810 <name>swagger-sdk.generate-json</name>
816 <groupId>org.codehaus.mojo</groupId>
817 <artifactId>properties-maven-plugin</artifactId>
818 <version>1.0.0</version>
821 <phase>initialize</phase>
823 <goal>read-project-properties</goal>
827 <file>${basedir}/src/main/resources/swagger.properties</file>
834 <groupId>com.github.kongchen</groupId>
835 <artifactId>swagger-maven-plugin</artifactId>
836 <version>3.1.4</version>
840 <locations>${api-rest-package}</locations>
841 <schemes>http,https</schemes>
842 <host>${api-host-ip}:${api-host-port}</host>
843 <basePath>${api-base-path}</basePath>
845 <title>${api-title}</title>
846 <version>${api-version}</version>
847 <description>${api-description}</description>
849 <name>${api-license}</name>
852 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
858 <phase>compile</phase>
860 <goal>generate</goal>
866 <groupId>org.apache.maven.plugins</groupId>
867 <artifactId>maven-install-plugin</artifactId>
868 <version>2.3.1</version>
871 <id>install-file-id</id>
872 <phase>install</phase>
874 <goal>install-file</goal>
877 <file>${basedir}/src/main/resources/swagger.json</file>
878 <groupId>${project.groupId}</groupId>
879 <artifactId>${project.artifactId}-swagger-schema</artifactId>
880 <version>${project.version}</version>
881 <packaging>json</packaging>
890 <id>generate-sdk</id>
893 <exists>${swagger-json}</exists>
896 <name>swagger-sdk.generate-java-sdk</name>
902 <groupId>org.apache.maven.plugins</groupId>
903 <artifactId>maven-antrun-plugin</artifactId>
904 <version>1.8</version>
907 <phase>initialize</phase>
908 <id>ant-create-script</id>
910 <exportAntProperties>true</exportAntProperties>
912 <taskdef resource="net/sf/antcontrib/antlib.xml"
913 classpathref="maven.plugin.classpath"/>
914 <condition property="is_windows" value="true">
915 <os family="windows"/>
917 <condition property="isLinux" value="true">
921 <equals arg1="${is_windows}" arg2="true"/>
923 <property name="swagger.sdk.script.file"
924 value="generated-source-script.bat"/>
926 file="${project.build.directory}${file.separator}generated-source-script.bat"
928 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
930 file="${project.build.directory}${file.separator}generated-source-script.bat"
932 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
935 <property name="swagger.sdk.script.file"
936 value="generated-source-script.sh"/>
938 file="${project.build.directory}${file.separator}generated-source-script.sh"
940 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
942 file="${project.build.directory}${file.separator}generated-source-script.sh"
944 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
946 file="${project.build.directory}${file.separator}generated-source-script.sh"
959 <groupId>ant-contrib</groupId>
960 <artifactId>ant-contrib</artifactId>
961 <version>1.0b3</version>
964 <groupId>ant</groupId>
965 <artifactId>ant</artifactId>
972 <groupId>io.swagger</groupId>
973 <artifactId>swagger-codegen-maven-plugin</artifactId>
974 <version>2.2.1</version>
978 <goal>generate</goal>
981 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
982 <output>${project.build.directory}/generated-sources</output>
983 <language>java</language>
985 <dateLibrary>joda</dateLibrary>
987 <library>jersey2</library>
988 <groupId>${project.groupId}</groupId>
989 <artifactId>${project.artifactId}-java-sdk</artifactId>
990 <artifactVersion>${project.version}</artifactVersion>
991 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
992 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
993 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
999 <groupId>org.codehaus.mojo</groupId>
1000 <artifactId>exec-maven-plugin</artifactId>
1001 <version>1.5.0</version>
1004 <id>swagger-generate-sources</id>
1005 <phase>generate-sources</phase>
1010 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
1016 <groupId>org.apache.maven.plugins</groupId>
1017 <artifactId>maven-clean-plugin</artifactId>
1018 <version>3.0.0</version>
1021 <id>clean-generated-files</id>
1022 <phase>generate-sources</phase>
1029 <directory>${project.build.directory}/generated-sources</directory>
1040 <groupId>org.onap.msb.swagger-sdk</groupId>
1041 <artifactId>swagger-sdk</artifactId>
1042 <version>1.0.0</version>
1047 <id>sonar-jacoco-aggregate</id>
1050 <name>onap.jacoco.aggregateFile</name>
1056 <groupId>org.jacoco</groupId>
1057 <artifactId>jacoco-maven-plugin</artifactId>
1064 <phase>generate-resources</phase>
1066 <destFile>${onap.jacoco.aggregateFile}</destFile>
1069 <directory>${project.basedir}</directory>
1071 <include>**/target/code-coverage/*.exec</include>
1082 <!-- End of profiles from ONAP oparent -->
1085 <id>yang-compile</id>
1088 <exists>src/main/yang</exists>
1094 <groupId>org.opendaylight.yangtools</groupId>
1095 <artifactId>yang-maven-plugin</artifactId>
1096 <version>2.1.8</version>
1099 <groupId>org.opendaylight.mdsal</groupId>
1100 <artifactId>maven-sal-api-gen-plugin</artifactId>
1101 <version>${odl.mdsal.model.version}</version>
1105 <groupId>org.opendaylight.netconf</groupId>
1106 <artifactId>sal-rest-docgen-maven</artifactId>
1107 <version>${odl.netconf.sal.rest.docgen.version}</version>
1114 <goal>generate-sources</goal>
1117 <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
1120 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
1121 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
1124 <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
1125 <outputBaseDir>target/swagger</outputBaseDir>
1128 <inspectDependencies>true</inspectDependencies>