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.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>${onap.nexus.release-url}</url>
37 <id>ecomp-snapshots</id>
38 <url>${onap.nexus.snapshot-url}</url>
40 </distributionManagement>
43 <!-- Sonar properties -->
44 <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
45 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
46 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
47 <!-- Default Sonar configuration -->
48 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml,${project.reporting.outputDirectory}/jacoco-it/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
49 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
50 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
52 <!-- Jacoco properties -->
53 <jacoco.version>0.8.5</jacoco.version>
55 <!-- properties from oparent -->
56 <maven.compiler.source>1.8</maven.compiler.source>
57 <maven.compiler.target>1.8</maven.compiler.target>
58 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
59 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
60 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
61 <!-- sitePath may be overridden in the inheriting POM if desired -->
62 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
64 <!-- If following file exist, auto-generation of swagger.json will be done -->
65 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
66 <!-- If following file exist, auto-generation of sdk will be done -->
67 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
68 <!-- end of properties from oparent -->
70 <!-- ONAP repositories -->
71 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
72 <onap.nexus.port>443</onap.nexus.port>
73 <onap.nexus.protocol>https</onap.nexus.protocol>
74 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
75 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
76 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
77 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
78 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
79 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
81 <!-- OpenDaylight repositories -->
82 <opendaylight.nexus.public-url>https://nexus.opendaylight.org/content/repositories/public/</opendaylight.nexus.public-url>
83 <opendaylight.nexus.snapshot-url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</opendaylight.nexus.snapshot-url>
85 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
86 <java.version.source>1.8</java.version.source>
87 <java.version.target>1.8</java.version.target>
88 <bundle.plugin.version>2.5.0</bundle.plugin.version>
89 <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
90 <features.file>features.xml</features.file>
91 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
92 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
93 <checkstyle.skip>true</checkstyle.skip>
95 <!-- logging-analytics versions -->
96 <logging-analytics.version>1.6.4</logging-analytics.version>
98 <!-- CCSDK component versions -->
99 <ccsdk.cds.version>0.7.1-SNAPSHOT</ccsdk.cds.version>
100 <ccsdk.sli.core.version>0.7.1-SNAPSHOT</ccsdk.sli.core.version>
101 <ccsdk.sli.adaptors.version>0.7.1-SNAPSHOT</ccsdk.sli.adaptors.version>
102 <ccsdk.sli.northbound.version>0.7.1-SNAPSHOT</ccsdk.sli.northbound.version>
103 <ccsdk.sli.plugins.version>0.7.1-SNAPSHOT</ccsdk.sli.plugins.version>
104 <ccsdk.distribution.version>0.7.1-SNAPSHOT</ccsdk.distribution.version>
105 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
106 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
107 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
108 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
109 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
111 <!-- Support libraries used by OpenDaylight -->
112 <odl.controller.mdsal.version>1.9.1</odl.controller.mdsal.version>
113 <odl.mdsal.version>3.0.8</odl.mdsal.version>
114 <odl.mdsal.model.version>1.0.8</odl.mdsal.model.version>
115 <odl.netconf.restconf.version>1.9.1</odl.netconf.restconf.version>
116 <odl.netconf.netconf.version>1.6.1</odl.netconf.netconf.version>
117 <odl.netconf.sal.rest.docgen.version>1.9.1</odl.netconf.sal.rest.docgen.version>
119 <!-- Used by aaa, vtn -->
120 <commons.codec.version>1.12</commons.codec.version>
121 <!-- Used by netconf, ovsdb -->
122 <commons.lang3.version>3.8.1</commons.lang3.version>
123 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
124 <commons.lang.version>2.6</commons.lang.version>
125 <!-- Used by neutron; see also controller, vtn -->
126 <commons.net.version>3.6</commons.net.version>
127 <!-- Used by neutron -->
128 <eclipse.persistence.version>2.7.3</eclipse.persistence.version>
130 <felix.dependencymanager.version>4.4.1</felix.dependencymanager.version>
131 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
132 <gson.version>2.8.5</gson.version>
133 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
134 <guava.version>25.1-jre</guava.version>
135 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
136 integration/distribution, snmp4sdn, toolkit, ttp -->
137 <jackson.version>2.9.8</jackson.version>
138 <!-- Used by snmp4sdn, yangtools -->
139 <javassist.version>3.24.1-GA</javassist.version>
141 <!-- FIXME remove all dependencies for jersey 1.17 after migration all projects -->
142 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity, defense4all, 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, toolkit -->
161 <slf4j.version>1.7.25</slf4j.version>
162 <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit, tsdr, ttp -->
163 <spring.version>4.3.24.RELEASE</spring.version>
165 <!-- Extra support libraries used by SDN-C -->
166 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
167 <antlr.version>4.7.2</antlr.version>
169 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
171 <!-- Managed dependency versions -->
172 <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
173 <apache.httpcomponents.client.version>4.5.10</apache.httpcomponents.client.version>
174 <derby.version>10.14.2.0</derby.version>
175 <eelf.version>1.0.0</eelf.version>
176 <grpc.version>1.21.1</grpc.version>
177 <mariadb.connector.version>2.4.4</mariadb.connector.version>
178 <mariadb4j.version>2.4.0</mariadb4j.version>
179 <testng.version>6.14.3</testng.version>
180 <tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
181 <jetty.version>9.4.12.v20180830</jetty.version>
182 <skip.karaf.featureTest>true</skip.karaf.featureTest>
183 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
186 <dependencyManagement>
188 <!-- Note: If value in BOM conflicts with value inherited from
189 parent pom, inherited value takes precedence. This seems more like
190 a bug than a feature, but this is how maven 3.6 works -->
192 <groupId>org.onap.ccsdk.parent</groupId>
193 <artifactId>dependencies-odl-bom</artifactId>
194 <version>1.5.2-SNAPSHOT</version>
196 <scope>import</scope>
199 <groupId>org.onap.logging-analytics</groupId>
200 <artifactId>logging-slf4j</artifactId>
201 <version>${logging-analytics.version}</version>
204 <groupId>org.onap.logging-analytics</groupId>
205 <artifactId>logging-filter-base</artifactId>
206 <version>${logging-analytics.version}</version>
209 </dependencyManagement>
214 <url>${onap.nexus.public-url}</url>
216 <enabled>true</enabled>
217 <updatePolicy>never</updatePolicy>
220 <enabled>true</enabled>
221 <updatePolicy>always</updatePolicy>
225 <id>onap-staging</id>
226 <url>${onap.nexus.staging-url}</url>
228 <enabled>true</enabled>
229 <updatePolicy>never</updatePolicy>
232 <enabled>true</enabled>
233 <updatePolicy>always</updatePolicy>
237 <id>ecomp-release</id>
238 <name>onap-repository-releases</name>
239 <url>${onap.nexus.release-url}</url>
241 <enabled>true</enabled>
242 <updatePolicy>never</updatePolicy>
245 <enabled>false</enabled>
249 <id>ecomp-snapshot</id>
250 <name>onap-repository-snapshots</name>
251 <url>${onap.nexus.snapshot-url}</url>
253 <enabled>false</enabled>
256 <enabled>true</enabled>
260 <id>opendaylight-mirror</id>
261 <name>opendaylight-mirror</name>
262 <url>${opendaylight.nexus.public-url}</url>
264 <enabled>true</enabled>
265 <updatePolicy>never</updatePolicy>
268 <enabled>false</enabled>
272 <id>opendaylight-snapshot</id>
273 <name>opendaylight-snapshot</name>
274 <url>${opendaylight.nexus.snapshot-url}</url>
276 <enabled>false</enabled>
279 <enabled>true</enabled>
287 <url>${onap.nexus.public-url}</url>
289 <enabled>true</enabled>
292 <enabled>true</enabled>
296 <id>onap-staging</id>
297 <url>${onap.nexus.staging-url}</url>
299 <enabled>true</enabled>
302 <enabled>true</enabled>
306 <id>onap-snapshot</id>
307 <url>${onap.nexus.snapshot-url}</url>
309 <enabled>false</enabled>
312 <enabled>true</enabled>
316 <id>opendaylight-mirror</id>
317 <name>opendaylight-mirror</name>
318 <url>${opendaylight.nexus.public-url}</url>
320 <enabled>true</enabled>
321 <updatePolicy>never</updatePolicy>
324 <enabled>false</enabled>
328 <id>opendaylight-snapshot</id>
329 <name>opendaylight-snapshot</name>
330 <url>${opendaylight.nexus.snapshot-url}</url>
332 <enabled>false</enabled>
335 <enabled>true</enabled>
338 <!-- Black Duck plugin dependencies -->
341 <name>JCenter Repository</name>
342 <url>http://jcenter.bintray.com</url>
347 <name>Restlet Repository</name>
348 <url>http://maven.restlet.com</url>
350 </pluginRepositories>
355 <!-- Plugins from ONAP version (parent of oparent) -->
357 <groupId>org.apache.maven.plugins</groupId>
358 <artifactId>maven-deploy-plugin</artifactId>
359 <!-- This version supports the "deployAtEnd" parameter -->
360 <version>2.8</version>
366 <groupId>org.apache.maven.plugins</groupId>
367 <artifactId>maven-site-plugin</artifactId>
368 <version>3.6</version>
371 <groupId>org.apache.maven.wagon</groupId>
372 <artifactId>wagon-webdav-jackrabbit</artifactId>
373 <version>2.10</version>
378 <groupId>org.apache.maven.plugins</groupId>
379 <artifactId>maven-enforcer-plugin</artifactId>
380 <version>3.0.0-M2</version>
383 <id>enforce-property</id>
390 <property>onap.nexus.url</property>
391 <message>You must set a onap.nexus.url property in your
392 ~/.m2/settings.xml. See oparent/settings.xml for an example.
400 <id>enforce-no-snapshots</id>
407 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
408 <onlyWhenRelease>true</onlyWhenRelease>
410 </requireReleaseDeps>
416 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
418 <groupId>org.sonarsource.scanner.maven</groupId>
419 <artifactId>sonar-maven-plugin</artifactId>
420 <version>${sonar.scanner.version}</version>
422 <!-- end of plugins from ONAP version (parent of oparent) -->
424 <!-- Plugins from ONAP oparent -->
426 <groupId>org.apache.maven.plugins</groupId>
427 <artifactId>maven-surefire-plugin</artifactId>
428 <version>2.22.0</version>
430 <!-- Sets the VM argument line used when unit tests are run. -->
431 <argLine>${surefireArgLine}</argLine>
432 <!-- Excludes integration tests when unit tests are run. -->
434 <exclude>**/IT*.java</exclude>
439 <groupId>org.apache.maven.plugins</groupId>
440 <artifactId>maven-failsafe-plugin</artifactId>
441 <version>2.22.0</version>
443 <!-- Ensures that both integration-test and verify goals of the Failsafe
444 Maven plugin are executed. -->
446 <id>integration-tests</id>
448 <goal>integration-test</goal>
452 <!-- Sets the VM argument line used when integration tests are run. -->
453 <argLine>${failsafeArgLine}</argLine>
459 <!-- End of plugins from ONAP oparent -->
461 <groupId>org.codehaus.mojo</groupId>
462 <artifactId>properties-maven-plugin</artifactId>
463 <version>1.0.0</version>
467 <goal>set-system-properties</goal>
472 <name>maven.wagon.http.ssl.allowall</name>
473 <value>${ssl.allowall}</value>
476 <name>maven.wagon.http.ssl.insecure</name>
477 <value>${ssl.insecure}</value>
486 <groupId>org.codehaus.mojo</groupId>
487 <artifactId>versions-maven-plugin</artifactId>
488 <version>2.5</version>
490 <processAllModules>true</processAllModules>
494 <artifactId>maven-scm-plugin</artifactId>
495 <version>1.8.1</version>
497 <tag>${project.artifactId}-${project.version}</tag>
501 <groupId>com.github.ferstl</groupId>
502 <artifactId>depgraph-maven-plugin</artifactId>
503 <version>3.3.0</version>
505 <graphFormat>text</graphFormat>
506 <outputFileName>${dependency-list.file}</outputFileName>
507 <outputDirectory>${project.basedir}</outputDirectory>
508 <transitiveExcludes>*</transitiveExcludes>
509 <showVersions>true</showVersions>
510 <showGroupIds>true</showGroupIds>
517 <!-- Plugins from oparent version (parent of oparent) -->
519 <groupId>org.apache.maven.plugins</groupId>
520 <artifactId>maven-deploy-plugin</artifactId>
523 <groupId>org.apache.maven.plugins</groupId>
524 <artifactId>maven-site-plugin</artifactId>
527 <groupId>org.apache.maven.plugins</groupId>
528 <artifactId>maven-enforcer-plugin</artifactId>
530 <!-- end of plugins from oparent version (parent of oparent) -->
532 <!-- Plugins from oparent -->
534 <artifactId>maven-checkstyle-plugin</artifactId>
535 <version>2.17</version>
538 <groupId>org.onap.oparent</groupId>
539 <artifactId>checkstyle</artifactId>
540 <version>1.2.2</version>
545 <id>onap-license</id>
549 <phase>process-sources</phase>
551 <configLocation>onap-checkstyle/check-license.xml</configLocation>
552 <includeResources>false</includeResources>
553 <includeTestSourceDirectory>true</includeTestSourceDirectory>
554 <includeTestResources>false</includeTestResources>
555 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
558 <consoleOutput>true</consoleOutput>
559 <failOnViolation>false</failOnViolation>
563 <id>onap-java-style</id>
567 <phase>process-sources</phase>
569 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
570 with minor changes -->
571 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
572 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
573 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
574 <includeResources>true</includeResources>
575 <includeTestSourceDirectory>true</includeTestSourceDirectory>
576 <includeTestResources>true</includeTestResources>
579 <consoleOutput>true</consoleOutput>
580 <failOnViolation>false</failOnViolation>
586 <groupId>org.codehaus.mojo</groupId>
587 <artifactId>build-helper-maven-plugin</artifactId>
588 <version>1.12</version>
590 <!-- Jacoco / Sonar -->
592 <groupId>org.jacoco</groupId>
593 <artifactId>jacoco-maven-plugin</artifactId>
594 <version>${jacoco.version}</version>
597 <id>pre-unit-test</id>
599 <goal>prepare-agent</goal>
602 <!-- Sets the path to the file which contains the execution data. -->
603 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
604 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
605 <propertyName>surefireArgLine</propertyName>
608 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
610 <id>post-unit-test</id>
616 <!-- Sets the path to the file which contains the execution data. -->
617 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
618 <!-- Sets the output directory for the code coverage report. -->
619 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
623 <id>pre-integration-test</id>
624 <phase>pre-integration-test</phase>
626 <goal>prepare-agent</goal>
629 <!-- Sets the path to the file which contains the execution data. -->
630 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
631 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
632 <propertyName>failsafeArgLine</propertyName>
635 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
637 <id>post-integration-test</id>
638 <phase>post-integration-test</phase>
643 <!-- Sets the path to the file which contains the execution data. -->
644 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
645 <!-- Sets the output directory for the code coverage report. -->
646 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
650 <id>default-prepare-agent</id>
652 <goal>prepare-agent</goal>
656 <id>default-report</id>
657 <phase>prepare-package</phase>
663 <id>default-check</id>
670 <element>PACKAGE</element>
673 <counter>COMPLEXITY</counter>
674 <value>COVEREDRATIO</value>
675 <minimum>0.0</minimum>
685 <groupId>org.apache.maven.plugins</groupId>
686 <artifactId>maven-surefire-plugin</artifactId>
689 <groupId>org.apache.maven.plugins</groupId>
690 <artifactId>maven-failsafe-plugin</artifactId>
692 <!-- end of plugins from oparent -->
694 <groupId>org.apache.maven.plugins</groupId>
695 <artifactId>maven-javadoc-plugin</artifactId>
696 <version>2.10.4</version>
699 <id>attach-javadocs</id>
704 <additionalparam>-Xdoclint:none</additionalparam>
715 <artifactId>maven-javadoc-plugin</artifactId>
716 <version>2.10.4</version>
718 <failOnError>false</failOnError>
719 <additionalparam>-Xdoclint:none</additionalparam>
723 <groupId>org.jacoco</groupId>
724 <artifactId>jacoco-maven-plugin</artifactId>
725 <version>${jacoco.version}</version>
729 <!-- select non-aggregate reports -->
730 <report>report</report>
739 <!-- Profiles from ONAP oparent -->
741 <id>generate-json</id>
744 <exists>${swagger-properties}</exists>
747 <name>swagger-sdk.generate-json</name>
753 <groupId>org.codehaus.mojo</groupId>
754 <artifactId>properties-maven-plugin</artifactId>
755 <version>1.0.0</version>
758 <phase>initialize</phase>
760 <goal>read-project-properties</goal>
764 <file>${basedir}/src/main/resources/swagger.properties</file>
771 <groupId>com.github.kongchen</groupId>
772 <artifactId>swagger-maven-plugin</artifactId>
773 <version>3.1.4</version>
777 <locations>${api-rest-package}</locations>
778 <schemes>http,https</schemes>
779 <host>${api-host-ip}:${api-host-port}</host>
780 <basePath>${api-base-path}</basePath>
782 <title>${api-title}</title>
783 <version>${api-version}</version>
784 <description>${api-description}</description>
786 <name>${api-license}</name>
789 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
795 <phase>compile</phase>
797 <goal>generate</goal>
803 <groupId>org.apache.maven.plugins</groupId>
804 <artifactId>maven-install-plugin</artifactId>
805 <version>2.3.1</version>
808 <id>install-file-id</id>
809 <phase>install</phase>
811 <goal>install-file</goal>
814 <file>${basedir}/src/main/resources/swagger.json</file>
815 <groupId>${project.groupId}</groupId>
816 <artifactId>${project.artifactId}-swagger-schema</artifactId>
817 <version>${project.version}</version>
818 <packaging>json</packaging>
827 <id>generate-sdk</id>
830 <exists>${swagger-json}</exists>
833 <name>swagger-sdk.generate-java-sdk</name>
839 <groupId>org.apache.maven.plugins</groupId>
840 <artifactId>maven-antrun-plugin</artifactId>
841 <version>1.8</version>
844 <phase>initialize</phase>
845 <id>ant-create-script</id>
847 <exportAntProperties>true</exportAntProperties>
849 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
850 <condition property="is_windows" value="true">
851 <os family="windows"/>
853 <condition property="isLinux" value="true">
857 <equals arg1="${is_windows}" arg2="true"/>
859 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
860 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
861 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
862 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
863 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
866 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
867 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
868 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
869 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
870 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
871 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
883 <groupId>ant-contrib</groupId>
884 <artifactId>ant-contrib</artifactId>
885 <version>1.0b3</version>
888 <groupId>ant</groupId>
889 <artifactId>ant</artifactId>
896 <groupId>io.swagger</groupId>
897 <artifactId>swagger-codegen-maven-plugin</artifactId>
898 <version>2.2.1</version>
902 <goal>generate</goal>
905 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
906 <output>${project.build.directory}/generated-sources</output>
907 <language>java</language>
909 <dateLibrary>joda</dateLibrary>
911 <library>jersey2</library>
912 <groupId>${project.groupId}</groupId>
913 <artifactId>${project.artifactId}-java-sdk</artifactId>
914 <artifactVersion>${project.version}</artifactVersion>
915 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
916 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
917 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
923 <groupId>org.codehaus.mojo</groupId>
924 <artifactId>exec-maven-plugin</artifactId>
925 <version>1.5.0</version>
928 <id>swagger-generate-sources</id>
929 <phase>generate-sources</phase>
934 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
940 <groupId>org.apache.maven.plugins</groupId>
941 <artifactId>maven-clean-plugin</artifactId>
942 <version>3.0.0</version>
945 <id>clean-generated-files</id>
946 <phase>generate-sources</phase>
953 <directory>${project.build.directory}/generated-sources</directory>
964 <groupId>org.onap.msb.swagger-sdk</groupId>
965 <artifactId>swagger-sdk</artifactId>
966 <version>1.0.0</version>
971 <id>sonar-jacoco-aggregate</id>
974 <name>onap.jacoco.aggregateFile</name>
980 <groupId>org.jacoco</groupId>
981 <artifactId>jacoco-maven-plugin</artifactId>
988 <phase>generate-resources</phase>
990 <destFile>${onap.jacoco.aggregateFile}</destFile>
993 <directory>${project.basedir}</directory>
995 <include>**/target/code-coverage/*.exec</include>
1006 <!-- End of profiles from ONAP oparent -->
1009 <id>yang-compile</id>
1012 <exists>src/main/yang</exists>
1018 <groupId>org.opendaylight.yangtools</groupId>
1019 <artifactId>yang-maven-plugin</artifactId>
1020 <version>2.1.8</version>
1023 <groupId>org.opendaylight.mdsal</groupId>
1024 <artifactId>maven-sal-api-gen-plugin</artifactId>
1025 <version>${odl.mdsal.model.version}</version>
1029 <groupId>org.opendaylight.netconf</groupId>
1030 <artifactId>sal-rest-docgen-maven</artifactId>
1031 <version>${odl.netconf.sal.rest.docgen.version}</version>
1039 <goal>generate-sources</goal>
1042 <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
1045 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
1046 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
1049 <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
1050 <outputBaseDir>target/swagger</outputBaseDir>
1053 <inspectDependencies>true</inspectDependencies>