summaryrefslogtreecommitdiffstats
path: root/appc-client/client-kit/pom.xml
diff options
context:
space:
mode:
authorJoey Sullivan <joey.sullivan@amdocs.com>2017-12-22 15:32:48 +0000
committerSkip Wonnell <skip@att.com>2017-12-22 17:35:43 +0000
commitf2614e766147fd345058f137852eeaf892181fc1 (patch)
treec67278f382f95332dcf509d07e3c69976952ef59 /appc-client/client-kit/pom.xml
parent9475355553b59df58d6f516e2c9109babae9ffd0 (diff)
Automate Updates to the API Client Library
Removed client-kit generated code from git repo. This code is now generated under the target folder. client-kit now uses latest appc-provider-lcm.yang on the branch. Change-Id: I7a20774b60bb447343886997c32ca3b3c5dcbafa Issue-ID: APPC-360 Signed-off-by: Joey Sullivan <joey.sullivan@amdocs.com>
Diffstat (limited to 'appc-client/client-kit/pom.xml')
-rw-r--r--appc-client/client-kit/pom.xml47
1 files changed, 47 insertions, 0 deletions
diff --git a/appc-client/client-kit/pom.xml b/appc-client/client-kit/pom.xml
index cc21d0401..3ff3b7844 100644
--- a/appc-client/client-kit/pom.xml
+++ b/appc-client/client-kit/pom.xml
@@ -38,6 +38,52 @@
<licenseDir>${project.parent.parent.basedir}</licenseDir>
</properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.onap.appc.client</groupId>
+ <artifactId>code-generator</artifactId>
+ <version>${project.parent.version}</version>
+ <dependencies>
+ <dependency>
+ <groupId>org.onap.appc</groupId>
+ <artifactId>appc-provider-model</artifactId>
+ <version>${project.parent.version}</version>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <id>code-generate-json</id>
+ <goals>
+ <goal>generate-sources</goal>
+ </goals>
+ <configuration>
+ <sourceFileName>META-INF/yang/appc-provider-lcm.yang</sourceFileName>
+ <outputFileName>target/generated-sources/appc-provider-lcm/appc-provider-lcm.json</outputFileName>
+ <templateName>templates/open-api/yang-to-open-api.ftl</templateName>
+ <contextBuilderClassName>org.onap.appc.tools.generator.extensions.YangContextBuilderImpl
+ </contextBuilderClassName>
+ <contextConfigFileName>APPC</contextConfigFileName>
+ </configuration>
+ </execution>
+ <execution>
+ <id>code-generate-java</id>
+ <goals>
+ <goal>generate-sources</goal>
+ </goals>
+ <configuration>
+ <sourceFileName>target/generated-sources/appc-provider-lcm/appc-provider-lcm.json</sourceFileName>
+ <outputFileName>target/generated-sources/appc-provider-lcm/output.txt</outputFileName>
+ <templateName>templates/client-kit/open-api-to-java.ftl</templateName>
+ <contextBuilderClassName>org.onap.appc.tools.generator.extensions.JsonContextBuilderImpl</contextBuilderClassName>
+ <contextConfigFileName>configuration/client-kit.properties</contextConfigFileName>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
<dependencies>
<dependency>
<groupId>org.onap.appc.client</groupId>
@@ -50,5 +96,6 @@
<version>${yang.parser.impl.version}</version>
<scope>test</scope>
</dependency>
+
</dependencies>
</project>