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.mdsal</groupId>
10 <artifactId>binding-parent</artifactId>
11 <version>3.0.8</version>
15 <groupId>org.onap.ccsdk.parent</groupId>
16 <artifactId>binding-parent</artifactId>
17 <version>1.5.2-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>
98 <!-- logging-analytics versions -->
99 <logging-analytics.version>1.6.4</logging-analytics.version>
101 <!-- CCSDK component versions -->
102 <ccsdk.cds.version>0.7.1-SNAPSHOT</ccsdk.cds.version>
103 <ccsdk.sli.core.version>0.7.1-SNAPSHOT</ccsdk.sli.core.version>
104 <ccsdk.sli.adaptors.version>0.7.1-SNAPSHOT</ccsdk.sli.adaptors.version>
105 <ccsdk.sli.northbound.version>0.7.1-SNAPSHOT</ccsdk.sli.northbound.version>
106 <ccsdk.sli.plugins.version>0.7.1-SNAPSHOT</ccsdk.sli.plugins.version>
107 <ccsdk.distribution.version>0.7.1-SNAPSHOT</ccsdk.distribution.version>
108 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
109 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
110 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
111 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
112 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
114 <!-- Support libraries used by OpenDaylight -->
115 <odl.controller.mdsal.version>1.9.1</odl.controller.mdsal.version>
116 <odl.mdsal.version>3.0.8</odl.mdsal.version>
117 <odl.mdsal.model.version>1.0.8</odl.mdsal.model.version>
118 <odl.netconf.restconf.version>1.9.1</odl.netconf.restconf.version>
119 <odl.netconf.netconf.version>1.6.1</odl.netconf.netconf.version>
120 <odl.netconf.sal.rest.docgen.version>1.9.1</odl.netconf.sal.rest.docgen.version>
122 <!-- Used by aaa, vtn -->
123 <commons.codec.version>1.12</commons.codec.version>
124 <!-- Used by netconf, ovsdb -->
125 <commons.lang3.version>3.8.1</commons.lang3.version>
126 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
127 <commons.lang.version>2.6</commons.lang.version>
128 <!-- Used by neutron; see also controller, vtn -->
129 <commons.net.version>3.6</commons.net.version>
130 <!-- Used by neutron -->
131 <eclipse.persistence.version>2.7.3</eclipse.persistence.version>
133 <felix.dependencymanager.version>4.4.1</felix.dependencymanager.version>
134 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
135 <gson.version>2.8.5</gson.version>
136 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
137 <guava.version>25.1-jre</guava.version>
138 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
139 integration/distribution, snmp4sdn, toolkit, ttp -->
140 <jackson.version>2.9.8</jackson.version>
141 <!-- Used by snmp4sdn, yangtools -->
142 <javassist.version>3.24.1-GA</javassist.version>
144 <!-- FIXME remove all dependencies for jersey 1.17 after migration all
146 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity, defense4all,
147 snmp4sdn, toolkit -->
148 <jersey.version>2.25.1</jersey.version>
150 <jersey.client.version>2.25.1</jersey.client.version>
152 <!-- New packages for jersey migration 1.17 to 2.8 -->
153 <!-- appache.geronimo.bundle for DocGen -->
154 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
155 <org.json.version>20131018</org.json.version>
157 <!-- Used everywhere -->
158 <junit.version>4.12</junit.version>
159 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
160 <logback.version>1.2.3</logback.version>
161 <!-- Used by nic, sfc, sxp, tsdr -->
162 <mockito.version>1.10.19</mockito.version>
163 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
164 <netty.version>4.1.34.Final</netty.version>
165 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity,
167 <slf4j.version>1.7.25</slf4j.version>
168 <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit,
170 <spring.version>4.3.24.RELEASE</spring.version>
172 <!-- Extra support libraries used by SDN-C -->
173 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
174 <antlr.version>4.7.2</antlr.version>
176 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
178 <!-- Managed dependency versions -->
179 <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
180 <apache.httpcomponents.client.version>4.5.10</apache.httpcomponents.client.version>
181 <derby.version>10.14.2.0</derby.version>
182 <eelf.version>1.0.0</eelf.version>
183 <grpc.version>1.21.1</grpc.version>
184 <mariadb.connector.version>2.4.4</mariadb.connector.version>
185 <mariadb4j.version>2.4.0</mariadb4j.version>
186 <testng.version>6.14.3</testng.version>
187 <tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
188 <jetty.version>9.4.12.v20180830</jetty.version>
189 <skip.karaf.featureTest>true</skip.karaf.featureTest>
191 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
194 <dependencyManagement>
197 <!-- Note: If value in BOM conflicts with value inherited from
198 parent pom, inherited value takes precedence. This seems more like
199 a bug than a feature, but this is how maven 3.6 works -->
201 <groupId>org.onap.ccsdk.parent</groupId>
202 <artifactId>dependencies-odl-bom</artifactId>
203 <version>1.5.2-SNAPSHOT</version>
205 <scope>import</scope>
208 <!-- Override incorrect versions in ODL parent poms -->
209 <!-- to match versions actually installed in ODL Neon -->
211 <groupId>com.google.protobuf</groupId>
212 <artifactId>protobuf-java</artifactId>
213 <version>3.6.1</version>
216 <groupId>io.netty</groupId>
217 <artifactId>netty-transport</artifactId>
218 <version>4.1.34.Final</version>
221 <groupId>io.netty</groupId>
222 <artifactId>netty-all</artifactId>
223 <version>4.1.34.Final</version>
224 <!-- <version>${netty.version}</version> -->
227 <groupId>junit</groupId>
228 <artifactId>junit</artifactId>
229 <version>4.12</version>
233 <groupId>org.eclipse.jetty</groupId>
234 <artifactId>jetty-server</artifactId>
235 <version>9.4.12.v20180830</version>
238 <groupId>org.eclipse.jetty</groupId>
239 <artifactId>jetty-servlets</artifactId>
240 <version>9.4.12.v20180830</version>
243 <groupId>org.glassfish.jersey.bundles.repackaged</groupId>
244 <artifactId>jersey-guava</artifactId>
245 <version>2.25.1</version>
248 <groupId>org.codehaus.jettison</groupId>
249 <artifactId>jettison</artifactId>
250 <version>1.3.8</version>
253 <groupId>org.onap.logging-analytics</groupId>
254 <artifactId>logging-slf4j</artifactId>
255 <version>${logging-analytics.version}</version>
258 <groupId>org.onap.logging-analytics</groupId>
259 <artifactId>logging-filter-base</artifactId>
260 <version>${logging-analytics.version}</version>
264 </dependencyManagement>
269 <url>https://nexus.onap.org/content/groups/public</url>
271 <enabled>true</enabled>
272 <updatePolicy>never</updatePolicy>
275 <enabled>true</enabled>
276 <updatePolicy>always</updatePolicy>
280 <id>onap-staging</id>
281 <url>https://nexus.onap.org/content/groups/staging</url>
283 <enabled>true</enabled>
284 <updatePolicy>never</updatePolicy>
287 <enabled>true</enabled>
288 <updatePolicy>always</updatePolicy>
292 <id>ecomp-release</id>
293 <name>onap-repository-releases</name>
294 <url>https://nexus.onap.org/content/repositories/releases</url>
296 <enabled>true</enabled>
297 <updatePolicy>never</updatePolicy>
300 <enabled>false</enabled>
304 <id>ecomp-snapshot</id>
305 <name>onap-repository-snapshots</name>
306 <url>https://nexus.onap.org/content/repositories/snapshots</url>
308 <enabled>false</enabled>
311 <enabled>true</enabled>
315 <id>opendaylight-mirror</id>
316 <name>opendaylight-mirror</name>
317 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
319 <enabled>true</enabled>
320 <updatePolicy>never</updatePolicy>
323 <enabled>false</enabled>
327 <id>opendaylight-snapshot</id>
328 <name>opendaylight-snapshot</name>
329 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
331 <enabled>false</enabled>
334 <enabled>true</enabled>
342 <url>${onap.nexus.public-url}</url>
344 <enabled>true</enabled>
347 <enabled>true</enabled>
351 <id>onap-staging</id>
352 <url>${onap.nexus.staging-url}</url>
354 <enabled>true</enabled>
357 <enabled>true</enabled>
361 <id>onap-snapshot</id>
362 <url>${onap.nexus.snapshot-url}</url>
364 <enabled>false</enabled>
367 <enabled>true</enabled>
371 <id>opendaylight-mirror</id>
372 <name>opendaylight-mirror</name>
373 <url>${opendaylight.nexus.public-url}</url>
375 <enabled>true</enabled>
376 <updatePolicy>never</updatePolicy>
379 <enabled>false</enabled>
383 <id>opendaylight-snapshot</id>
384 <name>opendaylight-snapshot</name>
385 <url>${opendaylight.nexus.snapshot-url}</url>
387 <enabled>false</enabled>
390 <enabled>true</enabled>
393 <!-- Black Duck plugin dependencies -->
396 <name>JCenter Repository</name>
397 <url>http://jcenter.bintray.com</url>
402 <name>Restlet Repository</name>
403 <url>http://maven.restlet.com</url>
405 </pluginRepositories>
411 <!-- Plugins from ONAP version (parent of oparent) -->
414 <groupId>org.apache.maven.plugins</groupId>
415 <artifactId>maven-deploy-plugin</artifactId>
416 <!-- This version supports the "deployAtEnd" parameter -->
417 <version>2.8</version>
423 <groupId>org.apache.maven.plugins</groupId>
424 <artifactId>maven-site-plugin</artifactId>
425 <version>3.6</version>
428 <groupId>org.apache.maven.wagon</groupId>
429 <artifactId>wagon-webdav-jackrabbit</artifactId>
430 <version>2.10</version>
435 <groupId>org.apache.maven.plugins</groupId>
436 <artifactId>maven-enforcer-plugin</artifactId>
437 <version>3.0.0-M2</version>
440 <id>enforce-property</id>
447 <property>onap.nexus.url</property>
448 <message>You must set a onap.nexus.url property in your
449 ~/.m2/settings.xml. See oparent/settings.xml for an example.
457 <id>enforce-no-snapshots</id>
464 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
465 <onlyWhenRelease>true</onlyWhenRelease>
467 </requireReleaseDeps>
473 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
475 <groupId>org.sonarsource.scanner.maven</groupId>
476 <artifactId>sonar-maven-plugin</artifactId>
477 <version>${sonar.scanner.version}</version>
479 <!-- end of plugins from ONAP version (parent of oparent) -->
481 <!-- Plugins from ONAP oparent -->
485 <groupId>org.apache.maven.plugins</groupId>
486 <artifactId>maven-surefire-plugin</artifactId>
487 <version>2.22.0</version>
489 <!-- Sets the VM argument line used when unit tests are run. -->
490 <argLine>${surefireArgLine}</argLine>
491 <!-- Excludes integration tests when unit tests are run. -->
493 <exclude>**/IT*.java</exclude>
498 <groupId>org.apache.maven.plugins</groupId>
499 <artifactId>maven-failsafe-plugin</artifactId>
500 <version>2.22.0</version>
502 <!-- Ensures that both integration-test and verify goals of the Failsafe
503 Maven plugin are executed. -->
505 <id>integration-tests</id>
507 <goal>integration-test</goal>
511 <!-- Sets the VM argument line used when integration tests are run. -->
512 <argLine>${failsafeArgLine}</argLine>
518 <!-- End of plugins from ONAP oparent -->
520 <groupId>org.codehaus.mojo</groupId>
521 <artifactId>properties-maven-plugin</artifactId>
522 <version>1.0.0</version>
526 <goal>set-system-properties</goal>
531 <name>maven.wagon.http.ssl.allowall</name>
532 <value>${ssl.allowall}</value>
535 <name>maven.wagon.http.ssl.insecure</name>
536 <value>${ssl.insecure}</value>
545 <groupId>org.codehaus.mojo</groupId>
546 <artifactId>versions-maven-plugin</artifactId>
547 <version>2.5</version>
549 <processAllModules>true</processAllModules>
553 <artifactId>maven-scm-plugin</artifactId>
554 <version>1.8.1</version>
556 <tag>${project.artifactId}-${project.version}</tag>
560 <groupId>com.github.ferstl</groupId>
561 <artifactId>depgraph-maven-plugin</artifactId>
562 <version>3.3.0</version>
564 <graphFormat>text</graphFormat>
565 <outputFileName>${dependency-list.file}</outputFileName>
566 <outputDirectory>${project.basedir}</outputDirectory>
567 <transitiveExcludes>*</transitiveExcludes>
568 <showVersions>true</showVersions>
569 <showGroupIds>true</showGroupIds>
576 <!-- Plugins from oparent version (parent of oparent) -->
578 <groupId>org.apache.maven.plugins</groupId>
579 <artifactId>maven-deploy-plugin</artifactId>
582 <groupId>org.apache.maven.plugins</groupId>
583 <artifactId>maven-site-plugin</artifactId>
586 <groupId>org.apache.maven.plugins</groupId>
587 <artifactId>maven-enforcer-plugin</artifactId>
589 <!-- end of plugins from oparent version (parent of oparent) -->
591 <!-- Plugins from oparent -->
593 <artifactId>maven-checkstyle-plugin</artifactId>
594 <version>2.17</version>
597 <groupId>org.onap.oparent</groupId>
598 <artifactId>checkstyle</artifactId>
599 <version>1.2.2</version>
604 <id>onap-license</id>
608 <phase>process-sources</phase>
610 <configLocation>onap-checkstyle/check-license.xml</configLocation>
611 <includeResources>false</includeResources>
612 <includeTestSourceDirectory>true</includeTestSourceDirectory>
613 <includeTestResources>false</includeTestResources>
614 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
617 <consoleOutput>true</consoleOutput>
618 <failOnViolation>false</failOnViolation>
622 <id>onap-java-style</id>
626 <phase>process-sources</phase>
628 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
629 with minor changes -->
630 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
631 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated
632 sources directory -->
633 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
634 <includeResources>true</includeResources>
635 <includeTestSourceDirectory>true</includeTestSourceDirectory>
636 <includeTestResources>true</includeTestResources>
639 <consoleOutput>true</consoleOutput>
640 <failOnViolation>false</failOnViolation>
646 <groupId>org.codehaus.mojo</groupId>
647 <artifactId>build-helper-maven-plugin</artifactId>
648 <version>1.12</version>
650 <!-- Jacoco / Sonar -->
652 <groupId>org.jacoco</groupId>
653 <artifactId>jacoco-maven-plugin</artifactId>
654 <version>${jacoco.version}</version>
657 <id>pre-unit-test</id>
659 <goal>prepare-agent</goal>
662 <!-- Sets the path to the file which contains the execution data. -->
663 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
664 <!-- Sets the name of the property containing the settings for JaCoCo
666 <propertyName>surefireArgLine</propertyName>
669 <!-- Ensures that the code coverage report for unit tests is created
670 after unit tests have been run. -->
672 <id>post-unit-test</id>
678 <!-- Sets the path to the file which contains the execution data. -->
679 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
680 <!-- Sets the output directory for the code coverage report. -->
681 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
685 <id>pre-integration-test</id>
686 <phase>pre-integration-test</phase>
688 <goal>prepare-agent</goal>
691 <!-- Sets the path to the file which contains the execution data. -->
692 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
693 <!-- Sets the name of the property containing the settings for JaCoCo
695 <propertyName>failsafeArgLine</propertyName>
698 <!-- Ensures that the code coverage report for integration tests after
699 integration tests have been run. -->
701 <id>post-integration-test</id>
702 <phase>post-integration-test</phase>
707 <!-- Sets the path to the file which contains the execution data. -->
708 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
709 <!-- Sets the output directory for the code coverage report. -->
710 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
714 <id>default-prepare-agent</id>
716 <goal>prepare-agent</goal>
720 <id>default-report</id>
721 <phase>prepare-package</phase>
727 <id>default-check</id>
734 <element>PACKAGE</element>
737 <counter>COMPLEXITY</counter>
738 <value>COVEREDRATIO</value>
739 <minimum>0.0</minimum>
749 <groupId>org.apache.maven.plugins</groupId>
750 <artifactId>maven-surefire-plugin</artifactId>
753 <groupId>org.apache.maven.plugins</groupId>
754 <artifactId>maven-failsafe-plugin</artifactId>
756 <!-- end of plugins from oparent -->
758 <groupId>org.apache.maven.plugins</groupId>
759 <artifactId>maven-javadoc-plugin</artifactId>
760 <version>2.10.4</version>
763 <id>attach-javadocs</id>
768 <additionalparam>-Xdoclint:none</additionalparam>
779 <artifactId>maven-javadoc-plugin</artifactId>
780 <version>2.10.4</version>
782 <failOnError>false</failOnError>
783 <additionalparam>-Xdoclint:none</additionalparam>
787 <groupId>org.jacoco</groupId>
788 <artifactId>jacoco-maven-plugin</artifactId>
789 <version>${jacoco.version}</version>
793 <!-- select non-aggregate reports -->
794 <report>report</report>
803 <!-- Profiles from ONAP oparent -->
805 <id>generate-json</id>
808 <exists>${swagger-properties}</exists>
811 <name>swagger-sdk.generate-json</name>
817 <groupId>org.codehaus.mojo</groupId>
818 <artifactId>properties-maven-plugin</artifactId>
819 <version>1.0.0</version>
822 <phase>initialize</phase>
824 <goal>read-project-properties</goal>
828 <file>${basedir}/src/main/resources/swagger.properties</file>
835 <groupId>com.github.kongchen</groupId>
836 <artifactId>swagger-maven-plugin</artifactId>
837 <version>3.1.4</version>
841 <locations>${api-rest-package}</locations>
842 <schemes>http,https</schemes>
843 <host>${api-host-ip}:${api-host-port}</host>
844 <basePath>${api-base-path}</basePath>
846 <title>${api-title}</title>
847 <version>${api-version}</version>
848 <description>${api-description}</description>
850 <name>${api-license}</name>
853 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
859 <phase>compile</phase>
861 <goal>generate</goal>
867 <groupId>org.apache.maven.plugins</groupId>
868 <artifactId>maven-install-plugin</artifactId>
869 <version>2.3.1</version>
872 <id>install-file-id</id>
873 <phase>install</phase>
875 <goal>install-file</goal>
878 <file>${basedir}/src/main/resources/swagger.json</file>
879 <groupId>${project.groupId}</groupId>
880 <artifactId>${project.artifactId}-swagger-schema</artifactId>
881 <version>${project.version}</version>
882 <packaging>json</packaging>
891 <id>generate-sdk</id>
894 <exists>${swagger-json}</exists>
897 <name>swagger-sdk.generate-java-sdk</name>
903 <groupId>org.apache.maven.plugins</groupId>
904 <artifactId>maven-antrun-plugin</artifactId>
905 <version>1.8</version>
908 <phase>initialize</phase>
909 <id>ant-create-script</id>
911 <exportAntProperties>true</exportAntProperties>
913 <taskdef resource="net/sf/antcontrib/antlib.xml"
914 classpathref="maven.plugin.classpath"/>
915 <condition property="is_windows" value="true">
916 <os family="windows"/>
918 <condition property="isLinux" value="true">
922 <equals arg1="${is_windows}" arg2="true"/>
924 <property name="swagger.sdk.script.file"
925 value="generated-source-script.bat"/>
927 file="${project.build.directory}${file.separator}generated-source-script.bat"
929 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
931 file="${project.build.directory}${file.separator}generated-source-script.bat"
933 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
936 <property name="swagger.sdk.script.file"
937 value="generated-source-script.sh"/>
939 file="${project.build.directory}${file.separator}generated-source-script.sh"
941 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
943 file="${project.build.directory}${file.separator}generated-source-script.sh"
945 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
947 file="${project.build.directory}${file.separator}generated-source-script.sh"
960 <groupId>ant-contrib</groupId>
961 <artifactId>ant-contrib</artifactId>
962 <version>1.0b3</version>
965 <groupId>ant</groupId>
966 <artifactId>ant</artifactId>
973 <groupId>io.swagger</groupId>
974 <artifactId>swagger-codegen-maven-plugin</artifactId>
975 <version>2.2.1</version>
979 <goal>generate</goal>
982 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
983 <output>${project.build.directory}/generated-sources</output>
984 <language>java</language>
986 <dateLibrary>joda</dateLibrary>
988 <library>jersey2</library>
989 <groupId>${project.groupId}</groupId>
990 <artifactId>${project.artifactId}-java-sdk</artifactId>
991 <artifactVersion>${project.version}</artifactVersion>
992 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
993 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
994 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
1000 <groupId>org.codehaus.mojo</groupId>
1001 <artifactId>exec-maven-plugin</artifactId>
1002 <version>1.5.0</version>
1005 <id>swagger-generate-sources</id>
1006 <phase>generate-sources</phase>
1011 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
1017 <groupId>org.apache.maven.plugins</groupId>
1018 <artifactId>maven-clean-plugin</artifactId>
1019 <version>3.0.0</version>
1022 <id>clean-generated-files</id>
1023 <phase>generate-sources</phase>
1030 <directory>${project.build.directory}/generated-sources</directory>
1041 <groupId>org.onap.msb.swagger-sdk</groupId>
1042 <artifactId>swagger-sdk</artifactId>
1043 <version>1.0.0</version>
1048 <id>sonar-jacoco-aggregate</id>
1051 <name>onap.jacoco.aggregateFile</name>
1057 <groupId>org.jacoco</groupId>
1058 <artifactId>jacoco-maven-plugin</artifactId>
1065 <phase>generate-resources</phase>
1067 <destFile>${onap.jacoco.aggregateFile}</destFile>
1070 <directory>${project.basedir}</directory>
1072 <include>**/target/code-coverage/*.exec</include>
1083 <!-- End of profiles from ONAP oparent -->
1086 <id>yang-compile</id>
1089 <exists>src/main/yang</exists>
1095 <groupId>org.opendaylight.yangtools</groupId>
1096 <artifactId>yang-maven-plugin</artifactId>
1097 <version>2.1.8</version>
1100 <groupId>org.opendaylight.mdsal</groupId>
1101 <artifactId>maven-sal-api-gen-plugin</artifactId>
1102 <version>${odl.mdsal.model.version}</version>
1106 <groupId>org.opendaylight.netconf</groupId>
1107 <artifactId>sal-rest-docgen-maven</artifactId>
1108 <version>${odl.netconf.sal.rest.docgen.version}</version>
1116 <goal>generate-sources</goal>
1119 <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
1122 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
1123 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
1126 <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
1127 <outputBaseDir>target/swagger</outputBaseDir>
1130 <inspectDependencies>true</inspectDependencies>