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>
6 <groupId>org.springframework.boot</groupId>
7 <artifactId>spring-boot-starter-parent</artifactId>
8 <version>2.1.8.RELEASE</version>
12 <groupId>org.onap.ccsdk.parent</groupId>
13 <artifactId>spring-boot-starter-parent</artifactId>
14 <version>1.5.2-SNAPSHOT</version>
15 <packaging>pom</packaging>
17 <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
18 <description>Root POM to be used in place of odlparent for CCSDK based projects</description>
19 <url>http://wiki.onap.org</url>
26 <url>https://jira.onap.org/</url>
28 <distributionManagement>
30 <id>ecomp-releases</id>
31 <url>https://nexus.onap.org/content/repositories/releases</url>
34 <id>ecomp-snapshots</id>
35 <url>https://nexus.onap.org/content/repositories/snapshots</url>
37 </distributionManagement>
40 <!-- Sonar properties -->
41 <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
42 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
43 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
44 <!-- Default Sonar configuration -->
45 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml,${project.reporting.outputDirectory}/jacoco-it/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
46 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
47 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
49 <!-- Jacoco properties -->
50 <jacoco.version>0.8.5</jacoco.version>
51 <!-- properties from oparent -->
52 <maven.compiler.source>1.8</maven.compiler.source>
53 <maven.compiler.target>1.8</maven.compiler.target>
54 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
55 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
56 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
57 <!-- sitePath may be overridden in the inheriting POM if desired -->
58 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
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 <java.version.source>1.8</java.version.source>
78 <java.version.target>1.8</java.version.target>
79 <bundle.plugin.version>2.5.0</bundle.plugin.version>
80 <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
81 <features.file>features.xml</features.file>
82 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
83 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
84 <checkstyle.skip>true</checkstyle.skip>
86 <!-- CCSDK component versions -->
87 <ccsdk.cds.version>0.7.0-SNAPSHOT</ccsdk.cds.version>
88 <ccsdk.sli.core.version>0.7.0-SNAPSHOT</ccsdk.sli.core.version>
89 <ccsdk.sli.adaptors.version>0.7.0-SNAPSHOT</ccsdk.sli.adaptors.version>
90 <ccsdk.sli.northbound.version>0.7.0-SNAPSHOT</ccsdk.sli.northbound.version>
91 <ccsdk.sli.plugins.version>0.7.0-SNAPSHOT</ccsdk.sli.plugins.version>
92 <ccsdk.distribution.version>0.7.0-SNAPSHOT</ccsdk.distribution.version>
93 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
94 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
95 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
96 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
97 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
99 <!-- Spring versions -->
100 <spring.boot.version>2.1.8.RELEASE</spring.boot.version>
101 <spring.version>5.1.9.RELEASE</spring.version>
103 <!-- Kotlin versions -->
104 <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
105 <kotlin.version>1.3.50</kotlin.version>
106 <kotlin.maven.version>1.3.50</kotlin.maven.version>
107 <kotlin.couroutines.version>1.3.2</kotlin.couroutines.version>
108 <kotlinpoet.version>1.4.4</kotlinpoet.version>
109 <kroto-plus.version>0.5.0</kroto-plus.version>
110 <mockk.version>1.9.3</mockk.version>
112 <apache.httpcomponents.core.version>4.4.12</apache.httpcomponents.core.version>
113 <apache.httpcomponents.client.version>4.5.10</apache.httpcomponents.client.version>
114 <derby.version>10.14.2.0</derby.version>
115 <eelf.version>1.0.0</eelf.version>
116 <grpc.version>1.25.0</grpc.version>
117 <protobuff.java.version>3.10.0</protobuff.java.version>
118 <protobuff.java.utils.version>3.10.0</protobuff.java.utils.version>
119 <atomix.version>3.1.5</atomix.version>
120 <jersey.version>2.25.1</jersey.version>
121 <jettison.version>1.3.8</jettison.version>
122 <junit.version>4.12</junit.version>
123 <logback.version>1.2.3</logback.version>
124 <mariadb.connector.version>2.4.4</mariadb.connector.version>
125 <mariadb4j.version>2.4.0</mariadb4j.version>
126 <slf4j.version>1.7.25</slf4j.version>
127 <testng.version>6.11</testng.version>
128 <tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
129 <dependency-list.file>direct-dependencies.txt</dependency-list.file>
132 <dependencyManagement>
135 <groupId>org.onap.ccsdk.parent</groupId>
136 <artifactId>dependencies-bom</artifactId>
137 <version>1.5.2-SNAPSHOT</version>
139 <scope>import</scope>
142 <groupId>org.onap.ccsdk.sli.core</groupId>
143 <artifactId>sli-common</artifactId>
144 <version>${ccsdk.sli.core.version}</version>
148 <groupId>org.onap.ccsdk.sli.core</groupId>
149 <artifactId>sli-provider</artifactId>
150 <version>${ccsdk.sli.core.version}</version>
153 <groupId>org.onap.ccsdk.sli.core</groupId>
154 <artifactId>ccsdk-sli</artifactId>
155 <version>${ccsdk.sli.core.version}</version>
157 <classifier>features</classifier>
160 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
161 <artifactId>aai-service-provider</artifactId>
162 <version>${sdnctl.aai.service.version}</version>
166 <groupId>org.onap.ccsdk.sli.core</groupId>
167 <artifactId>dblib-provider</artifactId>
168 <version>${sdnctl.dblib.version}</version>
171 <groupId>junit</groupId>
172 <artifactId>junit</artifactId>
173 <version>${junit.version}</version>
178 </dependencyManagement>
183 <url>https://nexus.onap.org/content/groups/public</url>
185 <enabled>true</enabled>
186 <updatePolicy>never</updatePolicy>
189 <enabled>true</enabled>
190 <updatePolicy>always</updatePolicy>
194 <id>onap-staging</id>
195 <url>https://nexus.onap.org/content/groups/staging</url>
197 <enabled>true</enabled>
198 <updatePolicy>never</updatePolicy>
201 <enabled>true</enabled>
202 <updatePolicy>always</updatePolicy>
206 <id>ecomp-release</id>
207 <name>onap-repository-releases</name>
208 <url>https://nexus.onap.org/content/repositories/releases</url>
210 <enabled>true</enabled>
211 <updatePolicy>never</updatePolicy>
214 <enabled>false</enabled>
218 <id>ecomp-snapshot</id>
219 <name>onap-repository-snapshots</name>
220 <url>https://nexus.onap.org/content/repositories/snapshots</url>
222 <enabled>false</enabled>
225 <enabled>true</enabled>
229 <id>opendaylight-mirror</id>
230 <name>opendaylight-mirror</name>
231 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
233 <enabled>true</enabled>
234 <updatePolicy>never</updatePolicy>
237 <enabled>false</enabled>
241 <id>opendaylight-snapshot</id>
242 <name>opendaylight-snapshot</name>
243 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
245 <enabled>false</enabled>
248 <enabled>true</enabled>
256 <url>${onap.nexus.public-url}</url>
258 <enabled>true</enabled>
261 <enabled>true</enabled>
265 <id>onap-staging</id>
266 <url>${onap.nexus.staging-url}</url>
268 <enabled>true</enabled>
271 <enabled>true</enabled>
275 <id>onap-snapshot</id>
276 <url>${onap.nexus.snapshot-url}</url>
278 <enabled>false</enabled>
281 <enabled>true</enabled>
285 <id>opendaylight-mirror</id>
286 <name>opendaylight-mirror</name>
287 <url>${opendaylight.nexus.public-url}</url>
289 <enabled>true</enabled>
290 <updatePolicy>never</updatePolicy>
293 <enabled>false</enabled>
297 <id>opendaylight-snapshot</id>
298 <name>opendaylight-snapshot</name>
299 <url>${opendaylight.nexus.snapshot-url}</url>
301 <enabled>false</enabled>
304 <enabled>true</enabled>
307 <!-- Black Duck plugin dependencies -->
310 <name>JCenter Repository</name>
311 <url>http://jcenter.bintray.com</url>
316 <name>Restlet Repository</name>
317 <url>http://maven.restlet.com</url>
319 </pluginRepositories>
325 <!-- Plugins from ONAP oparent -->
327 <groupId>org.apache.maven.plugins</groupId>
328 <artifactId>maven-deploy-plugin</artifactId>
329 <!-- This version supports the "deployAtEnd" parameter -->
330 <version>2.8</version>
337 <groupId>org.apache.maven.plugins</groupId>
338 <artifactId>maven-site-plugin</artifactId>
339 <version>3.6</version>
342 <groupId>org.apache.maven.wagon</groupId>
343 <artifactId>wagon-webdav-jackrabbit</artifactId>
344 <version>2.10</version>
347 <groupId>org.apache.maven.doxia</groupId>
348 <artifactId>doxia-core</artifactId>
349 <version>1.7</version>
352 <groupId>org.apache.maven.doxia</groupId>
353 <artifactId>doxia-sink-api</artifactId>
354 <version>1.7</version>
357 <groupId>org.apache.maven.doxia</groupId>
358 <artifactId>doxia-logging-api</artifactId>
359 <version>1.7</version>
364 <id>attach-descriptor</id>
366 <goal>attach-descriptor</goal>
372 <artifactId>maven-checkstyle-plugin</artifactId>
373 <version>2.17</version>
376 <groupId>org.onap.oparent</groupId>
377 <artifactId>checkstyle</artifactId>
378 <version>1.1.1</version>
383 <id>check-license</id>
387 <phase>process-sources</phase>
389 <configLocation>onap-checkstyle/check-license.xml</configLocation>
390 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
391 <includeResources>false</includeResources>
392 <includeTestSourceDirectory>true</includeTestSourceDirectory>
393 <includeTestResources>false</includeTestResources>
394 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
397 <failsOnError>false</failsOnError>
398 <consoleOutput>true</consoleOutput>
406 <phase>process-sources</phase>
408 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
409 with minor changes -->
410 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
411 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated
412 sources directory -->
413 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
414 <includeResources>true</includeResources>
415 <includeTestSourceDirectory>true</includeTestSourceDirectory>
416 <includeTestResources>true</includeTestResources>
419 <failsOnError>false</failsOnError>
420 <consoleOutput>true</consoleOutput>
427 <groupId>org.apache.maven.plugins</groupId>
428 <artifactId>maven-surefire-plugin</artifactId>
429 <version>2.19.1</version>
431 <!-- Sets the VM argument line used when unit tests are run. -->
432 <argLine>${surefireArgLine}</argLine>
433 <!-- Excludes integration tests when unit tests are run. -->
435 <exclude>**/IT*.java</exclude>
440 <groupId>org.apache.maven.plugins</groupId>
441 <artifactId>maven-failsafe-plugin</artifactId>
442 <version>2.19.1</version>
444 <!-- Ensures that both integration-test and verify goals of the Failsafe
445 Maven plugin are executed. -->
447 <id>integration-tests</id>
449 <goal>integration-test</goal>
453 <!-- Sets the VM argument line used when integration tests are run. -->
454 <argLine>${failsafeArgLine}</argLine>
460 <groupId>org.apache.maven.plugins</groupId>
461 <artifactId>maven-compiler-plugin</artifactId>
462 <version>${maven.compile.plugin.version}</version>
464 <source>${java.version.source}</source>
465 <target>${java.version.target}</target>
469 <groupId>org.sonarsource.scanner.maven</groupId>
470 <artifactId>sonar-maven-plugin</artifactId>
471 <version>3.6.0.1398</version>
474 <!-- End of plugins from ONAP oparent -->
477 <groupId>org.apache.maven.plugins</groupId>
478 <artifactId>maven-javadoc-plugin</artifactId>
479 <version>2.10</version>
481 <additionalDependencies>
482 <additionalDependency>
483 <groupId>org.slf4j</groupId>
484 <artifactId>slf4j-api</artifactId>
485 <version>${slf4j.version}</version>
486 </additionalDependency>
487 <additionalDependency>
488 <groupId>org.antlr</groupId>
489 <artifactId>antlr4</artifactId>
490 <version>${antlr.version}</version>
491 </additionalDependency>
492 <additionalDependency>
493 <groupId>org.antlr</groupId>
494 <artifactId>antlr4-runtime</artifactId>
495 <version>${antlr.version}</version>
496 </additionalDependency>
498 <additionalDependency>
499 <groupId>com.sun.jersey</groupId>
500 <artifactId>jersey-client</artifactId>
501 <version>${jersey.client.version}</version>
502 </additionalDependency>
503 <additionalDependency>
504 <groupId>com.sun.jersey</groupId>
505 <artifactId>jersey-core</artifactId>
506 <version>${jersey.version}</version>
507 </additionalDependency>
508 <additionalDependency>
509 <groupId>org.apache.httpcomponents</groupId>
510 <artifactId>httpcore-osgi</artifactId>
511 <version>${apache.httpcomponents.core.version}</version>
512 </additionalDependency>
513 <additionalDependency>
514 <groupId>org.apache.httpcomponents</groupId>
515 <artifactId>httpclient-osgi</artifactId>
516 <version>${apache.httpcomponents.client.version}</version>
517 </additionalDependency>
518 <additionalDependency>
519 <groupId>commons-lang</groupId>
520 <artifactId>commons-lang</artifactId>
521 <version>${commons.lang.version}</version>
522 </additionalDependency>
523 </additionalDependencies>
530 <goal>aggregate</goal>
538 <groupId>com.github.ferstl</groupId>
539 <artifactId>depgraph-maven-plugin</artifactId>
540 <version>3.3.0</version>
542 <graphFormat>text</graphFormat>
543 <outputFileName>${dependency-list.file}</outputFileName>
544 <outputDirectory>${project.basedir}</outputDirectory>
545 <transitiveExcludes>*</transitiveExcludes>
546 <showVersions>true</showVersions>
547 <showGroupIds>true</showGroupIds>
554 <!-- Plugins from ONAP oparent -->
555 <!-- Jacoco / Sonar -->
557 <groupId>org.jacoco</groupId>
558 <artifactId>jacoco-maven-plugin</artifactId>
559 <version>${jacoco.version}</version>
562 <id>pre-unit-test</id>
564 <goal>prepare-agent</goal>
567 <!-- Sets the path to the file which contains the execution data. -->
568 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
569 <!-- Sets the name of the property containing the settings for JaCoCo
571 <propertyName>surefireArgLine</propertyName>
574 <!-- Ensures that the code coverage report for unit tests is created
575 after unit tests have been run. -->
577 <id>post-unit-test</id>
583 <!-- Sets the path to the file which contains the execution data. -->
584 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
585 <!-- Sets the output directory for the code coverage report. -->
586 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
590 <id>pre-integration-test</id>
591 <phase>pre-integration-test</phase>
593 <goal>prepare-agent</goal>
596 <!-- Sets the path to the file which contains the execution data. -->
597 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
598 <!-- Sets the name of the property containing the settings for JaCoCo
600 <propertyName>failsafeArgLine</propertyName>
603 <!-- Ensures that the code coverage report for integration tests after
604 integration tests have been run. -->
606 <id>post-integration-test</id>
607 <phase>post-integration-test</phase>
612 <!-- Sets the path to the file which contains the execution data. -->
613 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
614 <!-- Sets the output directory for the code coverage report. -->
615 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
619 <id>default-prepare-agent</id>
621 <goal>prepare-agent</goal>
625 <id>default-report</id>
626 <phase>prepare-package</phase>
632 <id>default-check</id>
639 <element>PACKAGE</element>
642 <counter>COMPLEXITY</counter>
643 <value>COVEREDRATIO</value>
644 <minimum>0.0</minimum>
654 <artifactId>maven-checkstyle-plugin</artifactId>
657 <groupId>org.codehaus.mojo</groupId>
658 <artifactId>build-helper-maven-plugin</artifactId>
659 <version>1.12</version>
661 <!-- Jacoco / Sonar -->
663 <groupId>org.jacoco</groupId>
664 <artifactId>jacoco-maven-plugin</artifactId>
667 <groupId>org.apache.maven.plugins</groupId>
668 <artifactId>maven-surefire-plugin</artifactId>
671 <groupId>org.apache.maven.plugins</groupId>
672 <artifactId>maven-failsafe-plugin</artifactId>
675 <!-- End of plugins from ONAP oparent -->
677 <groupId>org.codehaus.mojo</groupId>
678 <artifactId>properties-maven-plugin</artifactId>
679 <version>1.0.0</version>
683 <goal>set-system-properties</goal>
688 <name>maven.wagon.http.ssl.allowall</name>
689 <value>${ssl.allowall}</value>
692 <name>maven.wagon.http.ssl.insecure</name>
693 <value>${ssl.insecure}</value>
701 <groupId>org.codehaus.mojo</groupId>
702 <artifactId>versions-maven-plugin</artifactId>
703 <version>2.5</version>
705 <processAllModules>true</processAllModules>
709 <artifactId>maven-scm-plugin</artifactId>
710 <version>1.8.1</version>
712 <tag>${project.artifactId}-${project.version}</tag>
721 <artifactId>maven-javadoc-plugin</artifactId>
722 <version>2.10.4</version>
724 <failOnError>false</failOnError>
725 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
727 <groupId>org.umlgraph</groupId>
728 <artifactId>umlgraph</artifactId>
729 <version>5.6</version>
731 <additionalparam>-views</additionalparam>
732 <useStandardDocletOptions>true</useStandardDocletOptions>
733 <excludePackageNames>org.opendaylight.*</excludePackageNames>
738 <report>javadoc-no-fork</report>
739 <report>test-javadoc-no-fork</report>
745 <report>aggregate</report>
746 <report>test-aggregate</report>
752 <groupId>org.apache.maven.plugins</groupId>
753 <artifactId>maven-jxr-plugin</artifactId>
754 <version>2.3</version>
759 <report>aggregate</report>
760 <report>test-aggregate</report>
767 <artifactId>maven-surefire-plugin</artifactId>
768 <version>2.17</version>
771 <groupId>org.apache.maven.plugins</groupId>
772 <artifactId>maven-changelog-plugin</artifactId>
773 <version>2.3</version>
782 <report>changelog</report>
783 <report>file-activity</report>
789 <groupId>org.codehaus.mojo</groupId>
790 <artifactId>taglist-maven-plugin</artifactId>
791 <version>2.4</version>
797 <!-- Profiles from ONAP oparent -->
799 <id>generate-json</id>
802 <exists>${swagger-properties}</exists>
805 <name>swagger-sdk.generate-json</name>
811 <groupId>org.codehaus.mojo</groupId>
812 <artifactId>properties-maven-plugin</artifactId>
813 <version>1.0.0</version>
816 <phase>initialize</phase>
818 <goal>read-project-properties</goal>
822 <file>${basedir}/src/main/resources/swagger.properties</file>
829 <groupId>com.github.kongchen</groupId>
830 <artifactId>swagger-maven-plugin</artifactId>
831 <version>3.1.4</version>
835 <locations>${api-rest-package}</locations>
836 <schemes>http,https</schemes>
837 <host>${api-host-ip}:${api-host-port}</host>
838 <basePath>${api-base-path}</basePath>
840 <title>${api-title}</title>
841 <version>${api-version}</version>
842 <description>${api-description}</description>
844 <name>${api-license}</name>
847 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
853 <phase>compile</phase>
855 <goal>generate</goal>
861 <groupId>org.apache.maven.plugins</groupId>
862 <artifactId>maven-install-plugin</artifactId>
863 <version>2.3.1</version>
866 <id>install-file-id</id>
867 <phase>install</phase>
869 <goal>install-file</goal>
872 <file>${basedir}/src/main/resources/swagger.json</file>
873 <groupId>${project.groupId}</groupId>
874 <artifactId>${project.artifactId}-swagger-schema</artifactId>
875 <version>${project.version}</version>
876 <packaging>json</packaging>
885 <id>generate-sdk</id>
888 <exists>${swagger-json}</exists>
891 <name>swagger-sdk.generate-java-sdk</name>
897 <groupId>org.apache.maven.plugins</groupId>
898 <artifactId>maven-antrun-plugin</artifactId>
899 <version>1.8</version>
902 <phase>initialize</phase>
903 <id>ant-create-script</id>
905 <exportAntProperties>true</exportAntProperties>
908 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
909 <condition property="is_windows" value="true">
910 <os family="windows"/>
912 <condition property="isLinux" value="true">
916 <equals arg1="${is_windows}" arg2="true"/>
918 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
919 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
920 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
923 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
924 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
925 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
926 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
938 <groupId>ant-contrib</groupId>
939 <artifactId>ant-contrib</artifactId>
940 <version>1.0b3</version>
943 <groupId>ant</groupId>
944 <artifactId>ant</artifactId>
951 <groupId>io.swagger</groupId>
952 <artifactId>swagger-codegen-maven-plugin</artifactId>
953 <version>2.2.1</version>
957 <goal>generate</goal>
960 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
961 <output>${project.build.directory}/generated-sources</output>
962 <language>java</language>
964 <dateLibrary>joda</dateLibrary>
966 <library>jersey2</library>
967 <groupId>${project.groupId}</groupId>
968 <artifactId>${project.artifactId}-java-sdk</artifactId>
969 <artifactVersion>${project.version}</artifactVersion>
970 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
971 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
972 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
978 <groupId>org.codehaus.mojo</groupId>
979 <artifactId>exec-maven-plugin</artifactId>
980 <version>1.5.0</version>
983 <id>swagger-generate-sources</id>
984 <phase>generate-sources</phase>
989 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
995 <groupId>org.apache.maven.plugins</groupId>
996 <artifactId>maven-clean-plugin</artifactId>
997 <version>3.0.0</version>
1000 <id>clean-generated-files</id>
1001 <phase>generate-sources</phase>
1008 <directory>${project.build.directory}/generated-sources</directory>
1019 <groupId>org.onap.msb.swagger-sdk</groupId>
1020 <artifactId>swagger-sdk</artifactId>
1021 <version>1.0.0</version>
1026 <!-- http://blog2.vorburger.ch/2016/06/improve-maven-build-speed-with-q.html
1027 q = http://memory-alpha.wikia.com/wiki/Q ;)
1029 The Quick profile is used during incremental local development, when you want to "just get that JAR built",
1030 which is very handy e.g. for fast hot reloading cycles in Karaf with bundle watch. It (intentionally!) skips
1031 tests, quality checks etc. which are great and useful to run before finally submitting changes to Gerrit, and
1032 which all must run on Gerrit, but which are overhead during ongoing fast iterative local development.
1034 Note that the idea here is that your IDE will already have run quality checks such as e.g. Checkstyle
1035 while you typed the code anyway. Similarly, if you wrote a test, you'll probably already have compiled and run it
1036 from your IDE, so when you want the OSGi bundle JAR for Karaf, ASAP, you typically don't want all that to run again.
1040 <skipTests>true</skipTests>
1041 <!-- But NOT <maven.test.skip>true, as that's for compiling, not running, tests;
1042 and that's usually quick. Skipping test compilation with -Pq with maven.test.skip would be
1043 particularly confusing when used in a project with maven-jar-plugin <goal>test-jar, so don't.) -->
1044 <skipIT>true</skipIT>
1045 <skipITs>true</skipITs>
1046 <skip.karaf.featureTest>true</skip.karaf.featureTest>
1047 <jacoco.skip>true</jacoco.skip>
1048 <maven.javadoc.skip>true</maven.javadoc.skip>
1049 <maven.source.skip>true</maven.source.skip>
1050 <checkstyle.skip>true</checkstyle.skip>
1051 <findbugs.skip>true</findbugs.skip>
1052 <spotbugs.skip>true</spotbugs.skip>
1053 <pmd.skip>true</pmd.skip>
1054 <cpd.skip>true</cpd.skip>
1055 <maven.site.skip>true</maven.site.skip>
1056 <invoker.skip>true</invoker.skip>
1057 <enforcer.skip>true</enforcer.skip>
1058 <duplicate-finder.skip>true</duplicate-finder.skip>
1059 <mdsal.skip.verbose>true</mdsal.skip.verbose> <!-- Bug 6236 -->
1060 <maven.gitcommitid.skip>true</maven.gitcommitid.skip>
1061 <modernizer.skip>true</modernizer.skip>
1062 <format.skipExecute>true</format.skipExecute>
1063 <format.skipValidate>true</format.skipValidate>
1067 <id>sonar-jacoco-aggregate</id>
1070 <name>onap.jacoco.aggregateFile</name>
1076 <groupId>org.jacoco</groupId>
1077 <artifactId>jacoco-maven-plugin</artifactId>
1084 <phase>generate-resources</phase>
1086 <destFile>${onap.jacoco.aggregateFile}</destFile>
1089 <directory>${project.basedir}</directory>
1091 <include>**/target/code-coverage/*.exec</include>
1102 <!-- End of profiles from ONAP oparent -->