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.3-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.5</logging-analytics.version>
98 <!-- CCSDK component versions -->
99 <ccsdk.cds.version>0.7.2-SNAPSHOT</ccsdk.cds.version>
100 <ccsdk.sli.core.version>0.7.2-SNAPSHOT</ccsdk.sli.core.version>
101 <ccsdk.sli.adaptors.version>0.7.2-SNAPSHOT</ccsdk.sli.adaptors.version>
102 <ccsdk.sli.northbound.version>0.7.2-SNAPSHOT</ccsdk.sli.northbound.version>
103 <ccsdk.sli.plugins.version>0.7.2-SNAPSHOT</ccsdk.sli.plugins.version>
104 <ccsdk.distribution.version>0.7.2-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.25.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.30</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.3-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 <groupId>junit</groupId>
210 <artifactId>junit</artifactId>
211 <version>${junit.version}</version>
215 </dependencyManagement>
220 <url>${onap.nexus.public-url}</url>
222 <enabled>true</enabled>
223 <updatePolicy>never</updatePolicy>
226 <enabled>true</enabled>
227 <updatePolicy>always</updatePolicy>
231 <id>onap-staging</id>
232 <url>${onap.nexus.staging-url}</url>
234 <enabled>true</enabled>
235 <updatePolicy>never</updatePolicy>
238 <enabled>true</enabled>
239 <updatePolicy>always</updatePolicy>
243 <id>ecomp-release</id>
244 <name>onap-repository-releases</name>
245 <url>${onap.nexus.release-url}</url>
247 <enabled>true</enabled>
248 <updatePolicy>never</updatePolicy>
251 <enabled>false</enabled>
255 <id>ecomp-snapshot</id>
256 <name>onap-repository-snapshots</name>
257 <url>${onap.nexus.snapshot-url}</url>
259 <enabled>false</enabled>
262 <enabled>true</enabled>
266 <id>opendaylight-mirror</id>
267 <name>opendaylight-mirror</name>
268 <url>${opendaylight.nexus.public-url}</url>
270 <enabled>true</enabled>
271 <updatePolicy>never</updatePolicy>
274 <enabled>false</enabled>
278 <id>opendaylight-snapshot</id>
279 <name>opendaylight-snapshot</name>
280 <url>${opendaylight.nexus.snapshot-url}</url>
282 <enabled>false</enabled>
285 <enabled>true</enabled>
293 <url>${onap.nexus.public-url}</url>
295 <enabled>true</enabled>
298 <enabled>true</enabled>
302 <id>onap-staging</id>
303 <url>${onap.nexus.staging-url}</url>
305 <enabled>true</enabled>
308 <enabled>true</enabled>
312 <id>onap-snapshot</id>
313 <url>${onap.nexus.snapshot-url}</url>
315 <enabled>false</enabled>
318 <enabled>true</enabled>
322 <id>opendaylight-mirror</id>
323 <name>opendaylight-mirror</name>
324 <url>${opendaylight.nexus.public-url}</url>
326 <enabled>true</enabled>
327 <updatePolicy>never</updatePolicy>
330 <enabled>false</enabled>
334 <id>opendaylight-snapshot</id>
335 <name>opendaylight-snapshot</name>
336 <url>${opendaylight.nexus.snapshot-url}</url>
338 <enabled>false</enabled>
341 <enabled>true</enabled>
344 <!-- Black Duck plugin dependencies -->
347 <name>JCenter Repository</name>
348 <url>http://jcenter.bintray.com</url>
353 <name>Restlet Repository</name>
354 <url>http://maven.restlet.com</url>
356 </pluginRepositories>
361 <!-- Plugins from ONAP version (parent of oparent) -->
363 <groupId>org.apache.maven.plugins</groupId>
364 <artifactId>maven-deploy-plugin</artifactId>
365 <!-- This version supports the "deployAtEnd" parameter -->
366 <version>2.8</version>
372 <groupId>org.apache.maven.plugins</groupId>
373 <artifactId>maven-site-plugin</artifactId>
374 <version>3.6</version>
377 <groupId>org.apache.maven.wagon</groupId>
378 <artifactId>wagon-webdav-jackrabbit</artifactId>
379 <version>2.10</version>
384 <groupId>org.apache.maven.plugins</groupId>
385 <artifactId>maven-enforcer-plugin</artifactId>
386 <version>3.0.0-M2</version>
389 <id>enforce-property</id>
396 <property>onap.nexus.url</property>
397 <message>You must set a onap.nexus.url property in your
398 ~/.m2/settings.xml. See oparent/settings.xml for an example.
406 <id>enforce-no-snapshots</id>
413 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
414 <onlyWhenRelease>true</onlyWhenRelease>
416 </requireReleaseDeps>
422 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
424 <groupId>org.sonarsource.scanner.maven</groupId>
425 <artifactId>sonar-maven-plugin</artifactId>
426 <version>${sonar.scanner.version}</version>
428 <!-- end of plugins from ONAP version (parent of oparent) -->
430 <!-- Plugins from ONAP oparent -->
432 <groupId>org.apache.maven.plugins</groupId>
433 <artifactId>maven-surefire-plugin</artifactId>
434 <version>2.22.0</version>
436 <!-- Sets the VM argument line used when unit tests are run. -->
437 <argLine>${surefireArgLine}</argLine>
438 <!-- Excludes integration tests when unit tests are run. -->
440 <exclude>**/IT*.java</exclude>
445 <groupId>org.apache.maven.plugins</groupId>
446 <artifactId>maven-failsafe-plugin</artifactId>
447 <version>2.22.0</version>
449 <!-- Ensures that both integration-test and verify goals of the Failsafe
450 Maven plugin are executed. -->
452 <id>integration-tests</id>
454 <goal>integration-test</goal>
458 <!-- Sets the VM argument line used when integration tests are run. -->
459 <argLine>${failsafeArgLine}</argLine>
465 <!-- End of plugins from ONAP oparent -->
467 <groupId>org.codehaus.mojo</groupId>
468 <artifactId>properties-maven-plugin</artifactId>
469 <version>1.0.0</version>
473 <goal>set-system-properties</goal>
478 <name>maven.wagon.http.ssl.allowall</name>
479 <value>${ssl.allowall}</value>
482 <name>maven.wagon.http.ssl.insecure</name>
483 <value>${ssl.insecure}</value>
492 <groupId>org.codehaus.mojo</groupId>
493 <artifactId>versions-maven-plugin</artifactId>
494 <version>2.5</version>
496 <processAllModules>true</processAllModules>
500 <artifactId>maven-scm-plugin</artifactId>
501 <version>1.8.1</version>
503 <tag>${project.artifactId}-${project.version}</tag>
507 <groupId>com.github.ferstl</groupId>
508 <artifactId>depgraph-maven-plugin</artifactId>
509 <version>3.3.0</version>
511 <graphFormat>text</graphFormat>
512 <outputFileName>${dependency-list.file}</outputFileName>
513 <outputDirectory>${project.basedir}</outputDirectory>
514 <transitiveExcludes>*</transitiveExcludes>
515 <showVersions>true</showVersions>
516 <showGroupIds>true</showGroupIds>
523 <!-- Plugins from oparent version (parent of oparent) -->
525 <groupId>org.apache.maven.plugins</groupId>
526 <artifactId>maven-deploy-plugin</artifactId>
529 <groupId>org.apache.maven.plugins</groupId>
530 <artifactId>maven-site-plugin</artifactId>
533 <groupId>org.apache.maven.plugins</groupId>
534 <artifactId>maven-enforcer-plugin</artifactId>
536 <!-- end of plugins from oparent version (parent of oparent) -->
538 <!-- Plugins from oparent -->
540 <artifactId>maven-checkstyle-plugin</artifactId>
541 <version>2.17</version>
544 <groupId>org.onap.oparent</groupId>
545 <artifactId>checkstyle</artifactId>
546 <version>1.2.2</version>
551 <id>onap-license</id>
555 <phase>process-sources</phase>
557 <configLocation>onap-checkstyle/check-license.xml</configLocation>
558 <includeResources>false</includeResources>
559 <includeTestSourceDirectory>true</includeTestSourceDirectory>
560 <includeTestResources>false</includeTestResources>
561 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
564 <consoleOutput>true</consoleOutput>
565 <failOnViolation>false</failOnViolation>
569 <id>onap-java-style</id>
573 <phase>process-sources</phase>
575 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
576 with minor changes -->
577 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
578 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
579 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
580 <includeResources>true</includeResources>
581 <includeTestSourceDirectory>true</includeTestSourceDirectory>
582 <includeTestResources>true</includeTestResources>
585 <consoleOutput>true</consoleOutput>
586 <failOnViolation>false</failOnViolation>
592 <groupId>org.codehaus.mojo</groupId>
593 <artifactId>build-helper-maven-plugin</artifactId>
594 <version>1.12</version>
596 <!-- Jacoco / Sonar -->
598 <groupId>org.jacoco</groupId>
599 <artifactId>jacoco-maven-plugin</artifactId>
600 <version>${jacoco.version}</version>
603 <id>pre-unit-test</id>
605 <goal>prepare-agent</goal>
608 <!-- Sets the path to the file which contains the execution data. -->
609 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
610 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
611 <propertyName>surefireArgLine</propertyName>
614 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
616 <id>post-unit-test</id>
622 <!-- Sets the path to the file which contains the execution data. -->
623 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
624 <!-- Sets the output directory for the code coverage report. -->
625 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
629 <id>pre-integration-test</id>
630 <phase>pre-integration-test</phase>
632 <goal>prepare-agent</goal>
635 <!-- Sets the path to the file which contains the execution data. -->
636 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
637 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
638 <propertyName>failsafeArgLine</propertyName>
641 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
643 <id>post-integration-test</id>
644 <phase>post-integration-test</phase>
649 <!-- Sets the path to the file which contains the execution data. -->
650 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
651 <!-- Sets the output directory for the code coverage report. -->
652 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
656 <id>default-prepare-agent</id>
658 <goal>prepare-agent</goal>
662 <id>default-report</id>
663 <phase>prepare-package</phase>
669 <id>default-check</id>
676 <element>PACKAGE</element>
679 <counter>COMPLEXITY</counter>
680 <value>COVEREDRATIO</value>
681 <minimum>0.0</minimum>
691 <groupId>org.apache.maven.plugins</groupId>
692 <artifactId>maven-surefire-plugin</artifactId>
695 <groupId>org.apache.maven.plugins</groupId>
696 <artifactId>maven-failsafe-plugin</artifactId>
698 <!-- end of plugins from oparent -->
700 <groupId>org.apache.maven.plugins</groupId>
701 <artifactId>maven-javadoc-plugin</artifactId>
702 <version>2.10.4</version>
705 <id>attach-javadocs</id>
710 <additionalparam>-Xdoclint:none</additionalparam>
721 <artifactId>maven-javadoc-plugin</artifactId>
722 <version>2.10.4</version>
724 <failOnError>false</failOnError>
725 <additionalparam>-Xdoclint:none</additionalparam>
729 <groupId>org.jacoco</groupId>
730 <artifactId>jacoco-maven-plugin</artifactId>
731 <version>${jacoco.version}</version>
735 <!-- select non-aggregate reports -->
736 <report>report</report>
745 <!-- Profiles from ONAP oparent -->
747 <id>generate-json</id>
750 <exists>${swagger-properties}</exists>
753 <name>swagger-sdk.generate-json</name>
759 <groupId>org.codehaus.mojo</groupId>
760 <artifactId>properties-maven-plugin</artifactId>
761 <version>1.0.0</version>
764 <phase>initialize</phase>
766 <goal>read-project-properties</goal>
770 <file>${basedir}/src/main/resources/swagger.properties</file>
777 <groupId>com.github.kongchen</groupId>
778 <artifactId>swagger-maven-plugin</artifactId>
779 <version>3.1.4</version>
783 <locations>${api-rest-package}</locations>
784 <schemes>http,https</schemes>
785 <host>${api-host-ip}:${api-host-port}</host>
786 <basePath>${api-base-path}</basePath>
788 <title>${api-title}</title>
789 <version>${api-version}</version>
790 <description>${api-description}</description>
792 <name>${api-license}</name>
795 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
801 <phase>compile</phase>
803 <goal>generate</goal>
809 <groupId>org.apache.maven.plugins</groupId>
810 <artifactId>maven-install-plugin</artifactId>
811 <version>2.3.1</version>
814 <id>install-file-id</id>
815 <phase>install</phase>
817 <goal>install-file</goal>
820 <file>${basedir}/src/main/resources/swagger.json</file>
821 <groupId>${project.groupId}</groupId>
822 <artifactId>${project.artifactId}-swagger-schema</artifactId>
823 <version>${project.version}</version>
824 <packaging>json</packaging>
833 <id>generate-sdk</id>
836 <exists>${swagger-json}</exists>
839 <name>swagger-sdk.generate-java-sdk</name>
845 <groupId>org.apache.maven.plugins</groupId>
846 <artifactId>maven-antrun-plugin</artifactId>
847 <version>1.8</version>
850 <phase>initialize</phase>
851 <id>ant-create-script</id>
853 <exportAntProperties>true</exportAntProperties>
855 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
856 <condition property="is_windows" value="true">
857 <os family="windows"/>
859 <condition property="isLinux" value="true">
863 <equals arg1="${is_windows}" arg2="true"/>
865 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
866 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
867 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
868 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true"
869 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
872 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
873 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
874 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
875 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
876 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
877 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
889 <groupId>ant-contrib</groupId>
890 <artifactId>ant-contrib</artifactId>
891 <version>1.0b3</version>
894 <groupId>ant</groupId>
895 <artifactId>ant</artifactId>
902 <groupId>io.swagger</groupId>
903 <artifactId>swagger-codegen-maven-plugin</artifactId>
904 <version>2.2.1</version>
908 <goal>generate</goal>
911 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
912 <output>${project.build.directory}/generated-sources</output>
913 <language>java</language>
915 <dateLibrary>joda</dateLibrary>
917 <library>jersey2</library>
918 <groupId>${project.groupId}</groupId>
919 <artifactId>${project.artifactId}-java-sdk</artifactId>
920 <artifactVersion>${project.version}</artifactVersion>
921 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
922 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
923 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
929 <groupId>org.codehaus.mojo</groupId>
930 <artifactId>exec-maven-plugin</artifactId>
931 <version>1.5.0</version>
934 <id>swagger-generate-sources</id>
935 <phase>generate-sources</phase>
940 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
946 <groupId>org.apache.maven.plugins</groupId>
947 <artifactId>maven-clean-plugin</artifactId>
948 <version>3.0.0</version>
951 <id>clean-generated-files</id>
952 <phase>generate-sources</phase>
959 <directory>${project.build.directory}/generated-sources</directory>
970 <groupId>org.onap.msb.swagger-sdk</groupId>
971 <artifactId>swagger-sdk</artifactId>
972 <version>1.0.0</version>
977 <id>sonar-jacoco-aggregate</id>
980 <name>onap.jacoco.aggregateFile</name>
986 <groupId>org.jacoco</groupId>
987 <artifactId>jacoco-maven-plugin</artifactId>
994 <phase>generate-resources</phase>
996 <destFile>${onap.jacoco.aggregateFile}</destFile>
999 <directory>${project.basedir}</directory>
1001 <include>**/target/code-coverage/*.exec</include>
1012 <!-- End of profiles from ONAP oparent -->
1015 <id>yang-compile</id>
1018 <exists>src/main/yang</exists>
1024 <groupId>org.opendaylight.yangtools</groupId>
1025 <artifactId>yang-maven-plugin</artifactId>
1026 <version>2.1.8</version>
1029 <groupId>org.opendaylight.mdsal</groupId>
1030 <artifactId>maven-sal-api-gen-plugin</artifactId>
1031 <version>${odl.mdsal.model.version}</version>
1035 <groupId>org.opendaylight.netconf</groupId>
1036 <artifactId>sal-rest-docgen-maven</artifactId>
1037 <version>${odl.netconf.sal.rest.docgen.version}</version>
1045 <goal>generate-sources</goal>
1048 <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
1051 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
1052 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
1055 <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
1056 <outputBaseDir>target/swagger</outputBaseDir>
1059 <inspectDependencies>true</inspectDependencies>