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>single-feature-parent</artifactId>
11 <version>4.0.10</version>
15 <groupId>org.onap.ccsdk.parent</groupId>
16 <artifactId>single-feature-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>
186 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
189 <dependencyManagement>
192 <!-- Note: If value in BOM conflicts with value inherited from
193 parent pom, inherited value takes precedence. This seems more like
194 a bug than a feature, but this is how maven 3.6 works -->
196 <groupId>org.onap.ccsdk.parent</groupId>
197 <artifactId>dependencies-odl-bom</artifactId>
198 <version>1.5.1-SNAPSHOT</version>
200 <scope>import</scope>
203 <!-- Override incorrect versions in ODL parent poms -->
204 <!-- to match versions actually installed in ODL Neon -->
206 <groupId>com.google.protobuf</groupId>
207 <artifactId>protobuf-java</artifactId>
208 <version>3.6.1</version>
211 <groupId>io.netty</groupId>
212 <artifactId>netty-transport</artifactId>
213 <version>4.1.34.Final</version>
216 <groupId>io.netty</groupId>
217 <artifactId>netty-all</artifactId>
218 <version>4.1.34.Final</version>
219 <!-- <version>${netty.version}</version> -->
222 <groupId>junit</groupId>
223 <artifactId>junit</artifactId>
224 <version>4.12</version>
228 <groupId>org.eclipse.jetty</groupId>
229 <artifactId>jetty-server</artifactId>
230 <version>9.4.12.v20180830</version>
233 <groupId>org.eclipse.jetty</groupId>
234 <artifactId>jetty-servlets</artifactId>
235 <version>9.4.12.v20180830</version>
238 <groupId>org.glassfish.jersey.bundles.repackaged</groupId>
239 <artifactId>jersey-guava</artifactId>
240 <version>2.25.1</version>
243 <groupId>org.codehaus.jettison</groupId>
244 <artifactId>jettison</artifactId>
245 <version>1.3.8</version>
248 <groupId>org.onap.logging-analytics</groupId>
249 <artifactId>logging-slf4j</artifactId>
250 <version>1.6.1</version>
253 <groupId>org.onap.logging-analytics</groupId>
254 <artifactId>logging-filter-base</artifactId>
255 <version>1.6.1</version>
259 </dependencyManagement>
264 <url>https://nexus.onap.org/content/groups/public</url>
266 <enabled>true</enabled>
267 <updatePolicy>never</updatePolicy>
270 <enabled>true</enabled>
271 <updatePolicy>always</updatePolicy>
275 <id>onap-staging</id>
276 <url>https://nexus.onap.org/content/groups/staging</url>
278 <enabled>true</enabled>
279 <updatePolicy>never</updatePolicy>
282 <enabled>true</enabled>
283 <updatePolicy>always</updatePolicy>
287 <id>ecomp-release</id>
288 <name>onap-repository-releases</name>
289 <url>https://nexus.onap.org/content/repositories/releases</url>
291 <enabled>true</enabled>
292 <updatePolicy>never</updatePolicy>
295 <enabled>false</enabled>
299 <id>ecomp-snapshot</id>
300 <name>onap-repository-snapshots</name>
301 <url>https://nexus.onap.org/content/repositories/snapshots</url>
303 <enabled>false</enabled>
306 <enabled>true</enabled>
310 <id>opendaylight-mirror</id>
311 <name>opendaylight-mirror</name>
312 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
314 <enabled>true</enabled>
315 <updatePolicy>never</updatePolicy>
318 <enabled>false</enabled>
322 <id>opendaylight-snapshot</id>
323 <name>opendaylight-snapshot</name>
324 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
326 <enabled>false</enabled>
329 <enabled>true</enabled>
337 <url>${onap.nexus.public-url}</url>
339 <enabled>true</enabled>
342 <enabled>true</enabled>
346 <id>onap-staging</id>
347 <url>${onap.nexus.staging-url}</url>
349 <enabled>true</enabled>
352 <enabled>true</enabled>
356 <id>onap-snapshot</id>
357 <url>${onap.nexus.snapshot-url}</url>
359 <enabled>false</enabled>
362 <enabled>true</enabled>
366 <id>opendaylight-mirror</id>
367 <name>opendaylight-mirror</name>
368 <url>${opendaylight.nexus.public-url}</url>
370 <enabled>true</enabled>
371 <updatePolicy>never</updatePolicy>
374 <enabled>false</enabled>
378 <id>opendaylight-snapshot</id>
379 <name>opendaylight-snapshot</name>
380 <url>${opendaylight.nexus.snapshot-url}</url>
382 <enabled>false</enabled>
385 <enabled>true</enabled>
388 <!-- Black Duck plugin dependencies -->
391 <name>JCenter Repository</name>
392 <url>http://jcenter.bintray.com</url>
397 <name>Restlet Repository</name>
398 <url>http://maven.restlet.com</url>
400 </pluginRepositories>
406 <!-- Plugins from ONAP version (parent of oparent) -->
409 <groupId>org.apache.maven.plugins</groupId>
410 <artifactId>maven-deploy-plugin</artifactId>
411 <!-- This version supports the "deployAtEnd" parameter -->
412 <version>2.8</version>
418 <groupId>org.apache.maven.plugins</groupId>
419 <artifactId>maven-site-plugin</artifactId>
420 <version>3.6</version>
423 <groupId>org.apache.maven.wagon</groupId>
424 <artifactId>wagon-webdav-jackrabbit</artifactId>
425 <version>2.10</version>
430 <groupId>org.apache.maven.plugins</groupId>
431 <artifactId>maven-enforcer-plugin</artifactId>
432 <version>3.0.0-M2</version>
435 <id>enforce-property</id>
442 <property>onap.nexus.url</property>
443 <message>You must set a onap.nexus.url property in your
444 ~/.m2/settings.xml. See oparent/settings.xml for an example.
452 <id>enforce-no-snapshots</id>
459 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
460 <onlyWhenRelease>true</onlyWhenRelease>
462 </requireReleaseDeps>
468 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
470 <groupId>org.sonarsource.scanner.maven</groupId>
471 <artifactId>sonar-maven-plugin</artifactId>
472 <version>3.6.0.1398</version>
474 <!-- end of plugins from ONAP version (parent of oparent) -->
476 <!-- Plugins from ONAP oparent -->
479 <groupId>org.jacoco</groupId>
480 <artifactId>jacoco-maven-plugin</artifactId>
481 <version>${jacoco.version}</version>
483 <!-- Note: This exclusion list should match <sonar.exclusions> property
486 <exclude>**/gen/**</exclude>
487 <exclude>**/generated-sources/**</exclude>
488 <exclude>**/yang-gen/**</exclude>
489 <exclude>**/pax/**</exclude>
493 <!-- Prepares the property pointing to the JaCoCo runtime agent which
494 is passed as VM argument when Maven the Surefire plugin is executed. -->
496 <id>pre-unit-test</id>
498 <goal>prepare-agent</goal>
501 <!-- Sets the path to the file which contains the execution data. -->
502 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
503 <!-- Sets the name of the property containing the settings for JaCoCo
505 <propertyName>surefireArgLine</propertyName>
508 <!-- Ensures that the code coverage report for unit tests is created
509 after unit tests have been run. -->
511 <id>post-unit-test</id>
517 <!-- Sets the path to the file which contains the execution data. -->
518 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
519 <!-- Sets the output directory for the code coverage report. -->
520 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
524 <id>pre-integration-test</id>
525 <phase>pre-integration-test</phase>
527 <goal>prepare-agent</goal>
530 <!-- Sets the path to the file which contains the execution data. -->
531 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
532 <!-- Sets the name of the property containing the settings for JaCoCo
534 <propertyName>failsafeArgLine</propertyName>
537 <!-- Ensures that the code coverage report for integration tests after
538 integration tests have been run. -->
540 <id>post-integration-test</id>
541 <phase>post-integration-test</phase>
546 <!-- Sets the path to the file which contains the execution data. -->
547 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
548 <!-- Sets the output directory for the code coverage report. -->
549 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
555 <groupId>org.apache.maven.plugins</groupId>
556 <artifactId>maven-surefire-plugin</artifactId>
557 <version>2.22.0</version>
559 <!-- Sets the VM argument line used when unit tests are run. -->
560 <argLine>${surefireArgLine}</argLine>
561 <!-- Excludes integration tests when unit tests are run. -->
563 <exclude>**/IT*.java</exclude>
568 <groupId>org.apache.maven.plugins</groupId>
569 <artifactId>maven-failsafe-plugin</artifactId>
570 <version>2.22.0</version>
572 <!-- Ensures that both integration-test and verify goals of the Failsafe
573 Maven plugin are executed. -->
575 <id>integration-tests</id>
577 <goal>integration-test</goal>
581 <!-- Sets the VM argument line used when integration tests are run. -->
582 <argLine>${failsafeArgLine}</argLine>
588 <!-- End of plugins from ONAP oparent -->
590 <groupId>org.codehaus.mojo</groupId>
591 <artifactId>properties-maven-plugin</artifactId>
592 <version>1.0.0</version>
596 <goal>set-system-properties</goal>
601 <name>maven.wagon.http.ssl.allowall</name>
602 <value>${ssl.allowall}</value>
605 <name>maven.wagon.http.ssl.insecure</name>
606 <value>${ssl.insecure}</value>
615 <groupId>org.codehaus.mojo</groupId>
616 <artifactId>versions-maven-plugin</artifactId>
617 <version>2.5</version>
619 <processAllModules>true</processAllModules>
623 <artifactId>maven-scm-plugin</artifactId>
624 <version>1.8.1</version>
626 <tag>${project.artifactId}-${project.version}</tag>
630 <groupId>com.github.ferstl</groupId>
631 <artifactId>depgraph-maven-plugin</artifactId>
632 <version>3.3.0</version>
634 <graphFormat>text</graphFormat>
635 <outputFileName>${dependency-list.file}</outputFileName>
636 <outputDirectory>${project.basedir}</outputDirectory>
637 <transitiveExcludes>*</transitiveExcludes>
638 <showVersions>true</showVersions>
639 <showGroupIds>true</showGroupIds>
646 <!-- Plugins from oparent version (parent of oparent) -->
648 <groupId>org.apache.maven.plugins</groupId>
649 <artifactId>maven-deploy-plugin</artifactId>
652 <groupId>org.apache.maven.plugins</groupId>
653 <artifactId>maven-site-plugin</artifactId>
656 <groupId>org.apache.maven.plugins</groupId>
657 <artifactId>maven-enforcer-plugin</artifactId>
659 <!-- end of plugins from oparent version (parent of oparent) -->
661 <!-- Plugins from oparent -->
663 <artifactId>maven-checkstyle-plugin</artifactId>
664 <version>2.17</version>
667 <groupId>org.onap.oparent</groupId>
668 <artifactId>checkstyle</artifactId>
669 <version>1.2.2</version>
674 <id>onap-license</id>
678 <phase>process-sources</phase>
680 <configLocation>onap-checkstyle/check-license.xml</configLocation>
681 <includeResources>false</includeResources>
682 <includeTestSourceDirectory>true</includeTestSourceDirectory>
683 <includeTestResources>false</includeTestResources>
684 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
687 <consoleOutput>true</consoleOutput>
688 <failOnViolation>false</failOnViolation>
692 <id>onap-java-style</id>
696 <phase>process-sources</phase>
698 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
699 with minor changes -->
700 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
701 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated
702 sources directory -->
703 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
704 <includeResources>true</includeResources>
705 <includeTestSourceDirectory>true</includeTestSourceDirectory>
706 <includeTestResources>true</includeTestResources>
709 <consoleOutput>true</consoleOutput>
710 <failOnViolation>false</failOnViolation>
716 <groupId>org.codehaus.mojo</groupId>
717 <artifactId>build-helper-maven-plugin</artifactId>
718 <version>1.12</version>
720 <!-- Jacoco / Sonar -->
722 <groupId>org.jacoco</groupId>
723 <artifactId>jacoco-maven-plugin</artifactId>
726 <groupId>org.apache.maven.plugins</groupId>
727 <artifactId>maven-surefire-plugin</artifactId>
730 <groupId>org.apache.maven.plugins</groupId>
731 <artifactId>maven-failsafe-plugin</artifactId>
733 <!-- end of plugins from oparent -->
735 <groupId>org.apache.maven.plugins</groupId>
736 <artifactId>maven-javadoc-plugin</artifactId>
737 <version>2.10.4</version>
740 <id>attach-javadocs</id>
745 <additionalparam>-Xdoclint:none</additionalparam>
756 <artifactId>maven-javadoc-plugin</artifactId>
757 <version>2.10.4</version>
759 <failOnError>false</failOnError>
760 <additionalparam>-Xdoclint:none</additionalparam>
767 <!-- Profiles from ONAP oparent -->
769 <id>generate-json</id>
772 <exists>${swagger-properties}</exists>
775 <name>swagger-sdk.generate-json</name>
781 <groupId>org.codehaus.mojo</groupId>
782 <artifactId>properties-maven-plugin</artifactId>
783 <version>1.0.0</version>
786 <phase>initialize</phase>
788 <goal>read-project-properties</goal>
792 <file>${basedir}/src/main/resources/swagger.properties</file>
799 <groupId>com.github.kongchen</groupId>
800 <artifactId>swagger-maven-plugin</artifactId>
801 <version>3.1.4</version>
805 <locations>${api-rest-package}</locations>
806 <schemes>http,https</schemes>
807 <host>${api-host-ip}:${api-host-port}</host>
808 <basePath>${api-base-path}</basePath>
810 <title>${api-title}</title>
811 <version>${api-version}</version>
812 <description>${api-description}</description>
814 <name>${api-license}</name>
817 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
823 <phase>compile</phase>
825 <goal>generate</goal>
831 <groupId>org.apache.maven.plugins</groupId>
832 <artifactId>maven-install-plugin</artifactId>
833 <version>2.3.1</version>
836 <id>install-file-id</id>
837 <phase>install</phase>
839 <goal>install-file</goal>
842 <file>${basedir}/src/main/resources/swagger.json</file>
843 <groupId>${project.groupId}</groupId>
844 <artifactId>${project.artifactId}-swagger-schema</artifactId>
845 <version>${project.version}</version>
846 <packaging>json</packaging>
855 <id>generate-sdk</id>
858 <exists>${swagger-json}</exists>
861 <name>swagger-sdk.generate-java-sdk</name>
867 <groupId>org.apache.maven.plugins</groupId>
868 <artifactId>maven-antrun-plugin</artifactId>
869 <version>1.8</version>
872 <phase>initialize</phase>
873 <id>ant-create-script</id>
875 <exportAntProperties>true</exportAntProperties>
877 <taskdef resource="net/sf/antcontrib/antlib.xml"
878 classpathref="maven.plugin.classpath"/>
879 <condition property="is_windows" value="true">
880 <os family="windows"/>
882 <condition property="isLinux" value="true">
886 <equals arg1="${is_windows}" arg2="true"/>
888 <property name="swagger.sdk.script.file"
889 value="generated-source-script.bat"/>
891 file="${project.build.directory}${file.separator}generated-source-script.bat"
893 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
895 file="${project.build.directory}${file.separator}generated-source-script.bat"
897 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
900 <property name="swagger.sdk.script.file"
901 value="generated-source-script.sh"/>
903 file="${project.build.directory}${file.separator}generated-source-script.sh"
905 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
907 file="${project.build.directory}${file.separator}generated-source-script.sh"
909 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
911 file="${project.build.directory}${file.separator}generated-source-script.sh"
924 <groupId>ant-contrib</groupId>
925 <artifactId>ant-contrib</artifactId>
926 <version>1.0b3</version>
929 <groupId>ant</groupId>
930 <artifactId>ant</artifactId>
937 <groupId>io.swagger</groupId>
938 <artifactId>swagger-codegen-maven-plugin</artifactId>
939 <version>2.2.1</version>
943 <goal>generate</goal>
946 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
947 <output>${project.build.directory}/generated-sources</output>
948 <language>java</language>
950 <dateLibrary>joda</dateLibrary>
952 <library>jersey2</library>
953 <groupId>${project.groupId}</groupId>
954 <artifactId>${project.artifactId}-java-sdk</artifactId>
955 <artifactVersion>${project.version}</artifactVersion>
956 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
957 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
958 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
964 <groupId>org.codehaus.mojo</groupId>
965 <artifactId>exec-maven-plugin</artifactId>
966 <version>1.5.0</version>
969 <id>swagger-generate-sources</id>
970 <phase>generate-sources</phase>
975 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
981 <groupId>org.apache.maven.plugins</groupId>
982 <artifactId>maven-clean-plugin</artifactId>
983 <version>3.0.0</version>
986 <id>clean-generated-files</id>
987 <phase>generate-sources</phase>
994 <directory>${project.build.directory}/generated-sources</directory>
1005 <groupId>org.onap.msb.swagger-sdk</groupId>
1006 <artifactId>swagger-sdk</artifactId>
1007 <version>1.0.0</version>
1012 <id>sonar-jacoco-aggregate</id>
1015 <name>onap.jacoco.aggregateFile</name>
1021 <groupId>org.jacoco</groupId>
1022 <artifactId>jacoco-maven-plugin</artifactId>
1029 <phase>generate-resources</phase>
1031 <destFile>${onap.jacoco.aggregateFile}</destFile>
1034 <directory>${project.basedir}</directory>
1036 <include>**/target/code-coverage/*.exec</include>
1047 <!-- End of profiles from ONAP oparent -->
1050 <id>yang-compile</id>
1053 <exists>src/main/yang</exists>
1059 <groupId>org.opendaylight.yangtools</groupId>
1060 <artifactId>yang-maven-plugin</artifactId>
1061 <version>2.1.8</version>
1064 <groupId>org.opendaylight.mdsal</groupId>
1065 <artifactId>maven-sal-api-gen-plugin</artifactId>
1066 <version>${odl.mdsal.model.version}</version>
1070 <groupId>org.opendaylight.netconf</groupId>
1071 <artifactId>sal-rest-docgen-maven</artifactId>
1072 <version>${odl.netconf.sal.rest.docgen.version}</version>
1079 <goal>generate-sources</goal>
1082 <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
1085 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
1086 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
1089 <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
1090 <outputBaseDir>target/swagger</outputBaseDir>
1093 <inspectDependencies>true</inspectDependencies>