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>karaf4-parent</artifactId>
11 <version>4.0.10</version>
15 <groupId>org.onap.ccsdk.parent</groupId>
16 <artifactId>karaf4-parent</artifactId>
17 <version>1.5.9-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.4-SNAPSHOT</ccsdk.cds.version>
100 <ccsdk.features.version>0.7.6-SNAPSHOT</ccsdk.features.version>
101 <ccsdk.sli.core.version>0.7.2</ccsdk.sli.core.version>
102 <ccsdk.sli.adaptors.version>0.7.3</ccsdk.sli.adaptors.version>
103 <ccsdk.sli.northbound.version>0.7.4</ccsdk.sli.northbound.version>
104 <ccsdk.sli.plugins.version>0.7.3-SNAPSHOT</ccsdk.sli.plugins.version>
105 <ccsdk.distribution.version>0.7.4-SNAPSHOT</ccsdk.distribution.version>
106 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
107 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
108 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
109 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
110 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
112 <!-- Support libraries used by OpenDaylight -->
113 <odl.controller.mdsal.version>1.9.1</odl.controller.mdsal.version>
114 <odl.mdsal.version>3.0.8</odl.mdsal.version>
115 <odl.mdsal.model.version>1.0.8</odl.mdsal.model.version>
116 <odl.netconf.restconf.version>1.9.1</odl.netconf.restconf.version>
117 <odl.netconf.netconf.version>1.6.1</odl.netconf.netconf.version>
118 <odl.netconf.sal.rest.docgen.version>1.9.1</odl.netconf.sal.rest.docgen.version>
120 <!-- Used by aaa, vtn -->
121 <commons.codec.version>1.12</commons.codec.version>
122 <!-- Used by netconf, ovsdb -->
123 <commons.lang3.version>3.8.1</commons.lang3.version>
124 <!-- Used by sfc, snmp4sdn; see also affinity, toolkit -->
125 <commons.lang.version>2.6</commons.lang.version>
126 <!-- Used by neutron; see also controller, vtn -->
127 <commons.net.version>3.6</commons.net.version>
128 <!-- Used by neutron -->
129 <eclipse.persistence.version>2.7.3</eclipse.persistence.version>
131 <felix.dependencymanager.version>4.4.1</felix.dependencymanager.version>
132 <!-- Used by lacp, netconf, ovsdb, sfc, toolkit; see also vtn -->
133 <gson.version>2.8.5</gson.version>
134 <!-- Used by aaa, dlux, persistence, snmp4sdn, sxp -->
135 <guava.version>25.1-jre</guava.version>
136 <!-- Used by aaa, alto, netconf, ovsdb, sfc; see also affinity, defense4all,
137 integration/distribution, snmp4sdn, toolkit, ttp -->
138 <jackson.version>2.9.8</jackson.version>
139 <!-- Used by snmp4sdn, yangtools -->
140 <javassist.version>3.24.1-GA</javassist.version>
142 <!-- FIXME remove all dependencies for jersey 1.17 after migration all projects -->
143 <!-- Used by aaa, alto, netconf, neutron, sfc; see also affinity, defense4all, snmp4sdn, toolkit -->
144 <jersey.version>2.25.1</jersey.version>
146 <jersey.client.version>2.25.1</jersey.client.version>
148 <!-- New packages for jersey migration 1.17 to 2.8 -->
149 <!-- appache.geronimo.bundle for DocGen -->
150 <!-- Used by aaa, iotdm, netconf, ovsdb, sfc -->
151 <org.json.version>20131018</org.json.version>
153 <!-- Used everywhere -->
154 <junit.version>4.12</junit.version>
155 <!-- Used by coretutorials, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
156 <logback.version>1.2.3</logback.version>
157 <!-- Used by nic, sfc, sxp, tsdr -->
158 <mockito.version>1.10.19</mockito.version>
159 <!-- Used by bgpcep, netconf, ovsdb, sxp; see also opendove, toolkit -->
160 <netty.version>4.1.34.Final</netty.version>
161 <!-- Used by openflowjava, persistence, sfc, snmp4sdn, sxp; see also affinity, toolkit -->
162 <slf4j.version>1.7.25</slf4j.version>
163 <!-- Used in integration/distribution; see also affinity, snmp4sdn, toolkit, tsdr, ttp -->
164 <spring.version>4.3.25.RELEASE</spring.version>
166 <!-- Extra support libraries used by SDN-C -->
167 <jvnet.jaxb2.version>0.6.4</jvnet.jaxb2.version>
168 <antlr.version>4.7.2</antlr.version>
170 <eelf.maven.plugin.version>1.0.0</eelf.maven.plugin.version>
172 <!-- Managed dependency versions -->
173 <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
174 <apache.httpcomponents.client.version>4.5.10</apache.httpcomponents.client.version>
175 <derby.version>10.14.2.0</derby.version>
176 <eelf.version>1.0.0</eelf.version>
177 <grpc.version>1.21.1</grpc.version>
178 <mariadb.connector.version>2.4.4</mariadb.connector.version>
179 <mariadb4j.version>2.4.0</mariadb4j.version>
180 <testng.version>6.14.3</testng.version>
181 <tomcat-jdbc.version>9.0.30</tomcat-jdbc.version>
182 <jetty.version>9.4.12.v20180830</jetty.version>
183 <skip.karaf.featureTest>true</skip.karaf.featureTest>
184 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
187 <dependencyManagement>
189 <!-- Note: If value in BOM conflicts with value inherited from
190 parent pom, inherited value takes precedence. This seems more like
191 a bug than a feature, but this is how maven 3.6 works -->
193 <groupId>org.onap.ccsdk.parent</groupId>
194 <artifactId>dependencies-odl-bom</artifactId>
195 <version>1.5.9-SNAPSHOT</version>
197 <scope>import</scope>
200 <groupId>org.onap.logging-analytics</groupId>
201 <artifactId>logging-slf4j</artifactId>
202 <version>${logging-analytics.version}</version>
205 <groupId>org.onap.logging-analytics</groupId>
206 <artifactId>logging-filter-base</artifactId>
207 <version>${logging-analytics.version}</version>
210 <groupId>junit</groupId>
211 <artifactId>junit</artifactId>
212 <version>${junit.version}</version>
216 </dependencyManagement>
221 <url>${onap.nexus.public-url}</url>
223 <enabled>true</enabled>
224 <updatePolicy>never</updatePolicy>
227 <enabled>true</enabled>
228 <updatePolicy>always</updatePolicy>
232 <id>onap-staging</id>
233 <url>${onap.nexus.staging-url}</url>
235 <enabled>true</enabled>
236 <updatePolicy>never</updatePolicy>
239 <enabled>true</enabled>
240 <updatePolicy>always</updatePolicy>
244 <id>ecomp-release</id>
245 <name>onap-repository-releases</name>
246 <url>${onap.nexus.release-url}</url>
248 <enabled>true</enabled>
249 <updatePolicy>never</updatePolicy>
252 <enabled>false</enabled>
256 <id>ecomp-snapshot</id>
257 <name>onap-repository-snapshots</name>
258 <url>${onap.nexus.snapshot-url}</url>
260 <enabled>false</enabled>
263 <enabled>true</enabled>
267 <id>opendaylight-mirror</id>
268 <name>opendaylight-mirror</name>
269 <url>${opendaylight.nexus.public-url}</url>
271 <enabled>true</enabled>
272 <updatePolicy>never</updatePolicy>
275 <enabled>false</enabled>
279 <id>opendaylight-snapshot</id>
280 <name>opendaylight-snapshot</name>
281 <url>${opendaylight.nexus.snapshot-url}</url>
283 <enabled>false</enabled>
286 <enabled>true</enabled>
294 <url>${onap.nexus.public-url}</url>
296 <enabled>true</enabled>
299 <enabled>true</enabled>
303 <id>onap-staging</id>
304 <url>${onap.nexus.staging-url}</url>
306 <enabled>true</enabled>
309 <enabled>true</enabled>
313 <id>onap-snapshot</id>
314 <url>${onap.nexus.snapshot-url}</url>
316 <enabled>false</enabled>
319 <enabled>true</enabled>
323 <id>opendaylight-mirror</id>
324 <name>opendaylight-mirror</name>
325 <url>${opendaylight.nexus.public-url}</url>
327 <enabled>true</enabled>
328 <updatePolicy>never</updatePolicy>
331 <enabled>false</enabled>
335 <id>opendaylight-snapshot</id>
336 <name>opendaylight-snapshot</name>
337 <url>${opendaylight.nexus.snapshot-url}</url>
339 <enabled>false</enabled>
342 <enabled>true</enabled>
345 <!-- Black Duck plugin dependencies -->
348 <name>JCenter Repository</name>
349 <url>http://jcenter.bintray.com</url>
354 <name>Restlet Repository</name>
355 <url>http://maven.restlet.com</url>
357 </pluginRepositories>
362 <!-- Plugins from ONAP version (parent of oparent) -->
364 <groupId>org.apache.maven.plugins</groupId>
365 <artifactId>maven-deploy-plugin</artifactId>
366 <!-- This version supports the "deployAtEnd" parameter -->
367 <version>2.8</version>
373 <groupId>org.apache.maven.plugins</groupId>
374 <artifactId>maven-site-plugin</artifactId>
375 <version>3.6</version>
378 <groupId>org.apache.maven.wagon</groupId>
379 <artifactId>wagon-webdav-jackrabbit</artifactId>
380 <version>2.10</version>
385 <groupId>org.apache.maven.plugins</groupId>
386 <artifactId>maven-enforcer-plugin</artifactId>
387 <version>3.0.0-M2</version>
390 <id>enforce-property</id>
397 <property>onap.nexus.url</property>
398 <message>You must set a onap.nexus.url property in your
399 ~/.m2/settings.xml. See oparent/settings.xml for an example.
407 <id>enforce-no-snapshots</id>
414 <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
415 <onlyWhenRelease>true</onlyWhenRelease>
417 </requireReleaseDeps>
423 <!-- https://mvnrepository.com/artifact/org.sonarsource.scanner.maven/sonar-maven-plugin -->
425 <groupId>org.sonarsource.scanner.maven</groupId>
426 <artifactId>sonar-maven-plugin</artifactId>
427 <version>${sonar.scanner.version}</version>
429 <!-- end of plugins from ONAP version (parent of oparent) -->
431 <!-- Plugins from ONAP oparent -->
433 <groupId>org.apache.maven.plugins</groupId>
434 <artifactId>maven-surefire-plugin</artifactId>
435 <version>2.22.0</version>
437 <!-- Sets the VM argument line used when unit tests are run. -->
438 <argLine>${surefireArgLine}</argLine>
439 <!-- Excludes integration tests when unit tests are run. -->
441 <exclude>**/IT*.java</exclude>
446 <groupId>org.apache.maven.plugins</groupId>
447 <artifactId>maven-failsafe-plugin</artifactId>
448 <version>2.22.0</version>
450 <!-- Ensures that both integration-test and verify goals of the Failsafe
451 Maven plugin are executed. -->
453 <id>integration-tests</id>
455 <goal>integration-test</goal>
459 <!-- Sets the VM argument line used when integration tests are run. -->
460 <argLine>${failsafeArgLine}</argLine>
466 <!-- End of plugins from ONAP oparent -->
468 <groupId>org.codehaus.mojo</groupId>
469 <artifactId>properties-maven-plugin</artifactId>
470 <version>1.0.0</version>
474 <goal>set-system-properties</goal>
479 <name>maven.wagon.http.ssl.allowall</name>
480 <value>${ssl.allowall}</value>
483 <name>maven.wagon.http.ssl.insecure</name>
484 <value>${ssl.insecure}</value>
493 <groupId>org.codehaus.mojo</groupId>
494 <artifactId>versions-maven-plugin</artifactId>
495 <version>2.5</version>
497 <processAllModules>true</processAllModules>
501 <artifactId>maven-scm-plugin</artifactId>
502 <version>1.8.1</version>
504 <tag>${project.artifactId}-${project.version}</tag>
508 <groupId>com.github.ferstl</groupId>
509 <artifactId>depgraph-maven-plugin</artifactId>
510 <version>3.3.0</version>
512 <graphFormat>text</graphFormat>
513 <outputFileName>${dependency-list.file}</outputFileName>
514 <outputDirectory>${project.basedir}</outputDirectory>
515 <transitiveExcludes>*</transitiveExcludes>
516 <showVersions>true</showVersions>
517 <showGroupIds>true</showGroupIds>
524 <!-- Plugins from oparent version (parent of oparent) -->
526 <groupId>org.apache.maven.plugins</groupId>
527 <artifactId>maven-deploy-plugin</artifactId>
530 <groupId>org.apache.maven.plugins</groupId>
531 <artifactId>maven-site-plugin</artifactId>
534 <groupId>org.apache.maven.plugins</groupId>
535 <artifactId>maven-enforcer-plugin</artifactId>
537 <!-- end of plugins from oparent version (parent of oparent) -->
539 <!-- Plugins from oparent -->
541 <artifactId>maven-checkstyle-plugin</artifactId>
542 <version>2.17</version>
545 <groupId>org.onap.oparent</groupId>
546 <artifactId>checkstyle</artifactId>
547 <version>1.2.2</version>
552 <id>onap-license</id>
556 <phase>process-sources</phase>
558 <configLocation>onap-checkstyle/check-license.xml</configLocation>
559 <includeResources>false</includeResources>
560 <includeTestSourceDirectory>true</includeTestSourceDirectory>
561 <includeTestResources>false</includeTestResources>
562 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
565 <consoleOutput>true</consoleOutput>
566 <failOnViolation>false</failOnViolation>
570 <id>onap-java-style</id>
574 <phase>process-sources</phase>
576 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
577 with minor changes -->
578 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
579 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
580 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
581 <includeResources>true</includeResources>
582 <includeTestSourceDirectory>true</includeTestSourceDirectory>
583 <includeTestResources>true</includeTestResources>
586 <consoleOutput>true</consoleOutput>
587 <failOnViolation>false</failOnViolation>
593 <groupId>org.codehaus.mojo</groupId>
594 <artifactId>build-helper-maven-plugin</artifactId>
595 <version>1.12</version>
597 <!-- Jacoco / Sonar -->
599 <groupId>org.jacoco</groupId>
600 <artifactId>jacoco-maven-plugin</artifactId>
601 <version>${jacoco.version}</version>
604 <id>pre-unit-test</id>
606 <goal>prepare-agent</goal>
609 <!-- Sets the path to the file which contains the execution data. -->
610 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
611 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
612 <propertyName>surefireArgLine</propertyName>
615 <!-- Ensures that the code coverage report for unit tests is created after unit tests have been run. -->
617 <id>post-unit-test</id>
623 <!-- Sets the path to the file which contains the execution data. -->
624 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
625 <!-- Sets the output directory for the code coverage report. -->
626 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
630 <id>pre-integration-test</id>
631 <phase>pre-integration-test</phase>
633 <goal>prepare-agent</goal>
636 <!-- Sets the path to the file which contains the execution data. -->
637 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
638 <!-- Sets the name of the property containing the settings for JaCoCo runtime agent. -->
639 <propertyName>failsafeArgLine</propertyName>
642 <!-- Ensures that the code coverage report for integration tests after integration tests have been run. -->
644 <id>post-integration-test</id>
645 <phase>post-integration-test</phase>
650 <!-- Sets the path to the file which contains the execution data. -->
651 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
652 <!-- Sets the output directory for the code coverage report. -->
653 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
657 <id>default-prepare-agent</id>
659 <goal>prepare-agent</goal>
663 <id>default-report</id>
664 <phase>prepare-package</phase>
670 <id>default-check</id>
677 <element>PACKAGE</element>
680 <counter>COMPLEXITY</counter>
681 <value>COVEREDRATIO</value>
682 <minimum>0.0</minimum>
692 <groupId>org.apache.maven.plugins</groupId>
693 <artifactId>maven-surefire-plugin</artifactId>
696 <groupId>org.apache.maven.plugins</groupId>
697 <artifactId>maven-failsafe-plugin</artifactId>
699 <!-- end of plugins from oparent -->
701 <groupId>org.apache.maven.plugins</groupId>
702 <artifactId>maven-javadoc-plugin</artifactId>
703 <version>2.10.4</version>
706 <id>attach-javadocs</id>
711 <additionalparam>-Xdoclint:none</additionalparam>
722 <artifactId>maven-javadoc-plugin</artifactId>
723 <version>2.10.4</version>
725 <failOnError>false</failOnError>
726 <additionalparam>-Xdoclint:none</additionalparam>
730 <groupId>org.jacoco</groupId>
731 <artifactId>jacoco-maven-plugin</artifactId>
732 <version>${jacoco.version}</version>
736 <!-- select non-aggregate reports -->
737 <report>report</report>
746 <!-- Profiles from ONAP oparent -->
748 <id>generate-json</id>
751 <exists>${swagger-properties}</exists>
754 <name>swagger-sdk.generate-json</name>
760 <groupId>org.codehaus.mojo</groupId>
761 <artifactId>properties-maven-plugin</artifactId>
762 <version>1.0.0</version>
765 <phase>initialize</phase>
767 <goal>read-project-properties</goal>
771 <file>${basedir}/src/main/resources/swagger.properties</file>
778 <groupId>com.github.kongchen</groupId>
779 <artifactId>swagger-maven-plugin</artifactId>
780 <version>3.1.4</version>
784 <locations>${api-rest-package}</locations>
785 <schemes>http,https</schemes>
786 <host>${api-host-ip}:${api-host-port}</host>
787 <basePath>${api-base-path}</basePath>
789 <title>${api-title}</title>
790 <version>${api-version}</version>
791 <description>${api-description}</description>
793 <name>${api-license}</name>
796 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
802 <phase>compile</phase>
804 <goal>generate</goal>
810 <groupId>org.apache.maven.plugins</groupId>
811 <artifactId>maven-install-plugin</artifactId>
812 <version>2.3.1</version>
815 <id>install-file-id</id>
816 <phase>install</phase>
818 <goal>install-file</goal>
821 <file>${basedir}/src/main/resources/swagger.json</file>
822 <groupId>${project.groupId}</groupId>
823 <artifactId>${project.artifactId}-swagger-schema</artifactId>
824 <version>${project.version}</version>
825 <packaging>json</packaging>
834 <id>generate-sdk</id>
837 <exists>${swagger-json}</exists>
840 <name>swagger-sdk.generate-java-sdk</name>
846 <groupId>org.apache.maven.plugins</groupId>
847 <artifactId>maven-antrun-plugin</artifactId>
848 <version>1.8</version>
851 <phase>initialize</phase>
852 <id>ant-create-script</id>
854 <exportAntProperties>true</exportAntProperties>
856 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
857 <condition property="is_windows" value="true">
858 <os family="windows"/>
860 <condition property="isLinux" value="true">
864 <equals arg1="${is_windows}" arg2="true"/>
866 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
867 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" 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.bat" append="true"
870 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
873 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
874 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
875 message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
876 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true"
877 message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
878 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
890 <groupId>ant-contrib</groupId>
891 <artifactId>ant-contrib</artifactId>
892 <version>1.0b3</version>
895 <groupId>ant</groupId>
896 <artifactId>ant</artifactId>
903 <groupId>io.swagger</groupId>
904 <artifactId>swagger-codegen-maven-plugin</artifactId>
905 <version>2.2.1</version>
909 <goal>generate</goal>
912 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
913 <output>${project.build.directory}/generated-sources</output>
914 <language>java</language>
916 <dateLibrary>joda</dateLibrary>
918 <library>jersey2</library>
919 <groupId>${project.groupId}</groupId>
920 <artifactId>${project.artifactId}-java-sdk</artifactId>
921 <artifactVersion>${project.version}</artifactVersion>
922 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
923 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
924 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
930 <groupId>org.codehaus.mojo</groupId>
931 <artifactId>exec-maven-plugin</artifactId>
932 <version>1.5.0</version>
935 <id>swagger-generate-sources</id>
936 <phase>generate-sources</phase>
941 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
947 <groupId>org.apache.maven.plugins</groupId>
948 <artifactId>maven-clean-plugin</artifactId>
949 <version>3.0.0</version>
952 <id>clean-generated-files</id>
953 <phase>generate-sources</phase>
960 <directory>${project.build.directory}/generated-sources</directory>
971 <groupId>org.onap.msb.swagger-sdk</groupId>
972 <artifactId>swagger-sdk</artifactId>
973 <version>1.0.0</version>
978 <id>sonar-jacoco-aggregate</id>
981 <name>onap.jacoco.aggregateFile</name>
987 <groupId>org.jacoco</groupId>
988 <artifactId>jacoco-maven-plugin</artifactId>
995 <phase>generate-resources</phase>
997 <destFile>${onap.jacoco.aggregateFile}</destFile>
1000 <directory>${project.basedir}</directory>
1002 <include>**/target/code-coverage/*.exec</include>
1013 <!-- End of profiles from ONAP oparent -->
1016 <id>yang-compile</id>
1019 <exists>src/main/yang</exists>
1025 <groupId>org.opendaylight.yangtools</groupId>
1026 <artifactId>yang-maven-plugin</artifactId>
1027 <version>2.1.8</version>
1030 <groupId>org.opendaylight.mdsal</groupId>
1031 <artifactId>maven-sal-api-gen-plugin</artifactId>
1032 <version>${odl.mdsal.model.version}</version>
1036 <groupId>org.opendaylight.netconf</groupId>
1037 <artifactId>sal-rest-docgen-maven</artifactId>
1038 <version>${odl.netconf.sal.rest.docgen.version}</version>
1046 <goal>generate-sources</goal>
1049 <yangFilesRootDir>${yang.file.directory}</yangFilesRootDir>
1052 <codeGeneratorClass>org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
1053 <outputBaseDir>${salGeneratorPath}</outputBaseDir>
1056 <codeGeneratorClass>org.opendaylight.netconf.sal.rest.doc.maven.StaticDocGenerator</codeGeneratorClass>
1057 <outputBaseDir>target/swagger</outputBaseDir>
1060 <inspectDependencies>true</inspectDependencies>