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>bundle-parent</artifactId>
11 <version>4.0.10</version>
15 <groupId>org.onap.ccsdk.parent</groupId>
16 <artifactId>bundle-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>
55 <!-- Default Sonar configuration -->
56 <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec,target/code-coverage/jacoco-it.exec</sonar.jacoco.reportPaths>
57 <!-- Note: This list should match jacoco-maven-plugin's exclusion list
59 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
60 <!-- If following file exist, auto-generation of swagger.json will be done -->
61 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
62 <!-- If following file exist, auto-generation of sdk will be done -->
63 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
64 <!-- end of properties from oparent -->
66 <!-- ONAP repositories -->
67 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
68 <onap.nexus.port>443</onap.nexus.port>
69 <onap.nexus.protocol>https</onap.nexus.protocol>
70 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
71 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
72 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
73 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
74 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
75 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
77 <!-- OpenDaylight repositories -->
78 <opendaylight.nexus.public-url>https://nexus.opendaylight.org/content/repositories/public/</opendaylight.nexus.public-url>
79 <opendaylight.nexus.snapshot-url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</opendaylight.nexus.snapshot-url>
81 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
82 <java.version.source>1.8</java.version.source>
83 <java.version.target>1.8</java.version.target>
84 <bundle.plugin.version>2.5.0</bundle.plugin.version>
85 <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
86 <features.file>features.xml</features.file>
87 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
88 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
89 <checkstyle.skip>true</checkstyle.skip>
91 <sonar.language>java</sonar.language>
92 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
93 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
94 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
95 <sonar.projectVersion>${project.version}</sonar.projectVersion>
97 <!-- CCSDK component versions -->
98 <ccsdk.sli.core.version>0.7.0-SNAPSHOT</ccsdk.sli.core.version>
99 <ccsdk.sli.adaptors.version>0.7.0-SNAPSHOT</ccsdk.sli.adaptors.version>
100 <ccsdk.sli.northbound.version>0.7.0-SNAPSHOT</ccsdk.sli.northbound.version>
101 <ccsdk.sli.plugins.version>0.7.0-SNAPSHOT</ccsdk.sli.plugins.version>
102 <ccsdk.distribution.version>0.7.0-SNAPSHOT</ccsdk.distribution.version>
103 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
104 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
105 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
106 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
107 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
109 <!-- Support libraries used by OpenDaylight -->
110 <odl.controller.mdsal.version>1.9.1</odl.controller.mdsal.version>
111 <odl.mdsal.version>3.0.8</odl.mdsal.version>
112 <odl.mdsal.model.version>1.0.8</odl.mdsal.model.version>
113 <odl.netconf.restconf.version>1.9.1</odl.netconf.restconf.version>
114 <odl.netconf.netconf.version>1.6.1</odl.netconf.netconf.version>
115 <odl.netconf.sal.rest.docgen.version>1.9.1</odl.netconf.sal.rest.docgen.version>
117 <!-- Used by aaa, vtn -->
118 <commons.codec.version>1.12</commons.codec.version>
119 <!-- Used by netconf, ovsdb -->
120 <commons.lang3.version>3.8.1</commons.lang3.version>
121 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
122 <commons.lang.version>2.6</commons.lang.version>
123 <!-- Used by neutron; see also controller, vtn -->
124 <commons.net.version>3.6</commons.net.version>
125 <!-- Used by neutron -->
126 <eclipse.persistence.version>2.7.3</eclipse.persistence.version>
128 <felix.dependencymanager.version>4.4.1</felix.dependencymanager.version>
129 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
130 <gson.version>2.8.5</gson.version>
131 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
132 <guava.version>25.1-jre</guava.version>
133 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
134 integration/distribution, snmp4sdn, toolkit, ttp -->
135 <jackson.version>2.9.8</jackson.version>
136 <!-- Used by snmp4sdn, yangtools -->
137 <javassist.version>3.24.1-GA</javassist.version>
139 <!-- FIXME remove all dependencies for jersey 1.17 after migration all
141 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity, defense4all,
142 snmp4sdn, toolkit -->
143 <jersey.version>2.25.1</jersey.version>
145 <jersey.client.version>2.25.1</jersey.client.version>
147 <!-- New packages for jersey migration 1.17 to 2.8 -->
148 <!-- appache.geronimo.bundle for DocGen -->
149 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
150 <org.json.version>20131018</org.json.version>
152 <!-- Used everywhere -->
153 <junit.version>4.12</junit.version>
154 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
155 <logback.version>1.2.3</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.34.Final</netty.version>
160 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity,
162 <slf4j.version>1.7.25</slf4j.version>
163 <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit,
165 <spring.version>4.3.24.RELEASE</spring.version>
167 <!-- Extra support libraries used by SDN-C -->
168 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
169 <antlr.version>4.7.2</antlr.version>
171 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
173 <!-- Managed dependency versions -->
174 <apache.httpcomponents.core.version>4.4.10</apache.httpcomponents.core.version>
175 <apache.httpcomponents.client.version>4.5.6</apache.httpcomponents.client.version>
176 <derby.version>10.14.2.0</derby.version>
177 <eelf.version>1.0.0</eelf.version>
178 <grpc.version>1.17.1</grpc.version>
179 <mariadb.connector.version>2.1.1</mariadb.connector.version>
180 <mariadb4j.version>2.2.3</mariadb4j.version>
181 <testng.version>6.11</testng.version>
182 <tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
183 <jetty.version>9.4.12.v20180830</jetty.version>
184 <skip.karaf.featureTest>true</skip.karaf.featureTest>
187 <dependencyManagement>
190 <!-- Note: If value in BOM conflicts with value inherited from
191 parent pom, inherited value takes precedence. This seems more like
192 a bug than a feature, but this is how maven 3.6 works -->
194 <groupId>org.onap.ccsdk.parent</groupId>
195 <artifactId>dependencies-odl-bom</artifactId>
196 <version>1.5.1-SNAPSHOT</version>
198 <scope>import</scope>
201 <!-- Override incorrect versions in ODL parent poms -->
202 <!-- to match versions actually installed in ODL Neon -->
204 <groupId>com.google.protobuf</groupId>
205 <artifactId>protobuf-java</artifactId>
206 <version>3.6.1</version>
209 <groupId>io.netty</groupId>
210 <artifactId>netty-transport</artifactId>
211 <version>4.1.34.Final</version>
214 <groupId>io.netty</groupId>
215 <artifactId>netty-all</artifactId>
216 <version>4.1.34.Final</version>
217 <!-- <version>${netty.version}</version> -->
220 <groupId>junit</groupId>
221 <artifactId>junit</artifactId>
222 <version>4.12</version>
226 <groupId>org.eclipse.jetty</groupId>
227 <artifactId>jetty-server</artifactId>
228 <version>9.4.12.v20180830</version>
231 <groupId>org.eclipse.jetty</groupId>
232 <artifactId>jetty-servlets</artifactId>
233 <version>9.4.12.v20180830</version>
236 <groupId>org.glassfish.jersey.bundles.repackaged</groupId>
237 <artifactId>jersey-guava</artifactId>
238 <version>2.25.1</version>
241 <groupId>org.codehaus.jettison</groupId>
242 <artifactId>jettison</artifactId>
243 <version>1.3.8</version>
246 <groupId>org.onap.logging-analytics</groupId>
247 <artifactId>logging-slf4j</artifactId>
248 <version>1.6.1</version>
251 <groupId>org.onap.logging-analytics</groupId>
252 <artifactId>logging-filter-base</artifactId>
253 <version>1.6.1</version>
257 </dependencyManagement>
262 <url>https://nexus.onap.org/content/groups/public</url>
264 <enabled>true</enabled>
265 <updatePolicy>never</updatePolicy>
268 <enabled>true</enabled>
269 <updatePolicy>always</updatePolicy>
273 <id>onap-staging</id>
274 <url>https://nexus.onap.org/content/groups/staging</url>
276 <enabled>true</enabled>
277 <updatePolicy>never</updatePolicy>
280 <enabled>true</enabled>
281 <updatePolicy>always</updatePolicy>
285 <id>ecomp-release</id>
286 <name>onap-repository-releases</name>
287 <url>https://nexus.onap.org/content/repositories/releases</url>
289 <enabled>true</enabled>
290 <updatePolicy>never</updatePolicy>
293 <enabled>false</enabled>
297 <id>ecomp-snapshot</id>
298 <name>onap-repository-snapshots</name>
299 <url>https://nexus.onap.org/content/repositories/snapshots</url>
301 <enabled>false</enabled>
304 <enabled>true</enabled>
308 <id>opendaylight-mirror</id>
309 <name>opendaylight-mirror</name>
310 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
312 <enabled>true</enabled>
313 <updatePolicy>never</updatePolicy>
316 <enabled>false</enabled>
320 <id>opendaylight-snapshot</id>
321 <name>opendaylight-snapshot</name>
322 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
324 <enabled>false</enabled>
327 <enabled>true</enabled>
335 <url>${onap.nexus.public-url}</url>
337 <enabled>true</enabled>
340 <enabled>true</enabled>
344 <id>onap-staging</id>
345 <url>${onap.nexus.staging-url}</url>
347 <enabled>true</enabled>
350 <enabled>true</enabled>
354 <id>onap-snapshot</id>
355 <url>${onap.nexus.snapshot-url}</url>
357 <enabled>false</enabled>
360 <enabled>true</enabled>
364 <id>opendaylight-mirror</id>
365 <name>opendaylight-mirror</name>
366 <url>${opendaylight.nexus.public-url}</url>
368 <enabled>true</enabled>
369 <updatePolicy>never</updatePolicy>
372 <enabled>false</enabled>
376 <id>opendaylight-snapshot</id>
377 <name>opendaylight-snapshot</name>
378 <url>${opendaylight.nexus.snapshot-url}</url>
380 <enabled>false</enabled>
383 <enabled>true</enabled>
386 <!-- Black Duck plugin dependencies -->
389 <name>JCenter Repository</name>
390 <url>http://jcenter.bintray.com</url>
395 <name>Restlet Repository</name>
396 <url>http://maven.restlet.com</url>
398 </pluginRepositories>
404 <!-- Plugins from ONAP version (parent of oparent) -->
407 <groupId>org.apache.maven.plugins</groupId>
408 <artifactId>maven-deploy-plugin</artifactId>
409 <!-- This version supports the "deployAtEnd" parameter -->
410 <version>2.8</version>
416 <groupId>org.apache.maven.plugins</groupId>
417 <artifactId>maven-site-plugin</artifactId>
418 <version>3.6</version>
421 <groupId>org.apache.maven.wagon</groupId>
422 <artifactId>wagon-webdav-jackrabbit</artifactId>
423 <version>2.10</version>
428 <groupId>org.apache.maven.plugins</groupId>
429 <artifactId>maven-enforcer-plugin</artifactId>
430 <version>3.0.0-M2</version>
433 <id>enforce-property</id>
440 <property>onap.nexus.url</property>
441 <message>You must set a onap.nexus.url property in your
442 ~/.m2/settings.xml. See oparent/settings.xml for an example.
450 <id>enforce-no-snapshots</id>
457 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
458 <onlyWhenRelease>true</onlyWhenRelease>
460 </requireReleaseDeps>
466 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
468 <groupId>org.sonarsource.scanner.maven</groupId>
469 <artifactId>sonar-maven-plugin</artifactId>
470 <version>3.6.0.1398</version>
472 <!-- end of plugins from ONAP version (parent of oparent) -->
474 <!-- Plugins from ONAP oparent -->
477 <groupId>org.jacoco</groupId>
478 <artifactId>jacoco-maven-plugin</artifactId>
479 <version>${jacoco.version}</version>
481 <!-- Note: This exclusion list should match <sonar.exclusions> property
484 <exclude>**/gen/**</exclude>
485 <exclude>**/generated-sources/**</exclude>
486 <exclude>**/yang-gen/**</exclude>
487 <exclude>**/pax/**</exclude>
491 <!-- Prepares the property pointing to the JaCoCo runtime agent which
492 is passed as VM argument when Maven the Surefire plugin is executed. -->
494 <id>pre-unit-test</id>
496 <goal>prepare-agent</goal>
499 <!-- Sets the path to the file which contains the execution data. -->
500 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
501 <!-- Sets the name of the property containing the settings for JaCoCo
503 <propertyName>surefireArgLine</propertyName>
506 <!-- Ensures that the code coverage report for unit tests is created
507 after unit tests have been run. -->
509 <id>post-unit-test</id>
515 <!-- Sets the path to the file which contains the execution data. -->
516 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
517 <!-- Sets the output directory for the code coverage report. -->
518 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
522 <id>pre-integration-test</id>
523 <phase>pre-integration-test</phase>
525 <goal>prepare-agent</goal>
528 <!-- Sets the path to the file which contains the execution data. -->
529 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
530 <!-- Sets the name of the property containing the settings for JaCoCo
532 <propertyName>failsafeArgLine</propertyName>
535 <!-- Ensures that the code coverage report for integration tests after
536 integration tests have been run. -->
538 <id>post-integration-test</id>
539 <phase>post-integration-test</phase>
544 <!-- Sets the path to the file which contains the execution data. -->
545 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
546 <!-- Sets the output directory for the code coverage report. -->
547 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
553 <groupId>org.apache.maven.plugins</groupId>
554 <artifactId>maven-surefire-plugin</artifactId>
555 <version>2.22.0</version>
557 <!-- Sets the VM argument line used when unit tests are run. -->
558 <argLine>${surefireArgLine}</argLine>
559 <!-- Excludes integration tests when unit tests are run. -->
561 <exclude>**/IT*.java</exclude>
566 <groupId>org.apache.maven.plugins</groupId>
567 <artifactId>maven-failsafe-plugin</artifactId>
568 <version>2.22.0</version>
570 <!-- Ensures that both integration-test and verify goals of the Failsafe
571 Maven plugin are executed. -->
573 <id>integration-tests</id>
575 <goal>integration-test</goal>
579 <!-- Sets the VM argument line used when integration tests are run. -->
580 <argLine>${failsafeArgLine}</argLine>
586 <!-- End of plugins from ONAP oparent -->
588 <groupId>org.codehaus.mojo</groupId>
589 <artifactId>properties-maven-plugin</artifactId>
590 <version>1.0.0</version>
594 <goal>set-system-properties</goal>
599 <name>maven.wagon.http.ssl.allowall</name>
600 <value>${ssl.allowall}</value>
603 <name>maven.wagon.http.ssl.insecure</name>
604 <value>${ssl.insecure}</value>
613 <groupId>org.codehaus.mojo</groupId>
614 <artifactId>versions-maven-plugin</artifactId>
615 <version>2.5</version>
617 <processAllModules>true</processAllModules>
621 <artifactId>maven-scm-plugin</artifactId>
622 <version>1.8.1</version>
624 <tag>${project.artifactId}-${project.version}</tag>
631 <!-- Plugins from oparent version (parent of oparent) -->
633 <groupId>org.apache.maven.plugins</groupId>
634 <artifactId>maven-deploy-plugin</artifactId>
637 <groupId>org.apache.maven.plugins</groupId>
638 <artifactId>maven-site-plugin</artifactId>
641 <groupId>org.apache.maven.plugins</groupId>
642 <artifactId>maven-enforcer-plugin</artifactId>
644 <!-- end of plugins from oparent version (parent of oparent) -->
646 <!-- Plugins from oparent -->
648 <artifactId>maven-checkstyle-plugin</artifactId>
649 <version>2.17</version>
652 <groupId>org.onap.oparent</groupId>
653 <artifactId>checkstyle</artifactId>
654 <version>1.2.2</version>
659 <id>onap-license</id>
663 <phase>process-sources</phase>
665 <configLocation>onap-checkstyle/check-license.xml</configLocation>
666 <includeResources>false</includeResources>
667 <includeTestSourceDirectory>true</includeTestSourceDirectory>
668 <includeTestResources>false</includeTestResources>
669 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
672 <consoleOutput>true</consoleOutput>
673 <failOnViolation>false</failOnViolation>
677 <id>onap-java-style</id>
681 <phase>process-sources</phase>
683 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
684 with minor changes -->
685 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
686 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated
687 sources directory -->
688 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
689 <includeResources>true</includeResources>
690 <includeTestSourceDirectory>true</includeTestSourceDirectory>
691 <includeTestResources>true</includeTestResources>
694 <consoleOutput>true</consoleOutput>
695 <failOnViolation>false</failOnViolation>
701 <groupId>org.codehaus.mojo</groupId>
702 <artifactId>build-helper-maven-plugin</artifactId>
703 <version>1.12</version>
705 <!-- Jacoco / Sonar -->
707 <groupId>org.jacoco</groupId>
708 <artifactId>jacoco-maven-plugin</artifactId>
711 <groupId>org.apache.maven.plugins</groupId>
712 <artifactId>maven-surefire-plugin</artifactId>
715 <groupId>org.apache.maven.plugins</groupId>
716 <artifactId>maven-failsafe-plugin</artifactId>
718 <!-- end of plugins from oparent -->
720 <groupId>org.apache.maven.plugins</groupId>
721 <artifactId>maven-javadoc-plugin</artifactId>
722 <version>2.10.4</version>
725 <id>attach-javadocs</id>
730 <additionalparam>-Xdoclint:none</additionalparam>
741 <artifactId>maven-javadoc-plugin</artifactId>
742 <version>2.10.4</version>
744 <failOnError>false</failOnError>
745 <additionalparam>-Xdoclint:none</additionalparam>
752 <!-- Profiles from ONAP oparent -->
754 <id>generate-json</id>
757 <exists>${swagger-properties}</exists>
760 <name>swagger-sdk.generate-json</name>
766 <groupId>org.codehaus.mojo</groupId>
767 <artifactId>properties-maven-plugin</artifactId>
768 <version>1.0.0</version>
771 <phase>initialize</phase>
773 <goal>read-project-properties</goal>
777 <file>${basedir}/src/main/resources/swagger.properties</file>
784 <groupId>com.github.kongchen</groupId>
785 <artifactId>swagger-maven-plugin</artifactId>
786 <version>3.1.4</version>
790 <locations>${api-rest-package}</locations>
791 <schemes>http,https</schemes>
792 <host>${api-host-ip}:${api-host-port}</host>
793 <basePath>${api-base-path}</basePath>
795 <title>${api-title}</title>
796 <version>${api-version}</version>
797 <description>${api-description}</description>
799 <name>${api-license}</name>
802 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
808 <phase>compile</phase>
810 <goal>generate</goal>
816 <groupId>org.apache.maven.plugins</groupId>
817 <artifactId>maven-install-plugin</artifactId>
818 <version>2.3.1</version>
821 <id>install-file-id</id>
822 <phase>install</phase>
824 <goal>install-file</goal>
827 <file>${basedir}/src/main/resources/swagger.json</file>
828 <groupId>${project.groupId}</groupId>
829 <artifactId>${project.artifactId}-swagger-schema</artifactId>
830 <version>${project.version}</version>
831 <packaging>json</packaging>
840 <id>generate-sdk</id>
843 <exists>${swagger-json}</exists>
846 <name>swagger-sdk.generate-java-sdk</name>
852 <groupId>org.apache.maven.plugins</groupId>
853 <artifactId>maven-antrun-plugin</artifactId>
854 <version>1.8</version>
857 <phase>initialize</phase>
858 <id>ant-create-script</id>
860 <exportAntProperties>true</exportAntProperties>
862 <taskdef resource="net/sf/antcontrib/antlib.xml"
863 classpathref="maven.plugin.classpath"/>
864 <condition property="is_windows" value="true">
865 <os family="windows"/>
867 <condition property="isLinux" value="true">
871 <equals arg1="${is_windows}" arg2="true"/>
873 <property name="swagger.sdk.script.file"
874 value="generated-source-script.bat"/>
876 file="${project.build.directory}${file.separator}generated-source-script.bat"
878 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
880 file="${project.build.directory}${file.separator}generated-source-script.bat"
882 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
885 <property name="swagger.sdk.script.file"
886 value="generated-source-script.sh"/>
888 file="${project.build.directory}${file.separator}generated-source-script.sh"
890 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
892 file="${project.build.directory}${file.separator}generated-source-script.sh"
894 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
896 file="${project.build.directory}${file.separator}generated-source-script.sh"
909 <groupId>ant-contrib</groupId>
910 <artifactId>ant-contrib</artifactId>
911 <version>1.0b3</version>
914 <groupId>ant</groupId>
915 <artifactId>ant</artifactId>
922 <groupId>io.swagger</groupId>
923 <artifactId>swagger-codegen-maven-plugin</artifactId>
924 <version>2.2.1</version>
928 <goal>generate</goal>
931 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
932 <output>${project.build.directory}/generated-sources</output>
933 <language>java</language>
935 <dateLibrary>joda</dateLibrary>
937 <library>jersey2</library>
938 <groupId>${project.groupId}</groupId>
939 <artifactId>${project.artifactId}-java-sdk</artifactId>
940 <artifactVersion>${project.version}</artifactVersion>
941 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
942 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
943 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
949 <groupId>org.codehaus.mojo</groupId>
950 <artifactId>exec-maven-plugin</artifactId>
951 <version>1.5.0</version>
954 <id>swagger-generate-sources</id>
955 <phase>generate-sources</phase>
960 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
966 <groupId>org.apache.maven.plugins</groupId>
967 <artifactId>maven-clean-plugin</artifactId>
968 <version>3.0.0</version>
971 <id>clean-generated-files</id>
972 <phase>generate-sources</phase>
979 <directory>${project.build.directory}/generated-sources</directory>
990 <groupId>org.onap.msb.swagger-sdk</groupId>
991 <artifactId>swagger-sdk</artifactId>
992 <version>1.0.0</version>
997 <!-- End of profiles from ONAP oparent -->
1000 <id>yang-compile</id>
1003 <exists>src/main/yang</exists>
1009 <groupId>org.opendaylight.yangtools</groupId>
1010 <artifactId>yang-maven-plugin</artifactId>
1011 <version>2.1.8</version>
1014 <groupId>org.opendaylight.mdsal</groupId>
1015 <artifactId>maven-sal-api-gen-plugin</artifactId>
1016 <version>${odl.mdsal.model.version}</version>
1020 <groupId>org.opendaylight.netconf</groupId>
1021 <artifactId>sal-rest-docgen-maven</artifactId>
1022 <version>${odl.netconf.sal.rest.docgen.version}</version>
1029 <goal>generate-sources</goal>
1032 <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
1035 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
1036 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
1039 <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
1040 <outputBaseDir>target/swagger</outputBaseDir>
1043 <inspectDependencies>true</inspectDependencies>