aboutsummaryrefslogtreecommitdiffstats
path: root/generic-resource-api/client
diff options
context:
space:
mode:
Diffstat (limited to 'generic-resource-api/client')
-rw-r--r--generic-resource-api/client/pom.xml73
1 files changed, 14 insertions, 59 deletions
diff --git a/generic-resource-api/client/pom.xml b/generic-resource-api/client/pom.xml
index 60e21f39..bf4914e6 100644
--- a/generic-resource-api/client/pom.xml
+++ b/generic-resource-api/client/pom.xml
@@ -1,54 +1,29 @@
<?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>
+ <parent>
+ <groupId>org.onap.ccsdk.parent</groupId>
+ <artifactId>client-parent</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ </parent>
- <modelVersion>4.0.0</modelVersion>
- <packaging>jar</packaging>
<groupId>org.onap.sdnc.northbound</groupId>
<artifactId>generic-resource-api-client</artifactId>
<version>2.0.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
<name>sdnc-northbound :: generic-resource-api:: ${project.artifactId}</name>
- <url>http://wiki.onap.org</url>
<description>POM to be used for yang2swagger generation of client in SDNC project</description>
-
- <parent>
- <groupId>org.onap.ccsdk.parent</groupId>
- <artifactId>client-parent</artifactId>
- <version>2.0.0-SNAPSHOT</version>
- </parent>
+ <url>http://wiki.onap.org</url>
- <dependencies>
- <!-- This is where the yang comes from -->
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>generic-resource-api-model</artifactId>
- <version>${project.version}</version>
- </dependency>
- <!-- End this is where the yang comes from -->
- </dependencies>
+ <properties>
+ <api.name>generic-resource</api.name>
+ </properties>
<build>
<plugins>
<plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <configuration>
- <includeGroupIds>org.opendaylight.mdsal.model,org.opendaylight.mdsal.binding.model.ietf,org.onap.sdnc.northbound</includeGroupIds>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.opendaylight.yangtools</groupId>
- <artifactId>yang-maven-plugin</artifactId>
- </plugin>
- <plugin>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<executions>
@@ -57,6 +32,8 @@
<goal>generate</goal>
</goals>
<configuration>
+ <inputSpec>${project.basedir}/../model/swagger/src/main/json/${api.name}.json</inputSpec>
+ <language>spring</language>
<configOptions>
<java8>true</java8>
<withXml>true</withXml>
@@ -82,28 +59,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>1.10</version>
- <executions>
- <execution>
- <id>attach-artifacts</id>
- <phase>package</phase>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <configuration>
- <artifacts>
- <artifact>
- <file>target/generated-sources/swagger-maven-api-gen/client.yaml</file>
- <type>yaml</type>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
</project>