summaryrefslogtreecommitdiffstats
path: root/springboot/springboot2/pom.xml
diff options
context:
space:
mode:
authorSingal, Kapil (ks220y) <ks220y@att.com>2019-10-01 22:31:50 -0400
committerSingal, Kapil (ks220y) <ks220y@att.com>2019-10-01 22:31:50 -0400
commit2e8a4da68b26ffb5bf812fce9ebdace4b39d1c50 (patch)
treede3ffff45b0aaaee82239518b390c8f12173a1e1 /springboot/springboot2/pom.xml
parent632a1f3cc13664249eb6f7f95d19ded659d1b98b (diff)
Restructuring POM's and Template
Running mvn tidy:pom to format/restructure pom's content. Removig plugin to format pom as all child poms are not having reference to root as parent pom and maven-tidy-plugin is not being executed to format pom Issue-ID: CCSDK-1764 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: I18fd59ae94fdded11f3cb62647d5b3518bfe051a
Diffstat (limited to 'springboot/springboot2/pom.xml')
-rwxr-xr-xspringboot/springboot2/pom.xml869
1 files changed, 433 insertions, 436 deletions
diff --git a/springboot/springboot2/pom.xml b/springboot/springboot2/pom.xml
index 6b0ab8bf..2e98665e 100755
--- a/springboot/springboot2/pom.xml
+++ b/springboot/springboot2/pom.xml
@@ -1,11 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<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/maven-v4_0_0.xsd">
-
+<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">
<modelVersion>4.0.0</modelVersion>
- <packaging>pom</packaging>
- <groupId>org.onap.ccsdk.parent</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>1.5.0-SNAPSHOT</version>
<parent>
<groupId>org.springframework.boot</groupId>
@@ -14,14 +9,32 @@
<relativePath/>
</parent>
- <url>http://wiki.onap.org</url>
+ <groupId>org.onap.ccsdk.parent</groupId>
+ <artifactId>spring-boot-starter-parent</artifactId>
+ <version>1.5.0-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
<name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
<description>Root POM to be used in place of odlparent for CCSDK based projects</description>
+ <url>http://wiki.onap.org</url>
+ <organization>
+ <name>ONAP</name>
+ </organization>
<issueManagement>
<system>JIRA</system>
<url>https://jira.onap.org/</url>
</issueManagement>
+ <distributionManagement>
+ <repository>
+ <id>ecomp-releases</id>
+ <url>https://nexus.onap.org/content/repositories/releases</url>
+ </repository>
+ <snapshotRepository>
+ <id>ecomp-snapshots</id>
+ <url>https://nexus.onap.org/content/repositories/snapshots</url>
+ </snapshotRepository>
+ </distributionManagement>
<properties>
<!-- properties from oparent -->
@@ -116,278 +129,6 @@
</properties>
- <profiles>
- <!-- Profiles from ONAP oparent -->
- <profile>
- <id>generate-json</id>
- <activation>
- <file>
- <exists>${swagger-properties}</exists>
- </file>
- <property>
- <name>swagger-sdk.generate-json</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>properties-maven-plugin</artifactId>
- <version>1.0.0</version>
- <executions>
- <execution>
- <phase>initialize</phase>
- <goals>
- <goal>read-project-properties</goal>
- </goals>
- <configuration>
- <files>
- <file>${basedir}/src/main/resources/swagger.properties</file>
- </files>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>com.github.kongchen</groupId>
- <artifactId>swagger-maven-plugin</artifactId>
- <version>3.1.4</version>
- <configuration>
- <apiSources>
- <apiSource>
- <locations>${api-rest-package}</locations>
- <schemes>http,https</schemes>
- <host>${api-host-ip}:${api-host-port}</host>
- <basePath>${api-base-path}</basePath>
- <info>
- <title>${api-title}</title>
- <version>${api-version}</version>
- <description>${api-description}</description>
- <license>
- <name>${api-license}</name>
- </license>
- </info>
- <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
- </apiSource>
- </apiSources>
- </configuration>
- <executions>
- <execution>
- <phase>compile</phase>
- <goals>
- <goal>generate</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-install-plugin</artifactId>
- <version>2.3.1</version>
- <executions>
- <execution>
- <id>install-file-id</id>
- <phase>install</phase>
- <goals>
- <goal>install-file</goal>
- </goals>
- <configuration>
- <file>${basedir}/src/main/resources/swagger.json</file>
- <groupId>${project.groupId}</groupId>
- <artifactId>${project.artifactId}-swagger-schema</artifactId>
- <version>${project.version}</version>
- <packaging>json</packaging>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>generate-sdk</id>
- <activation>
- <file>
- <exists>${swagger-json}</exists>
- </file>
- <property>
- <name>swagger-sdk.generate-java-sdk</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.8</version>
- <executions>
- <execution>
- <phase>initialize</phase>
- <id>ant-create-script</id>
- <configuration>
- <exportAntProperties>true</exportAntProperties>
- <tasks>
-
- <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
- <condition property="is_windows" value="true">
- <os family="windows"/>
- </condition>
- <condition property="isLinux" value="true">
- <os family="unix"/>
- </condition>
- <if>
- <equals arg1="${is_windows}" arg2="true"/>
- <then>
- <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
- <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
- <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
- </then>
- <else>
- <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
- <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
- <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
- <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
- </else>
- </if>
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>ant-contrib</groupId>
- <artifactId>ant-contrib</artifactId>
- <version>1.0b3</version>
- <exclusions>
- <exclusion>
- <artifactId>ant</artifactId>
- <groupId>ant</groupId>
- </exclusion>
- </exclusions>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
- <groupId>io.swagger</groupId>
- <artifactId>swagger-codegen-maven-plugin</artifactId>
- <version>2.2.1</version>
- <executions>
- <execution>
- <goals>
- <goal>generate</goal>
- </goals>
- <configuration>
- <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
- <output>${project.build.directory}/generated-sources</output>
- <language>java</language>
- <configOptions>
- <dateLibrary>joda</dateLibrary>
- </configOptions>
- <library>jersey2</library>
- <groupId>${project.groupId}</groupId>
- <artifactId>${project.artifactId}-java-sdk</artifactId>
- <artifactVersion>${project.version}</artifactVersion>
- <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
- <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
- <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>exec-maven-plugin</artifactId>
- <groupId>org.codehaus.mojo</groupId>
- <version>1.5.0</version>
- <executions>
- <execution>
- <id>swagger-generate-sources</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- <configuration>
- <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-clean-plugin</artifactId>
- <version>3.0.0</version>
- <executions>
- <execution>
- <id>clean-generated-files</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>clean</goal>
- </goals>
- <configuration>
- <filesets>
- <fileset>
- <directory>${project.build.directory}/generated-sources</directory>
- </fileset>
- </filesets>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>org.onap.msb.swagger-sdk</groupId>
- <artifactId>swagger-sdk</artifactId>
- <version>1.0.0</version>
- </dependency>
- </dependencies>
- </profile>
- <profile>
- <!-- http://blog2.vorburger.ch/2016/06/improve-maven-build-speed-with-q.html
- q = http://memory-alpha.wikia.com/wiki/Q ;)
-
- The Quick profile is used during incremental local development, when you want to "just get that JAR built",
- which is very handy e.g. for fast hot reloading cycles in Karaf with bundle watch. It (intentionally!) skips
- tests, quality checks etc. which are great and useful to run before finally submitting changes to Gerrit, and
- which all must run on Gerrit, but which are overhead during ongoing fast iterative local development.
-
- Note that the idea here is that your IDE will already have run quality checks such as e.g. Checkstyle
- while you typed the code anyway. Similarly, if you wrote a test, you'll probably already have compiled and run it
- from your IDE, so when you want the OSGi bundle JAR for Karaf, ASAP, you typically don't want all that to run again.
- -->
- <id>q</id>
- <properties>
- <skipTests>true</skipTests>
- <!-- But NOT <maven.test.skip>true, as that's for compiling, not running, tests;
- and that's usually quick. Skipping test compilation with -Pq with maven.test.skip would be
- particularly confusing when used in a project with maven-jar-plugin <goal>test-jar, so don't.) -->
- <skipIT>true</skipIT>
- <skipITs>true</skipITs>
- <skip.karaf.featureTest>true</skip.karaf.featureTest>
- <jacoco.skip>true</jacoco.skip>
- <maven.javadoc.skip>true</maven.javadoc.skip>
- <maven.source.skip>true</maven.source.skip>
- <checkstyle.skip>true</checkstyle.skip>
- <findbugs.skip>true</findbugs.skip>
- <spotbugs.skip>true</spotbugs.skip>
- <pmd.skip>true</pmd.skip>
- <cpd.skip>true</cpd.skip>
- <maven.site.skip>true</maven.site.skip>
- <invoker.skip>true</invoker.skip>
- <enforcer.skip>true</enforcer.skip>
- <duplicate-finder.skip>true</duplicate-finder.skip>
- <mdsal.skip.verbose>true</mdsal.skip.verbose> <!-- Bug 6236 -->
- <maven.gitcommitid.skip>true</maven.gitcommitid.skip>
- <modernizer.skip>true</modernizer.skip>
- </properties>
- </profile>
- <!-- End of profiles from ONAP oparent -->
-
- </profiles>
-
<dependencyManagement>
<dependencies>
<dependency>
@@ -436,119 +177,58 @@
</dependencyManagement>
- <reporting>
- <plugins>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.10.4</version>
- <configuration>
- <failOnError>false</failOnError>
- <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
- <docletArtifact>
- <groupId>org.umlgraph</groupId>
- <artifactId>umlgraph</artifactId>
- <version>5.6</version>
- </docletArtifact>
- <additionalparam>-views</additionalparam>
- <useStandardDocletOptions>true</useStandardDocletOptions>
- <excludePackageNames>org.opendaylight.*</excludePackageNames>
- </configuration>
- <reportSets>
- <reportSet>
- <reports>
- <report>javadoc-no-fork</report>
- <report>test-javadoc-no-fork</report>
- </reports>
- </reportSet>
- <reportSet>
- <id>aggregate</id>
- <reports>
- <report>aggregate</report>
- <report>test-aggregate</report>
- </reports>
- </reportSet>
- </reportSets>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jxr-plugin</artifactId>
- <version>2.3</version>
- <reportSets>
- <reportSet>
- <id>aggregate</id>
- <reports>
- <report>aggregate</report>
- <report>test-aggregate</report>
- </reports>
- </reportSet>
- </reportSets>
- </plugin>
-
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.17</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-changelog-plugin</artifactId>
- <version>2.3</version>
- <reportSets>
- <reportSet>
- <id>dual-report</id>
- <configuration>
- <type>range</type>
- <range>30</range>
- </configuration>
- <reports>
- <report>changelog</report>
- <report>file-activity</report>
- </reports>
- </reportSet>
- </reportSets>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>taglist-maven-plugin</artifactId>
- <version>2.4</version>
- </plugin>
- </plugins>
- </reporting>
-
- <pluginRepositories>
- <pluginRepository>
+ <repositories>
+ <repository>
<id>onap-public</id>
- <url>${onap.nexus.public-url}</url>
+ <url>https://nexus.onap.org/content/groups/public</url>
<releases>
<enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
</snapshots>
- </pluginRepository>
- <pluginRepository>
+ </repository>
+ <repository>
<id>onap-staging</id>
- <url>${onap.nexus.staging-url}</url>
+ <url>https://nexus.onap.org/content/groups/staging</url>
<releases>
<enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
</snapshots>
- </pluginRepository>
- <pluginRepository>
- <id>onap-snapshot</id>
- <url>${onap.nexus.snapshot-url}</url>
+ </repository>
+ <repository>
+ <id>ecomp-release</id>
+ <name>onap-repository-releases</name>
+ <url>https://nexus.onap.org/content/repositories/releases</url>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>ecomp-snapshot</id>
+ <name>onap-repository-snapshots</name>
+ <url>https://nexus.onap.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
- </pluginRepository>
- <pluginRepository>
+ </repository>
+ <repository>
<id>opendaylight-mirror</id>
<name>opendaylight-mirror</name>
- <url>${opendaylight.nexus.public-url}</url>
+ <url>https://nexus.opendaylight.org/content/repositories/public/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
@@ -556,84 +236,55 @@
<snapshots>
<enabled>false</enabled>
</snapshots>
- </pluginRepository>
- <pluginRepository>
+ </repository>
+ <repository>
<id>opendaylight-snapshot</id>
<name>opendaylight-snapshot</name>
- <url>${opendaylight.nexus.snapshot-url}</url>
+ <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
- </pluginRepository>
- <!-- Black Duck plugin dependencies -->
- <pluginRepository>
- <id>JCenter</id>
- <name>JCenter Repository</name>
- <url>http://jcenter.bintray.com</url>
- </pluginRepository>
+ </repository>
+ </repositories>
+ <pluginRepositories>
<pluginRepository>
- <id>Restlet</id>
- <name>Restlet Repository</name>
- <url>http://maven.restlet.com</url>
- </pluginRepository>
- </pluginRepositories>
-
- <repositories>
- <repository>
<id>onap-public</id>
- <url>https://nexus.onap.org/content/groups/public</url>
+ <url>${onap.nexus.public-url}</url>
<releases>
<enabled>true</enabled>
- <updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
</snapshots>
- </repository>
- <repository>
+ </pluginRepository>
+ <pluginRepository>
<id>onap-staging</id>
- <url>https://nexus.onap.org/content/groups/staging</url>
+ <url>${onap.nexus.staging-url}</url>
<releases>
<enabled>true</enabled>
- <updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
</snapshots>
- </repository>
- <repository>
- <id>ecomp-release</id>
- <name>onap-repository-releases</name>
- <url>https://nexus.onap.org/content/repositories/releases</url>
- <releases>
- <enabled>true</enabled>
- <updatePolicy>never</updatePolicy>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- <repository>
- <id>ecomp-snapshot</id>
- <name>onap-repository-snapshots</name>
- <url>https://nexus.onap.org/content/repositories/snapshots</url>
+ </pluginRepository>
+ <pluginRepository>
+ <id>onap-snapshot</id>
+ <url>${onap.nexus.snapshot-url}</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
- </repository>
- <repository>
+ </pluginRepository>
+ <pluginRepository>
<id>opendaylight-mirror</id>
<name>opendaylight-mirror</name>
- <url>https://nexus.opendaylight.org/content/repositories/public/</url>
+ <url>${opendaylight.nexus.public-url}</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
@@ -641,31 +292,31 @@
<snapshots>
<enabled>false</enabled>
</snapshots>
- </repository>
- <repository>
+ </pluginRepository>
+ <pluginRepository>
<id>opendaylight-snapshot</id>
<name>opendaylight-snapshot</name>
- <url>https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url>
+ <url>${opendaylight.nexus.snapshot-url}</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
- </repository>
-
- </repositories>
+ </pluginRepository>
+ <!-- Black Duck plugin dependencies -->
+ <pluginRepository>
+ <id>JCenter</id>
+ <name>JCenter Repository</name>
+ <url>http://jcenter.bintray.com</url>
+ </pluginRepository>
- <distributionManagement>
- <repository>
- <id>ecomp-releases</id>
- <url>https://nexus.onap.org/content/repositories/releases</url>
- </repository>
- <snapshotRepository>
- <id>ecomp-snapshots</id>
- <url>https://nexus.onap.org/content/repositories/snapshots</url>
- </snapshotRepository>
- </distributionManagement>
+ <pluginRepository>
+ <id>Restlet</id>
+ <name>Restlet Repository</name>
+ <url>http://maven.restlet.com</url>
+ </pluginRepository>
+ </pluginRepositories>
<build>
<pluginManagement>
@@ -962,7 +613,6 @@
</plugins>
</pluginManagement>
-
<plugins>
<!-- Plugins from ONAP oparent -->
<plugin>
@@ -1029,7 +679,354 @@
</plugin>
</plugins>
</build>
- <organization>
- <name>ONAP</name>
- </organization>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.10.4</version>
+ <configuration>
+ <failOnError>false</failOnError>
+ <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
+ <docletArtifact>
+ <groupId>org.umlgraph</groupId>
+ <artifactId>umlgraph</artifactId>
+ <version>5.6</version>
+ </docletArtifact>
+ <additionalparam>-views</additionalparam>
+ <useStandardDocletOptions>true</useStandardDocletOptions>
+ <excludePackageNames>org.opendaylight.*</excludePackageNames>
+ </configuration>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>javadoc-no-fork</report>
+ <report>test-javadoc-no-fork</report>
+ </reports>
+ </reportSet>
+ <reportSet>
+ <id>aggregate</id>
+ <reports>
+ <report>aggregate</report>
+ <report>test-aggregate</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jxr-plugin</artifactId>
+ <version>2.3</version>
+ <reportSets>
+ <reportSet>
+ <id>aggregate</id>
+ <reports>
+ <report>aggregate</report>
+ <report>test-aggregate</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.17</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-changelog-plugin</artifactId>
+ <version>2.3</version>
+ <reportSets>
+ <reportSet>
+ <id>dual-report</id>
+ <configuration>
+ <type>range</type>
+ <range>30</range>
+ </configuration>
+ <reports>
+ <report>changelog</report>
+ <report>file-activity</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>taglist-maven-plugin</artifactId>
+ <version>2.4</version>
+ </plugin>
+ </plugins>
+ </reporting>
+
+ <profiles>
+ <!-- Profiles from ONAP oparent -->
+ <profile>
+ <id>generate-json</id>
+ <activation>
+ <file>
+ <exists>${swagger-properties}</exists>
+ </file>
+ <property>
+ <name>swagger-sdk.generate-json</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>properties-maven-plugin</artifactId>
+ <version>1.0.0</version>
+ <executions>
+ <execution>
+ <phase>initialize</phase>
+ <goals>
+ <goal>read-project-properties</goal>
+ </goals>
+ <configuration>
+ <files>
+ <file>${basedir}/src/main/resources/swagger.properties</file>
+ </files>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>com.github.kongchen</groupId>
+ <artifactId>swagger-maven-plugin</artifactId>
+ <version>3.1.4</version>
+ <configuration>
+ <apiSources>
+ <apiSource>
+ <locations>${api-rest-package}</locations>
+ <schemes>http,https</schemes>
+ <host>${api-host-ip}:${api-host-port}</host>
+ <basePath>${api-base-path}</basePath>
+ <info>
+ <title>${api-title}</title>
+ <version>${api-version}</version>
+ <description>${api-description}</description>
+ <license>
+ <name>${api-license}</name>
+ </license>
+ </info>
+ <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
+ </apiSource>
+ </apiSources>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>compile</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-install-plugin</artifactId>
+ <version>2.3.1</version>
+ <executions>
+ <execution>
+ <id>install-file-id</id>
+ <phase>install</phase>
+ <goals>
+ <goal>install-file</goal>
+ </goals>
+ <configuration>
+ <file>${basedir}/src/main/resources/swagger.json</file>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>${project.artifactId}-swagger-schema</artifactId>
+ <version>${project.version}</version>
+ <packaging>json</packaging>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>generate-sdk</id>
+ <activation>
+ <file>
+ <exists>${swagger-json}</exists>
+ </file>
+ <property>
+ <name>swagger-sdk.generate-java-sdk</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.8</version>
+ <executions>
+ <execution>
+ <phase>initialize</phase>
+ <id>ant-create-script</id>
+ <configuration>
+ <exportAntProperties>true</exportAntProperties>
+ <tasks>
+
+ <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="maven.plugin.classpath"/>
+ <condition property="is_windows" value="true">
+ <os family="windows"/>
+ </condition>
+ <condition property="isLinux" value="true">
+ <os family="unix"/>
+ </condition>
+ <if>
+ <equals arg1="${is_windows}" arg2="true"/>
+ <then>
+ <property name="swagger.sdk.script.file" value="generated-source-script.bat"/>
+ <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
+ <echo file="${project.build.directory}${file.separator}generated-source-script.bat" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
+ </then>
+ <else>
+ <property name="swagger.sdk.script.file" value="generated-source-script.sh"/>
+ <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="cd ${project.build.directory}${file.separator}generated-sources${line.separator}"/>
+ <echo file="${project.build.directory}${file.separator}generated-source-script.sh" append="true" message="mvn clean install -Dmaven.test.skip=true${line.separator}"/>
+ <chmod file="${project.build.directory}${file.separator}generated-source-script.sh" perm="755"/>
+ </else>
+ </if>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>ant-contrib</groupId>
+ <artifactId>ant-contrib</artifactId>
+ <version>1.0b3</version>
+ <exclusions>
+ <exclusion>
+ <groupId>ant</groupId>
+ <artifactId>ant</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
+ </plugin>
+ <plugin>
+ <groupId>io.swagger</groupId>
+ <artifactId>swagger-codegen-maven-plugin</artifactId>
+ <version>2.2.1</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <configuration>
+ <inputSpec>${basedir}/src/main/resources/swagger.json</inputSpec>
+ <output>${project.build.directory}/generated-sources</output>
+ <language>java</language>
+ <configOptions>
+ <dateLibrary>joda</dateLibrary>
+ </configOptions>
+ <library>jersey2</library>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>${project.artifactId}-java-sdk</artifactId>
+ <artifactVersion>${project.version}</artifactVersion>
+ <modelPackage>${project.groupId}.${project.artifactId}.client.model</modelPackage>
+ <apiPackage>${project.groupId}.${project.artifactId}.client.api</apiPackage>
+ <invokerPackage>${project.groupId}.${project.artifactId}.client.invoker</invokerPackage>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.5.0</version>
+ <executions>
+ <execution>
+ <id>swagger-generate-sources</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>${project.build.directory}${file.separator}${swagger.sdk.script.file}</executable>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>3.0.0</version>
+ <executions>
+ <execution>
+ <id>clean-generated-files</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>clean</goal>
+ </goals>
+ <configuration>
+ <filesets>
+ <fileset>
+ <directory>${project.build.directory}/generated-sources</directory>
+ </fileset>
+ </filesets>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.onap.msb.swagger-sdk</groupId>
+ <artifactId>swagger-sdk</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ </dependencies>
+ </profile>
+ <profile>
+ <!-- http://blog2.vorburger.ch/2016/06/improve-maven-build-speed-with-q.html
+ q = http://memory-alpha.wikia.com/wiki/Q ;)
+
+ The Quick profile is used during incremental local development, when you want to "just get that JAR built",
+ which is very handy e.g. for fast hot reloading cycles in Karaf with bundle watch. It (intentionally!) skips
+ tests, quality checks etc. which are great and useful to run before finally submitting changes to Gerrit, and
+ which all must run on Gerrit, but which are overhead during ongoing fast iterative local development.
+
+ Note that the idea here is that your IDE will already have run quality checks such as e.g. Checkstyle
+ while you typed the code anyway. Similarly, if you wrote a test, you'll probably already have compiled and run it
+ from your IDE, so when you want the OSGi bundle JAR for Karaf, ASAP, you typically don't want all that to run again.
+ -->
+ <id>q</id>
+ <properties>
+ <skipTests>true</skipTests>
+ <!-- But NOT <maven.test.skip>true, as that's for compiling, not running, tests;
+ and that's usually quick. Skipping test compilation with -Pq with maven.test.skip would be
+ particularly confusing when used in a project with maven-jar-plugin <goal>test-jar, so don't.) -->
+ <skipIT>true</skipIT>
+ <skipITs>true</skipITs>
+ <skip.karaf.featureTest>true</skip.karaf.featureTest>
+ <jacoco.skip>true</jacoco.skip>
+ <maven.javadoc.skip>true</maven.javadoc.skip>
+ <maven.source.skip>true</maven.source.skip>
+ <checkstyle.skip>true</checkstyle.skip>
+ <findbugs.skip>true</findbugs.skip>
+ <spotbugs.skip>true</spotbugs.skip>
+ <pmd.skip>true</pmd.skip>
+ <cpd.skip>true</cpd.skip>
+ <maven.site.skip>true</maven.site.skip>
+ <invoker.skip>true</invoker.skip>
+ <enforcer.skip>true</enforcer.skip>
+ <duplicate-finder.skip>true</duplicate-finder.skip>
+ <mdsal.skip.verbose>true</mdsal.skip.verbose> <!-- Bug 6236 -->
+ <maven.gitcommitid.skip>true</maven.gitcommitid.skip>
+ <modernizer.skip>true</modernizer.skip>
+ </properties>
+ </profile>
+ <!-- End of profiles from ONAP oparent -->
+
+ </profiles>
</project>