summaryrefslogtreecommitdiffstats
path: root/nokiav2/generatedapis/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'nokiav2/generatedapis/pom.xml')
-rw-r--r--nokiav2/generatedapis/pom.xml40
1 files changed, 34 insertions, 6 deletions
diff --git a/nokiav2/generatedapis/pom.xml b/nokiav2/generatedapis/pom.xml
index 21114bc3..a62606cf 100644
--- a/nokiav2/generatedapis/pom.xml
+++ b/nokiav2/generatedapis/pom.xml
@@ -37,6 +37,34 @@
<build>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack</id>
+ <phase>pre</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.onap.aai.aai-common</groupId>
+ <artifactId>aai-schema</artifactId>
+ <version>1.2.0</version>
+ <type>jar</type>
+ <destFileName>aai.json</destFileName>
+ <includes>**/aai_swagger_v11.yaml</includes>
+ </artifactItem>
+ </artifactItems>
+ <outputDirectory>${project.basedir}/src/main/resources</outputDirectory>
+ <overWriteReleases>true</overWriteReleases>
+ <overWriteSnapshots>true</overWriteSnapshots>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>2.3.1</version>
@@ -135,19 +163,19 @@
</configOptions>
</configuration>
</execution>
-<!--
+ <!--
<execution>
- <id>soadapter</id>
+ <id>aai</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
- <inputSpec>${basedir}/src/main/resources/so.vnfm.json</inputSpec>
+ <inputSpec>${basedir}/src/main/resources/aai_swagger_yaml/aai_swagger_v11.yaml</inputSpec>
<language>java</language>
<library>retrofit2</library>
- <output>${project.build.directory}/generated-sources/soadapter</output>
- <apiPackage>org.onap.soadapter.api</apiPackage>
- <modelPackage>org.onap.soadapter.model</modelPackage>
+ <output>${project.build.directory}/generated-sources/aai</output>
+ <apiPackage>org.onap.aai.api</apiPackage>
+ <modelPackage>org.onap.aai.model</modelPackage>
<configOptions>
<generateSupportingFiles>false</generateSupportingFiles>
<sourceFolder>src/gen/java/main</sourceFolder>