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.1-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 <!-- properties from oparent -->
41 <maven.compiler.source>1.8</maven.compiler.source>
42 <maven.compiler.target>1.8</maven.compiler.target>
43 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
44 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
45 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
46 <!-- sitePath may be overridden in the inheriting POM if desired -->
47 <sitePath>/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</sitePath>
48 <jacoco.version>0.7.7.201606060606</jacoco.version>
49 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
50 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
51 <!-- Default Sonar configuration -->
52 <sonar.jacoco.reportPaths>target/code-coverage/jacoco-ut.exec,target/code-coverage/jacoco-it.exec</sonar.jacoco.reportPaths>
53 <!-- Note: This list should match jacoco-maven-plugin's exclusion list
55 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
56 <!-- If following file exist, auto-generation of swagger.json will be done -->
57 <swagger-properties>${basedir}/src/main/resources/swagger.properties</swagger-properties>
58 <!-- If following file exist, auto-generation of sdk will be done -->
59 <swagger-json>${basedir}/src/main/resources/swagger.json</swagger-json>
60 <!-- end of properties from oparent -->
62 <!-- ONAP repositories -->
63 <onap.nexus.host>nexus.onap.org</onap.nexus.host>
64 <onap.nexus.port>443</onap.nexus.port>
65 <onap.nexus.protocol>https</onap.nexus.protocol>
66 <onap.nexus.public-url>https://nexus.onap.org/content/groups/public</onap.nexus.public-url>
67 <onap.nexus.staging-url>https://nexus.onap.org/content/groups/staging</onap.nexus.staging-url>
68 <onap.nexus.release-url>https://nexus.onap.org/content/repositories/releases</onap.nexus.release-url>
69 <onap.nexus.snapshot-url>https://nexus.onap.org/content/repositories/snapshots</onap.nexus.snapshot-url>
70 <onap.nexus.staging.server-id>ecomp-staging</onap.nexus.staging.server-id>
71 <onap.nexus.staging.profile-id>176c31dfe190a</onap.nexus.staging.profile-id>
73 <java.version.source>1.8</java.version.source>
74 <java.version.target>1.8</java.version.target>
75 <bundle.plugin.version>2.5.0</bundle.plugin.version>
76 <maven.compile.plugin.version>2.5.1</maven.compile.plugin.version>
77 <features.file>features.xml</features.file>
78 <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
79 <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
80 <checkstyle.skip>true</checkstyle.skip>
82 <sonar.language>java</sonar.language>
83 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
84 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
85 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
86 <sonar.projectVersion>${project.version}</sonar.projectVersion>
88 <!-- CCSDK component versions -->
89 <ccsdk.sli.core.version>0.7.0-SNAPSHOT</ccsdk.sli.core.version>
90 <ccsdk.sli.adaptors.version>0.7.0-SNAPSHOT</ccsdk.sli.adaptors.version>
91 <ccsdk.sli.northbound.version>0.7.0-SNAPSHOT</ccsdk.sli.northbound.version>
92 <ccsdk.sli.plugins.version>0.7.0-SNAPSHOT</ccsdk.sli.plugins.version>
93 <ccsdk.distribution.version>0.7.0-SNAPSHOT</ccsdk.distribution.version>
94 <sdnctl.sli.version>${ccsdk.sli.core.version}</sdnctl.sli.version>
95 <sdnctl.aai.service.version>${ccsdk.sli.adaptors.version}</sdnctl.aai.service.version>
96 <sdnctl.dblib.version>${ccsdk.sli.core.version}</sdnctl.dblib.version>
97 <sdnctl.mdsal.resource.version>${ccsdk.sli.adaptors.version}</sdnctl.mdsal.resource.version>
98 <sdnctl.slipluginutils.version>${ccsdk.sli.core.version}</sdnctl.slipluginutils.version>
100 <!-- Spring versions -->
101 <spring.boot.version>2.1.8.RELEASE</spring.boot.version>
102 <spring.version>5.1.9.RELEASE</spring.version>
104 <!-- Kotlin versions -->
105 <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
106 <kotlin.version>1.3.50</kotlin.version>
107 <kotlin.maven.version>1.3.50</kotlin.maven.version>
108 <kotlin.couroutines.version>1.3.2</kotlin.couroutines.version>
109 <kotlinpoet.version>1.3.0</kotlinpoet.version>
110 <kroto-plus.version>0.5.0</kroto-plus.version>
111 <mockk.version>1.9.3</mockk.version>
113 <apache.httpcomponents.core.version>4.4.4</apache.httpcomponents.core.version>
114 <apache.httpcomponents.client.version>4.5.2</apache.httpcomponents.client.version>
115 <derby.version>10.14.2.0</derby.version>
116 <eelf.version>1.0.0</eelf.version>
117 <grpc.version>1.25.0</grpc.version>
118 <protobuff.java.version>3.10.0</protobuff.java.version>
119 <protobuff.java.utils.version>3.10.0</protobuff.java.utils.version>
120 <atomix.version>3.1.5</atomix.version>
121 <jackson.bom.version>2.9.9.20190807</jackson.bom.version>
122 <jersey.version>2.25.1</jersey.version>
123 <jettison.version>1.3.8</jettison.version>
124 <junit.version>4.12</junit.version>
125 <logback.version>1.2.3</logback.version>
126 <mariadb.connector.version>2.1.1</mariadb.connector.version>
127 <mariadb4j.version>2.2.3</mariadb4j.version>
128 <slf4j.version>1.7.25</slf4j.version>
129 <testng.version>6.11</testng.version>
130 <tomcat-jdbc.version>9.0.27</tomcat-jdbc.version>
134 <dependencyManagement>
137 <groupId>org.onap.ccsdk.parent</groupId>
138 <artifactId>dependencies-bom</artifactId>
139 <version>1.5.1-SNAPSHOT</version>
141 <scope>import</scope>
144 <groupId>org.onap.ccsdk.sli.core</groupId>
145 <artifactId>sli-common</artifactId>
146 <version>${ccsdk.sli.core.version}</version>
150 <groupId>org.onap.ccsdk.sli.core</groupId>
151 <artifactId>sli-provider</artifactId>
152 <version>${ccsdk.sli.core.version}</version>
155 <groupId>org.onap.ccsdk.sli.core</groupId>
156 <artifactId>ccsdk-sli</artifactId>
157 <version>${ccsdk.sli.core.version}</version>
159 <classifier>features</classifier>
162 <groupId>org.onap.ccsdk.sli.adaptors</groupId>
163 <artifactId>aai-service-provider</artifactId>
164 <version>${sdnctl.aai.service.version}</version>
168 <groupId>org.onap.ccsdk.sli.core</groupId>
169 <artifactId>dblib-provider</artifactId>
170 <version>${sdnctl.dblib.version}</version>
173 <groupId>junit</groupId>
174 <artifactId>junit</artifactId>
175 <version>${junit.version}</version>
180 </dependencyManagement>
185 <url>https://nexus.onap.org/content/groups/public</url>
187 <enabled>true</enabled>
188 <updatePolicy>never</updatePolicy>
191 <enabled>true</enabled>
192 <updatePolicy>always</updatePolicy>
196 <id>onap-staging</id>
197 <url>https://nexus.onap.org/content/groups/staging</url>
199 <enabled>true</enabled>
200 <updatePolicy>never</updatePolicy>
203 <enabled>true</enabled>
204 <updatePolicy>always</updatePolicy>
208 <id>ecomp-release</id>
209 <name>onap-repository-releases</name>
210 <url>https://nexus.onap.org/content/repositories/releases</url>
212 <enabled>true</enabled>
213 <updatePolicy>never</updatePolicy>
216 <enabled>false</enabled>
220 <id>ecomp-snapshot</id>
221 <name>onap-repository-snapshots</name>
222 <url>https://nexus.onap.org/content/repositories/snapshots</url>
224 <enabled>false</enabled>
227 <enabled>true</enabled>
231 <id>opendaylight-mirror</id>
232 <name>opendaylight-mirror</name>
233 <url>https://nexus.opendaylight.org/content/repositories/public/</url>
235 <enabled>true</enabled>
236 <updatePolicy>never</updatePolicy>
239 <enabled>false</enabled>
243 <id>opendaylight-snapshot</id>
244 <name>opendaylight-snapshot</name>
245 <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
247 <enabled>false</enabled>
250 <enabled>true</enabled>
258 <url>${onap.nexus.public-url}</url>
260 <enabled>true</enabled>
263 <enabled>true</enabled>
267 <id>onap-staging</id>
268 <url>${onap.nexus.staging-url}</url>
270 <enabled>true</enabled>
273 <enabled>true</enabled>
277 <id>onap-snapshot</id>
278 <url>${onap.nexus.snapshot-url}</url>
280 <enabled>false</enabled>
283 <enabled>true</enabled>
287 <id>opendaylight-mirror</id>
288 <name>opendaylight-mirror</name>
289 <url>${opendaylight.nexus.public-url}</url>
291 <enabled>true</enabled>
292 <updatePolicy>never</updatePolicy>
295 <enabled>false</enabled>
299 <id>opendaylight-snapshot</id>
300 <name>opendaylight-snapshot</name>
301 <url>${opendaylight.nexus.snapshot-url}</url>
303 <enabled>false</enabled>
306 <enabled>true</enabled>
309 <!-- Black Duck plugin dependencies -->
312 <name>JCenter Repository</name>
313 <url>http://jcenter.bintray.com</url>
318 <name>Restlet Repository</name>
319 <url>http://maven.restlet.com</url>
321 </pluginRepositories>
327 <!-- Plugins from ONAP oparent -->
329 <groupId>org.apache.maven.plugins</groupId>
330 <artifactId>maven-deploy-plugin</artifactId>
331 <!-- This version supports the "deployAtEnd" parameter -->
332 <version>2.8</version>
339 <groupId>org.apache.maven.plugins</groupId>
340 <artifactId>maven-site-plugin</artifactId>
341 <version>3.6</version>
344 <groupId>org.apache.maven.wagon</groupId>
345 <artifactId>wagon-webdav-jackrabbit</artifactId>
346 <version>2.10</version>
349 <groupId>org.apache.maven.doxia</groupId>
350 <artifactId>doxia-core</artifactId>
351 <version>1.7</version>
354 <groupId>org.apache.maven.doxia</groupId>
355 <artifactId>doxia-sink-api</artifactId>
356 <version>1.7</version>
359 <groupId>org.apache.maven.doxia</groupId>
360 <artifactId>doxia-logging-api</artifactId>
361 <version>1.7</version>
366 <id>attach-descriptor</id>
368 <goal>attach-descriptor</goal>
374 <artifactId>maven-checkstyle-plugin</artifactId>
375 <version>2.17</version>
378 <groupId>org.onap.oparent</groupId>
379 <artifactId>checkstyle</artifactId>
380 <version>1.1.1</version>
385 <id>check-license</id>
389 <phase>process-sources</phase>
391 <configLocation>onap-checkstyle/check-license.xml</configLocation>
392 <headerLocation>onap-checkstyle/apache-license-2.regexp.txt</headerLocation>
393 <includeResources>false</includeResources>
394 <includeTestSourceDirectory>true</includeTestSourceDirectory>
395 <includeTestResources>false</includeTestResources>
396 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
399 <failsOnError>false</failsOnError>
400 <consoleOutput>true</consoleOutput>
408 <phase>process-sources</phase>
410 <!-- Use Google Java Style Guide: https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
411 with minor changes -->
412 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
413 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated
414 sources directory -->
415 <sourceDirectory>${project.build.sourceDirectory}/src/main/java</sourceDirectory>
416 <includeResources>true</includeResources>
417 <includeTestSourceDirectory>true</includeTestSourceDirectory>
418 <includeTestResources>true</includeTestResources>
421 <failsOnError>false</failsOnError>
422 <consoleOutput>true</consoleOutput>
428 <groupId>org.jacoco</groupId>
429 <artifactId>jacoco-maven-plugin</artifactId>
430 <version>${jacoco.version}</version>
432 <!-- Note: This exclusion list should match <sonar.exclusions> property
435 <exclude>**/gen/**</exclude>
436 <exclude>**/generated-sources/**</exclude>
437 <exclude>**/yang-gen/**</exclude>
438 <exclude>**/pax/**</exclude>
442 <!-- Prepares the property pointing to the JaCoCo runtime agent which
443 is passed as VM argument when Maven the Surefire plugin is executed. -->
445 <id>pre-unit-test</id>
447 <goal>prepare-agent</goal>
450 <!-- Sets the path to the file which contains the execution data. -->
451 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
452 <!-- Sets the name of the property containing the settings for JaCoCo
454 <propertyName>surefireArgLine</propertyName>
457 <!-- Ensures that the code coverage report for unit tests is created
458 after unit tests have been run. -->
460 <id>post-unit-test</id>
466 <!-- Sets the path to the file which contains the execution data. -->
467 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
468 <!-- Sets the output directory for the code coverage report. -->
469 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
473 <id>pre-integration-test</id>
474 <phase>pre-integration-test</phase>
476 <goal>prepare-agent</goal>
479 <!-- Sets the path to the file which contains the execution data. -->
480 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
481 <!-- Sets the name of the property containing the settings for JaCoCo
483 <propertyName>failsafeArgLine</propertyName>
486 <!-- Ensures that the code coverage report for integration tests after
487 integration tests have been run. -->
489 <id>post-integration-test</id>
490 <phase>post-integration-test</phase>
495 <!-- Sets the path to the file which contains the execution data. -->
496 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
497 <!-- Sets the output directory for the code coverage report. -->
498 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
504 <groupId>org.apache.maven.plugins</groupId>
505 <artifactId>maven-surefire-plugin</artifactId>
506 <version>2.19.1</version>
508 <!-- Sets the VM argument line used when unit tests are run. -->
509 <argLine>${surefireArgLine}</argLine>
510 <!-- Excludes integration tests when unit tests are run. -->
512 <exclude>**/IT*.java</exclude>
517 <groupId>org.apache.maven.plugins</groupId>
518 <artifactId>maven-failsafe-plugin</artifactId>
519 <version>2.19.1</version>
521 <!-- Ensures that both integration-test and verify goals of the Failsafe
522 Maven plugin are executed. -->
524 <id>integration-tests</id>
526 <goal>integration-test</goal>
530 <!-- Sets the VM argument line used when integration tests are run. -->
531 <argLine>${failsafeArgLine}</argLine>
537 <groupId>org.apache.maven.plugins</groupId>
538 <artifactId>maven-compiler-plugin</artifactId>
539 <version>${maven.compile.plugin.version}</version>
541 <source>${java.version.source}</source>
542 <target>${java.version.target}</target>
546 <groupId>org.sonarsource.scanner.maven</groupId>
547 <artifactId>sonar-maven-plugin</artifactId>
548 <version>3.3.0.603</version>
551 <!-- End of plugins from ONAP oparent -->
554 <groupId>org.apache.maven.plugins</groupId>
555 <artifactId>maven-javadoc-plugin</artifactId>
556 <version>2.10</version>
558 <additionalDependencies>
559 <additionalDependency>
560 <groupId>org.slf4j</groupId>
561 <artifactId>slf4j-api</artifactId>
562 <version>${slf4j.version}</version>
563 </additionalDependency>
564 <additionalDependency>
565 <groupId>org.antlr</groupId>
566 <artifactId>antlr4</artifactId>
567 <version>${antlr.version}</version>
568 </additionalDependency>
569 <additionalDependency>
570 <groupId>org.antlr</groupId>
571 <artifactId>antlr4-runtime</artifactId>
572 <version>${antlr.version}</version>
573 </additionalDependency>
575 <additionalDependency>
576 <groupId>com.sun.jersey</groupId>
577 <artifactId>jersey-client</artifactId>
578 <version>${jersey.client.version}</version>
579 </additionalDependency>
580 <additionalDependency>
581 <groupId>com.sun.jersey</groupId>
582 <artifactId>jersey-core</artifactId>
583 <version>${jersey.version}</version>
584 </additionalDependency>
585 <additionalDependency>
586 <groupId>org.apache.httpcomponents</groupId>
587 <artifactId>httpcore-osgi</artifactId>
588 <version>${apache.httpcomponents.core.version}</version>
589 </additionalDependency>
590 <additionalDependency>
591 <groupId>org.apache.httpcomponents</groupId>
592 <artifactId>httpclient-osgi</artifactId>
593 <version>${apache.httpcomponents.client.version}</version>
594 </additionalDependency>
595 <additionalDependency>
596 <groupId>commons-lang</groupId>
597 <artifactId>commons-lang</artifactId>
598 <version>${commons.lang.version}</version>
599 </additionalDependency>
600 </additionalDependencies>
607 <goal>aggregate</goal>
619 <!-- Plugins from ONAP oparent -->
621 <artifactId>maven-checkstyle-plugin</artifactId>
624 <groupId>org.codehaus.mojo</groupId>
625 <artifactId>build-helper-maven-plugin</artifactId>
626 <version>1.12</version>
628 <!-- Jacoco / Sonar -->
630 <groupId>org.jacoco</groupId>
631 <artifactId>jacoco-maven-plugin</artifactId>
634 <groupId>org.apache.maven.plugins</groupId>
635 <artifactId>maven-surefire-plugin</artifactId>
638 <groupId>org.apache.maven.plugins</groupId>
639 <artifactId>maven-failsafe-plugin</artifactId>
642 <!-- End of plugins from ONAP oparent -->
644 <groupId>org.codehaus.mojo</groupId>
645 <artifactId>properties-maven-plugin</artifactId>
646 <version>1.0.0</version>
650 <goal>set-system-properties</goal>
655 <name>maven.wagon.http.ssl.allowall</name>
656 <value>${ssl.allowall}</value>
659 <name>maven.wagon.http.ssl.insecure</name>
660 <value>${ssl.insecure}</value>
668 <groupId>org.codehaus.mojo</groupId>
669 <artifactId>versions-maven-plugin</artifactId>
670 <version>2.5</version>
672 <processAllModules>true</processAllModules>
676 <artifactId>maven-scm-plugin</artifactId>
677 <version>1.8.1</version>
679 <tag>${project.artifactId}-${project.version}</tag>
688 <artifactId>maven-javadoc-plugin</artifactId>
689 <version>2.10.4</version>
691 <failOnError>false</failOnError>
692 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
694 <groupId>org.umlgraph</groupId>
695 <artifactId>umlgraph</artifactId>
696 <version>5.6</version>
698 <additionalparam>-views</additionalparam>
699 <useStandardDocletOptions>true</useStandardDocletOptions>
700 <excludePackageNames>org.opendaylight.*</excludePackageNames>
705 <report>javadoc-no-fork</report>
706 <report>test-javadoc-no-fork</report>
712 <report>aggregate</report>
713 <report>test-aggregate</report>
719 <groupId>org.apache.maven.plugins</groupId>
720 <artifactId>maven-jxr-plugin</artifactId>
721 <version>2.3</version>
726 <report>aggregate</report>
727 <report>test-aggregate</report>
734 <artifactId>maven-surefire-plugin</artifactId>
735 <version>2.17</version>
738 <groupId>org.apache.maven.plugins</groupId>
739 <artifactId>maven-changelog-plugin</artifactId>
740 <version>2.3</version>
749 <report>changelog</report>
750 <report>file-activity</report>
756 <groupId>org.codehaus.mojo</groupId>
757 <artifactId>taglist-maven-plugin</artifactId>
758 <version>2.4</version>
764 <!-- Profiles from ONAP oparent -->
766 <id>generate-json</id>
769 <exists>${swagger-properties}</exists>
772 <name>swagger-sdk.generate-json</name>
778 <groupId>org.codehaus.mojo</groupId>
779 <artifactId>properties-maven-plugin</artifactId>
780 <version>1.0.0</version>
783 <phase>initialize</phase>
785 <goal>read-project-properties</goal>
789 <file>${basedir}/src/main/resources/swagger.properties</file>
796 <groupId>com.github.kongchen</groupId>
797 <artifactId>swagger-maven-plugin</artifactId>
798 <version>3.1.4</version>
802 <locations>${api-rest-package}</locations>
803 <schemes>http,https</schemes>
804 <host>${api-host-ip}:${api-host-port}</host>
805 <basePath>${api-base-path}</basePath>
807 <title>${api-title}</title>
808 <version>${api-version}</version>
809 <description>${api-description}</description>
811 <name>${api-license}</name>
814 <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
820 <phase>compile</phase>
822 <goal>generate</goal>
828 <groupId>org.apache.maven.plugins</groupId>
829 <artifactId>maven-install-plugin</artifactId>
830 <version>2.3.1</version>
833 <id>install-file-id</id>
834 <phase>install</phase>
836 <goal>install-file</goal>
839 <file>${basedir}/src/main/resources/swagger.json</file>
840 <groupId>${project.groupId}</groupId>
841 <artifactId>${project.artifactId}-swagger-schema</artifactId>
842 <version>${project.version}</version>
843 <packaging>json</packaging>
852 <id>generate-sdk</id>
855 <exists>${swagger-json}</exists>
858 <name>swagger-sdk.generate-java-sdk</name>
864 <groupId>org.apache.maven.plugins</groupId>
865 <artifactId>maven-antrun-plugin</artifactId>
866 <version>1.8</version>
869 <phase>initialize</phase>
870 <id>ant-create-script</id>
872 <exportAntProperties>true</exportAntProperties>
875 <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
876 <condition property="is_windows" value="true">
877 <os family="windows"/>
879 <condition property="isLinux" value="true">
883 <equals arg1="${is_windows}" arg2="true"/>
885 <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
886 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
887 <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
890 <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
891 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
892 <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
893 <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
905 <groupId>ant-contrib</groupId>
906 <artifactId>ant-contrib</artifactId>
907 <version>1.0b3</version>
910 <groupId>ant</groupId>
911 <artifactId>ant</artifactId>
918 <groupId>io.swagger</groupId>
919 <artifactId>swagger-codegen-maven-plugin</artifactId>
920 <version>2.2.1</version>
924 <goal>generate</goal>
927 <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
928 <output>${project.build.directory}/generated-sources</output>
929 <language>java</language>
931 <dateLibrary>joda</dateLibrary>
933 <library>jersey2</library>
934 <groupId>${project.groupId}</groupId>
935 <artifactId>${project.artifactId}-java-sdk</artifactId>
936 <artifactVersion>${project.version}</artifactVersion>
937 <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
938 <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
939 <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
945 <groupId>org.codehaus.mojo</groupId>
946 <artifactId>exec-maven-plugin</artifactId>
947 <version>1.5.0</version>
950 <id>swagger-generate-sources</id>
951 <phase>generate-sources</phase>
956 <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
962 <groupId>org.apache.maven.plugins</groupId>
963 <artifactId>maven-clean-plugin</artifactId>
964 <version>3.0.0</version>
967 <id>clean-generated-files</id>
968 <phase>generate-sources</phase>
975 <directory>${project.build.directory}/generated-sources</directory>
986 <groupId>org.onap.msb.swagger-sdk</groupId>
987 <artifactId>swagger-sdk</artifactId>
988 <version>1.0.0</version>
993 <!-- http://blog2.vorburger.ch/2016/06/improve-maven-build-speed-with-q.html
994 q = http://memory-alpha.wikia.com/wiki/Q ;)
996 The Quick profile is used during incremental local development, when you want to "just get that JAR built",
997 which is very handy e.g. for fast hot reloading cycles in Karaf with bundle watch. It (intentionally!) skips
998 tests, quality checks etc. which are great and useful to run before finally submitting changes to Gerrit, and
999 which all must run on Gerrit, but which are overhead during ongoing fast iterative local development.
1001 Note that the idea here is that your IDE will already have run quality checks such as e.g. Checkstyle
1002 while you typed the code anyway. Similarly, if you wrote a test, you'll probably already have compiled and run it
1003 from your IDE, so when you want the OSGi bundle JAR for Karaf, ASAP, you typically don't want all that to run again.
1007 <skipTests>true</skipTests>
1008 <!-- But NOT <maven.test.skip>true, as that's for compiling, not running, tests;
1009 and that's usually quick. Skipping test compilation with -Pq with maven.test.skip would be
1010 particularly confusing when used in a project with maven-jar-plugin <goal>test-jar, so don't.) -->
1011 <skipIT>true</skipIT>
1012 <skipITs>true</skipITs>
1013 <skip.karaf.featureTest>true</skip.karaf.featureTest>
1014 <jacoco.skip>true</jacoco.skip>
1015 <maven.javadoc.skip>true</maven.javadoc.skip>
1016 <maven.source.skip>true</maven.source.skip>
1017 <checkstyle.skip>true</checkstyle.skip>
1018 <findbugs.skip>true</findbugs.skip>
1019 <spotbugs.skip>true</spotbugs.skip>
1020 <pmd.skip>true</pmd.skip>
1021 <cpd.skip>true</cpd.skip>
1022 <maven.site.skip>true</maven.site.skip>
1023 <invoker.skip>true</invoker.skip>
1024 <enforcer.skip>true</enforcer.skip>
1025 <duplicate-finder.skip>true</duplicate-finder.skip>
1026 <mdsal.skip.verbose>true</mdsal.skip.verbose> <!-- Bug 6236 -->
1027 <maven.gitcommitid.skip>true</maven.gitcommitid.skip>
1028 <modernizer.skip>true</modernizer.skip>
1029 <format.skipExecute>true</format.skipExecute>
1030 <format.skipValidate>true</format.skipValidate>
1033 <!-- End of profiles from ONAP oparent -->