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.controller</groupId>
10 <artifactId>mdsal-it-parent</artifactId>
11 <version>1.9.1</version>
15 <groupId>org.onap.ccsdk.parent</groupId>
16 <artifactId>mdsal-it-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 <!-- properties from oparent -->
45 <maven.compiler.source>1.8</maven.compiler.source>
46 <maven.compiler.target>1.8</maven.compiler.target>
47 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
48 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
49 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
50 <!-- sitePath may be overridden in the inheriting POM if desired -->
51 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
52 <jacoco.version>0.7.7.201606060606</jacoco.version>
53 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
54 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
56 <!-- Note: This list should match jacoco-maven-plugin's exclusion list
58 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
59 <!-- If following file exist, auto-generation of swagger.json will be done -->
60 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
61 <!-- If following file exist, auto-generation of sdk will be done -->
62 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
63 <!-- end of properties from oparent -->
65 <!-- ONAP repositories -->
66 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
67 <onap.nexus.port>443</onap.nexus.port>
68 <onap.nexus.protocol>https</onap.nexus.protocol>
69 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
70 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
71 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
72 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
73 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
74 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
76 <!-- OpenDaylight repositories -->
77 <opendaylight.nexus.public-url>https://nexus.opendaylight.org/content/repositories/public/</opendaylight.nexus.public-url>
78 <opendaylight.nexus.snapshot-url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</opendaylight.nexus.snapshot-url>
80 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
81 <java.version.source>1.8</java.version.source>
82 <java.version.target>1.8</java.version.target>
83 <bundle.plugin.version>2.5.0</bundle.plugin.version>
84 <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
85 <features.file>features.xml</features.file>
86 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
87 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
88 <checkstyle.skip>true</checkstyle.skip>
90 <sonar.language>java</sonar.language>
91 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
92 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
93 <sonar.projectVersion>${project.version}</sonar.projectVersion>
95 <!-- CCSDK component versions -->
96 <ccsdk.cds.version>0.7.0-SNAPSHOT</ccsdk.cds.version>
97 <ccsdk.sli.core.version>0.7.0-SNAPSHOT</ccsdk.sli.core.version>
98 <ccsdk.sli.adaptors.version>0.7.0-SNAPSHOT</ccsdk.sli.adaptors.version>
99 <ccsdk.sli.northbound.version>0.7.0-SNAPSHOT</ccsdk.sli.northbound.version>
100 <ccsdk.sli.plugins.version>0.7.0-SNAPSHOT</ccsdk.sli.plugins.version>
101 <ccsdk.distribution.version>0.7.0-SNAPSHOT</ccsdk.distribution.version>
102 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
103 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
104 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
105 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
106 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
108 <!-- Support libraries used by OpenDaylight -->
109 <odl.controller.mdsal.version>1.9.1</odl.controller.mdsal.version>
110 <odl.mdsal.version>3.0.8</odl.mdsal.version>
111 <odl.mdsal.model.version>1.0.8</odl.mdsal.model.version>
112 <odl.netconf.restconf.version>1.9.1</odl.netconf.restconf.version>
113 <odl.netconf.netconf.version>1.6.1</odl.netconf.netconf.version>
114 <odl.netconf.sal.rest.docgen.version>1.9.1</odl.netconf.sal.rest.docgen.version>
116 <!-- Used by aaa, vtn -->
117 <commons.codec.version>1.12</commons.codec.version>
118 <!-- Used by netconf, ovsdb -->
119 <commons.lang3.version>3.8.1</commons.lang3.version>
120 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
121 <commons.lang.version>2.6</commons.lang.version>
122 <!-- Used by neutron; see also controller, vtn -->
123 <commons.net.version>3.6</commons.net.version>
124 <!-- Used by neutron -->
125 <eclipse.persistence.version>2.7.3</eclipse.persistence.version>
127 <felix.dependencymanager.version>4.4.1</felix.dependencymanager.version>
128 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
129 <gson.version>2.8.5</gson.version>
130 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
131 <guava.version>25.1-jre</guava.version>
132 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
133 integration/distribution, snmp4sdn, toolkit, ttp -->
134 <jackson.version>2.9.8</jackson.version>
135 <!-- Used by snmp4sdn, yangtools -->
136 <javassist.version>3.24.1-GA</javassist.version>
138 <!-- FIXME remove all dependencies for jersey 1.17 after migration all
140 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity, defense4all,
141 snmp4sdn, toolkit -->
142 <jersey.version>2.25.1</jersey.version>
144 <jersey.client.version>2.25.1</jersey.client.version>
146 <!-- New packages for jersey migration 1.17 to 2.8 -->
147 <!-- appache.geronimo.bundle for DocGen -->
148 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
149 <org.json.version>20131018</org.json.version>
151 <!-- Used everywhere -->
152 <junit.version>4.12</junit.version>
153 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
154 <logback.version>1.2.3</logback.version>
155 <!-- Used by nic, sfc, sxp, tsdr -->
156 <mockito.version>1.10.19</mockito.version>
157 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
158 <netty.version>4.1.34.Final</netty.version>
159 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity,
161 <slf4j.version>1.7.25</slf4j.version>
162 <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit,
164 <spring.version>4.3.24.RELEASE</spring.version>
166 <!-- Extra support libraries used by SDN-C -->
167 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
168 <antlr.version>4.7.2</antlr.version>
170 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
172 <!-- Managed dependency versions -->
173 <apache.httpcomponents.core.version>4.4.10</apache.httpcomponents.core.version>
174 <apache.httpcomponents.client.version>4.5.6</apache.httpcomponents.client.version>
175 <derby.version>10.14.2.0</derby.version>
176 <eelf.version>1.0.0</eelf.version>
177 <grpc.version>1.17.1</grpc.version>
178 <mariadb.connector.version>2.1.1</mariadb.connector.version>
179 <mariadb4j.version>2.2.3</mariadb4j.version>
180 <testng.version>6.11</testng.version>
181 <tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
182 <jetty.version>9.4.12.v20180830</jetty.version>
183 <skip.karaf.featureTest>true</skip.karaf.featureTest>
185 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
188 <dependencyManagement>
191 <!-- Note: If value in BOM conflicts with value inherited from
192 parent pom, inherited value takes precedence. This seems more like
193 a bug than a feature, but this is how maven 3.6 works -->
195 <groupId>org.onap.ccsdk.parent</groupId>
196 <artifactId>dependencies-odl-bom</artifactId>
197 <version>1.5.1-SNAPSHOT</version>
199 <scope>import</scope>
202 <!-- Override incorrect versions in ODL parent poms -->
203 <!-- to match versions actually installed in ODL Neon -->
205 <groupId>com.google.protobuf</groupId>
206 <artifactId>protobuf-java</artifactId>
207 <version>3.6.1</version>
210 <groupId>io.netty</groupId>
211 <artifactId>netty-transport</artifactId>
212 <version>4.1.34.Final</version>
215 <groupId>io.netty</groupId>
216 <artifactId>netty-all</artifactId>
217 <version>4.1.34.Final</version>
218 <!-- <version>${netty.version}</version> -->
221 <groupId>junit</groupId>
222 <artifactId>junit</artifactId>
223 <version>4.12</version>
227 <groupId>org.eclipse.jetty</groupId>
228 <artifactId>jetty-server</artifactId>
229 <version>9.4.12.v20180830</version>
232 <groupId>org.eclipse.jetty</groupId>
233 <artifactId>jetty-servlets</artifactId>
234 <version>9.4.12.v20180830</version>
237 <groupId>org.glassfish.jersey.bundles.repackaged</groupId>
238 <artifactId>jersey-guava</artifactId>
239 <version>2.25.1</version>
242 <groupId>org.codehaus.jettison</groupId>
243 <artifactId>jettison</artifactId>
244 <version>1.3.8</version>
247 <groupId>org.onap.logging-analytics</groupId>
248 <artifactId>logging-slf4j</artifactId>
249 <version>1.6.1</version>
252 <groupId>org.onap.logging-analytics</groupId>
253 <artifactId>logging-filter-base</artifactId>
254 <version>1.6.1</version>
258 </dependencyManagement>
263 <url>https://nexus.onap.org/content/groups/public</url>
265 <enabled>true</enabled>
266 <updatePolicy>never</updatePolicy>
269 <enabled>true</enabled>
270 <updatePolicy>always</updatePolicy>
274 <id>onap-staging</id>
275 <url>https://nexus.onap.org/content/groups/staging</url>
277 <enabled>true</enabled>
278 <updatePolicy>never</updatePolicy>
281 <enabled>true</enabled>
282 <updatePolicy>always</updatePolicy>
286 <id>ecomp-release</id>
287 <name>onap-repository-releases</name>
288 <url>https://nexus.onap.org/content/repositories/releases</url>
290 <enabled>true</enabled>
291 <updatePolicy>never</updatePolicy>
294 <enabled>false</enabled>
298 <id>ecomp-snapshot</id>
299 <name>onap-repository-snapshots</name>
300 <url>https://nexus.onap.org/content/repositories/snapshots</url>
302 <enabled>false</enabled>
305 <enabled>true</enabled>
309 <id>opendaylight-mirror</id>
310 <name>opendaylight-mirror</name>
311 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
313 <enabled>true</enabled>
314 <updatePolicy>never</updatePolicy>
317 <enabled>false</enabled>
321 <id>opendaylight-snapshot</id>
322 <name>opendaylight-snapshot</name>
323 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
325 <enabled>false</enabled>
328 <enabled>true</enabled>
336 <url>${onap.nexus.public-url}</url>
338 <enabled>true</enabled>
341 <enabled>true</enabled>
345 <id>onap-staging</id>
346 <url>${onap.nexus.staging-url}</url>
348 <enabled>true</enabled>
351 <enabled>true</enabled>
355 <id>onap-snapshot</id>
356 <url>${onap.nexus.snapshot-url}</url>
358 <enabled>false</enabled>
361 <enabled>true</enabled>
365 <id>opendaylight-mirror</id>
366 <name>opendaylight-mirror</name>
367 <url>${opendaylight.nexus.public-url}</url>
369 <enabled>true</enabled>
370 <updatePolicy>never</updatePolicy>
373 <enabled>false</enabled>
377 <id>opendaylight-snapshot</id>
378 <name>opendaylight-snapshot</name>
379 <url>${opendaylight.nexus.snapshot-url}</url>
381 <enabled>false</enabled>
384 <enabled>true</enabled>
387 <!-- Black Duck plugin dependencies -->
390 <name>JCenter Repository</name>
391 <url>http://jcenter.bintray.com</url>
396 <name>Restlet Repository</name>
397 <url>http://maven.restlet.com</url>
399 </pluginRepositories>
405 <!-- Plugins from ONAP version (parent of oparent) -->
408 <groupId>org.apache.maven.plugins</groupId>
409 <artifactId>maven-deploy-plugin</artifactId>
410 <!-- This version supports the "deployAtEnd" parameter -->
411 <version>2.8</version>
417 <groupId>org.apache.maven.plugins</groupId>
418 <artifactId>maven-site-plugin</artifactId>
419 <version>3.6</version>
422 <groupId>org.apache.maven.wagon</groupId>
423 <artifactId>wagon-webdav-jackrabbit</artifactId>
424 <version>2.10</version>
429 <groupId>org.apache.maven.plugins</groupId>
430 <artifactId>maven-enforcer-plugin</artifactId>
431 <version>3.0.0-M2</version>
434 <id>enforce-property</id>
441 <property>onap.nexus.url</property>
442 <message>You must set a onap.nexus.url property in your
443 ~/.m2/settings.xml. See oparent/settings.xml for an example.
451 <id>enforce-no-snapshots</id>
458 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
459 <onlyWhenRelease>true</onlyWhenRelease>
461 </requireReleaseDeps>
467 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
469 <groupId>org.sonarsource.scanner.maven</groupId>
470 <artifactId>sonar-maven-plugin</artifactId>
471 <version>3.6.0.1398</version>
473 <!-- end of plugins from ONAP version (parent of oparent) -->
475 <!-- Plugins from ONAP oparent -->
478 <groupId>org.jacoco</groupId>
479 <artifactId>jacoco-maven-plugin</artifactId>
480 <version>${jacoco.version}</version>
482 <!-- Note: This exclusion list should match <sonar.exclusions> property
485 <exclude>**/gen/**</exclude>
486 <exclude>**/generated-sources/**</exclude>
487 <exclude>**/yang-gen/**</exclude>
488 <exclude>**/pax/**</exclude>
492 <!-- Prepares the property pointing to the JaCoCo runtime agent which
493 is passed as VM argument when Maven the Surefire plugin is executed. -->
495 <id>pre-unit-test</id>
497 <goal>prepare-agent</goal>
500 <!-- Sets the path to the file which contains the execution data. -->
501 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
502 <!-- Sets the name of the property containing the settings for JaCoCo
504 <propertyName>surefireArgLine</propertyName>
507 <!-- Ensures that the code coverage report for unit tests is created
508 after unit tests have been run. -->
510 <id>post-unit-test</id>
516 <!-- Sets the path to the file which contains the execution data. -->
517 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
518 <!-- Sets the output directory for the code coverage report. -->
519 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
523 <id>pre-integration-test</id>
524 <phase>pre-integration-test</phase>
526 <goal>prepare-agent</goal>
529 <!-- Sets the path to the file which contains the execution data. -->
530 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
531 <!-- Sets the name of the property containing the settings for JaCoCo
533 <propertyName>failsafeArgLine</propertyName>
536 <!-- Ensures that the code coverage report for integration tests after
537 integration tests have been run. -->
539 <id>post-integration-test</id>
540 <phase>post-integration-test</phase>
545 <!-- Sets the path to the file which contains the execution data. -->
546 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
547 <!-- Sets the output directory for the code coverage report. -->
548 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
554 <groupId>org.apache.maven.plugins</groupId>
555 <artifactId>maven-surefire-plugin</artifactId>
556 <version>2.22.0</version>
558 <!-- Sets the VM argument line used when unit tests are run. -->
559 <argLine>${surefireArgLine}</argLine>
560 <!-- Excludes integration tests when unit tests are run. -->
562 <exclude>**/IT*.java</exclude>
567 <groupId>org.apache.maven.plugins</groupId>
568 <artifactId>maven-failsafe-plugin</artifactId>
569 <version>2.22.0</version>
571 <!-- Ensures that both integration-test and verify goals of the Failsafe
572 Maven plugin are executed. -->
574 <id>integration-tests</id>
576 <goal>integration-test</goal>
580 <!-- Sets the VM argument line used when integration tests are run. -->
581 <argLine>${failsafeArgLine}</argLine>
587 <!-- End of plugins from ONAP oparent -->
589 <groupId>org.codehaus.mojo</groupId>
590 <artifactId>properties-maven-plugin</artifactId>
591 <version>1.0.0</version>
595 <goal>set-system-properties</goal>
600 <name>maven.wagon.http.ssl.allowall</name>
601 <value>${ssl.allowall}</value>
604 <name>maven.wagon.http.ssl.insecure</name>
605 <value>${ssl.insecure}</value>
614 <groupId>org.codehaus.mojo</groupId>
615 <artifactId>versions-maven-plugin</artifactId>
616 <version>2.5</version>
618 <processAllModules>true</processAllModules>
622 <artifactId>maven-scm-plugin</artifactId>
623 <version>1.8.1</version>
625 <tag>${project.artifactId}-${project.version}</tag>
629 <groupId>com.github.ferstl</groupId>
630 <artifactId>depgraph-maven-plugin</artifactId>
631 <version>3.3.0</version>
633 <graphFormat>text</graphFormat>
634 <outputFileName>${dependency-list.file}</outputFileName>
635 <outputDirectory>${project.basedir}</outputDirectory>
636 <transitiveExcludes>*</transitiveExcludes>
637 <showVersions>true</showVersions>
638 <showGroupIds>true</showGroupIds>
645 <!-- Plugins from oparent version (parent of oparent) -->
647 <groupId>org.apache.maven.plugins</groupId>
648 <artifactId>maven-deploy-plugin</artifactId>
651 <groupId>org.apache.maven.plugins</groupId>
652 <artifactId>maven-site-plugin</artifactId>
655 <groupId>org.apache.maven.plugins</groupId>
656 <artifactId>maven-enforcer-plugin</artifactId>
658 <!-- end of plugins from oparent version (parent of oparent) -->
660 <!-- Plugins from oparent -->
662 <artifactId>maven-checkstyle-plugin</artifactId>
663 <version>2.17</version>
666 <groupId>org.onap.oparent</groupId>
667 <artifactId>checkstyle</artifactId>
668 <version>1.2.2</version>
673 <id>onap-license</id>
677 <phase>process-sources</phase>
679 <configLocation>onap-checkstyle/check-license.xml</configLocation>
680 <includeResources>false</includeResources>
681 <includeTestSourceDirectory>true</includeTestSourceDirectory>
682 <includeTestResources>false</includeTestResources>
683 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
686 <consoleOutput>true</consoleOutput>
687 <failOnViolation>false</failOnViolation>
691 <id>onap-java-style</id>
695 <phase>process-sources</phase>
697 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
698 with minor changes -->
699 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
700 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated
701 sources directory -->
702 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
703 <includeResources>true</includeResources>
704 <includeTestSourceDirectory>true</includeTestSourceDirectory>
705 <includeTestResources>true</includeTestResources>
708 <consoleOutput>true</consoleOutput>
709 <failOnViolation>false</failOnViolation>
715 <groupId>org.codehaus.mojo</groupId>
716 <artifactId>build-helper-maven-plugin</artifactId>
717 <version>1.12</version>
719 <!-- Jacoco / Sonar -->
721 <groupId>org.jacoco</groupId>
722 <artifactId>jacoco-maven-plugin</artifactId>
725 <groupId>org.apache.maven.plugins</groupId>
726 <artifactId>maven-surefire-plugin</artifactId>
729 <groupId>org.apache.maven.plugins</groupId>
730 <artifactId>maven-failsafe-plugin</artifactId>
732 <!-- end of plugins from oparent -->
734 <groupId>org.apache.maven.plugins</groupId>
735 <artifactId>maven-javadoc-plugin</artifactId>
736 <version>2.10.4</version>
739 <id>attach-javadocs</id>
744 <additionalparam>-Xdoclint:none</additionalparam>
755 <artifactId>maven-javadoc-plugin</artifactId>
756 <version>2.10.4</version>
758 <failOnError>false</failOnError>
759 <additionalparam>-Xdoclint:none</additionalparam>
766 <!-- Profiles from ONAP oparent -->
768 <id>generate-json</id>
771 <exists>${swagger-properties}</exists>
774 <name>swagger-sdk.generate-json</name>
780 <groupId>org.codehaus.mojo</groupId>
781 <artifactId>properties-maven-plugin</artifactId>
782 <version>1.0.0</version>
785 <phase>initialize</phase>
787 <goal>read-project-properties</goal>
791 <file>${basedir}/src/main/resources/swagger.properties</file>
798 <groupId>com.github.kongchen</groupId>
799 <artifactId>swagger-maven-plugin</artifactId>
800 <version>3.1.4</version>
804 <locations>${api-rest-package}</locations>
805 <schemes>http,https</schemes>
806 <host>${api-host-ip}:${api-host-port}</host>
807 <basePath>${api-base-path}</basePath>
809 <title>${api-title}</title>
810 <version>${api-version}</version>
811 <description>${api-description}</description>
813 <name>${api-license}</name>
816 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
822 <phase>compile</phase>
824 <goal>generate</goal>
830 <groupId>org.apache.maven.plugins</groupId>
831 <artifactId>maven-install-plugin</artifactId>
832 <version>2.3.1</version>
835 <id>install-file-id</id>
836 <phase>install</phase>
838 <goal>install-file</goal>
841 <file>${basedir}/src/main/resources/swagger.json</file>
842 <groupId>${project.groupId}</groupId>
843 <artifactId>${project.artifactId}-swagger-schema</artifactId>
844 <version>${project.version}</version>
845 <packaging>json</packaging>
854 <id>generate-sdk</id>
857 <exists>${swagger-json}</exists>
860 <name>swagger-sdk.generate-java-sdk</name>
866 <groupId>org.apache.maven.plugins</groupId>
867 <artifactId>maven-antrun-plugin</artifactId>
868 <version>1.8</version>
871 <phase>initialize</phase>
872 <id>ant-create-script</id>
874 <exportAntProperties>true</exportAntProperties>
876 <taskdef resource="net/sf/antcontrib/antlib.xml"
877 classpathref="maven.plugin.classpath"/>
878 <condition property="is_windows" value="true">
879 <os family="windows"/>
881 <condition property="isLinux" value="true">
885 <equals arg1="${is_windows}" arg2="true"/>
887 <property name="swagger.sdk.script.file"
888 value="generated-source-script.bat"/>
890 file="${project.build.directory}${file.separator}generated-source-script.bat"
892 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
894 file="${project.build.directory}${file.separator}generated-source-script.bat"
896 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
899 <property name="swagger.sdk.script.file"
900 value="generated-source-script.sh"/>
902 file="${project.build.directory}${file.separator}generated-source-script.sh"
904 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
906 file="${project.build.directory}${file.separator}generated-source-script.sh"
908 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
910 file="${project.build.directory}${file.separator}generated-source-script.sh"
923 <groupId>ant-contrib</groupId>
924 <artifactId>ant-contrib</artifactId>
925 <version>1.0b3</version>
928 <groupId>ant</groupId>
929 <artifactId>ant</artifactId>
936 <groupId>io.swagger</groupId>
937 <artifactId>swagger-codegen-maven-plugin</artifactId>
938 <version>2.2.1</version>
942 <goal>generate</goal>
945 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
946 <output>${project.build.directory}/generated-sources</output>
947 <language>java</language>
949 <dateLibrary>joda</dateLibrary>
951 <library>jersey2</library>
952 <groupId>${project.groupId}</groupId>
953 <artifactId>${project.artifactId}-java-sdk</artifactId>
954 <artifactVersion>${project.version}</artifactVersion>
955 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
956 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
957 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
963 <groupId>org.codehaus.mojo</groupId>
964 <artifactId>exec-maven-plugin</artifactId>
965 <version>1.5.0</version>
968 <id>swagger-generate-sources</id>
969 <phase>generate-sources</phase>
974 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
980 <groupId>org.apache.maven.plugins</groupId>
981 <artifactId>maven-clean-plugin</artifactId>
982 <version>3.0.0</version>
985 <id>clean-generated-files</id>
986 <phase>generate-sources</phase>
993 <directory>${project.build.directory}/generated-sources</directory>
1004 <groupId>org.onap.msb.swagger-sdk</groupId>
1005 <artifactId>swagger-sdk</artifactId>
1006 <version>1.0.0</version>
1011 <id>sonar-jacoco-aggregate</id>
1014 <name>onap.jacoco.aggregateFile</name>
1020 <groupId>org.jacoco</groupId>
1021 <artifactId>jacoco-maven-plugin</artifactId>
1028 <phase>generate-resources</phase>
1030 <destFile>${onap.jacoco.aggregateFile}</destFile>
1033 <directory>${project.basedir}</directory>
1035 <include>**/target/code-coverage/*.exec</include>
1046 <!-- End of profiles from ONAP oparent -->
1049 <id>yang-compile</id>
1052 <exists>src/main/yang</exists>
1058 <groupId>org.opendaylight.yangtools</groupId>
1059 <artifactId>yang-maven-plugin</artifactId>
1060 <version>2.1.8</version>
1063 <groupId>org.opendaylight.mdsal</groupId>
1064 <artifactId>maven-sal-api-gen-plugin</artifactId>
1065 <version>${odl.mdsal.model.version}</version>
1069 <groupId>org.opendaylight.netconf</groupId>
1070 <artifactId>sal-rest-docgen-maven</artifactId>
1071 <version>${odl.netconf.sal.rest.docgen.version}</version>
1078 <goal>generate-sources</goal>
1081 <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
1084 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
1085 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
1088 <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
1089 <outputBaseDir>target/swagger</outputBaseDir>
1092 <inspectDependencies>true</inspectDependencies>