adding in a client for sdnc 05/56305/4
authorDR695H <dr695h@att.com>
Thu, 12 Jul 2018 16:45:41 +0000 (12:45 -0400)
committerTimoney, Dan (dt5972) <dt5972@att.com>
Tue, 17 Jul 2018 17:41:48 +0000 (13:41 -0400)
this will be used by people who want to build clients for the network
control

Change-Id: Icf6b2920746a58fbc52610fe6d0fce74542c06df
Issue-ID: SDNC-382
Signed-off-by: DR695H <dr695h@att.com>
.gitignore [new file with mode: 0644]
client/.gitignore [new file with mode: 0644]
client/pom.xml [new file with mode: 0644]
pom.xml [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..d8fe4fa
--- /dev/null
@@ -0,0 +1 @@
+/.project
diff --git a/client/.gitignore b/client/.gitignore
new file mode 100644 (file)
index 0000000..b83d222
--- /dev/null
@@ -0,0 +1 @@
+/target/
diff --git a/client/pom.xml b/client/pom.xml
new file mode 100644 (file)
index 0000000..374adbf
--- /dev/null
@@ -0,0 +1,92 @@
+<?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">
+
+
+    <modelVersion>4.0.0</modelVersion>
+    <packaging>jar</packaging>
+    <groupId>org.onap.sdnc.apps</groupId>
+    <artifactId>client</artifactId>
+    <version>1.1.0-SNAPSHOT</version>
+
+    <name>ONAP :: ${project.groupId} :: ${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>1.1.0-SNAPSHOT</version>
+    </parent>
+
+    <properties>
+        <northbound.version>1.2.0-SNAPSHOT</northbound.version>
+    </properties>
+
+    <dependencies>
+        <!-- This is where the yang comes from -->
+        <dependency>
+            <groupId>org.onap.sdnc.northbound</groupId>
+            <artifactId>generic-resource-api-model</artifactId>
+            <version>${northbound.version}</version>
+        </dependency>
+        <!-- End this is where the yang comes from -->        
+    </dependencies>
+
+    <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.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>
+                    <execution>
+                        <goals>
+                            <goal>generate</goal>
+                        </goals>
+                        <configuration>
+                            <configOptions>
+                                <java8>true</java8>
+                                <withXml>true</withXml>
+                                <output>${project.build.directory}/generated-sources/swagger</output>
+                                <generateApis>false</generateApis>
+                                <generateApiTests>false</generateApiTests>
+                                <generateModels>true</generateModels>
+                                <generateModelTests>false</generateModelTests>
+                                <generateSupportingFiles>false</generateSupportingFiles>
+                                <apiPackage>org.onap.sdnc.apps.client.handler</apiPackage>
+                                <modelPackage>org.onap.sdnc.apps.client.model</modelPackage>
+                                <invokerPackage>org.onap.sdnc.apps.client.invoker</invokerPackage>
+                                <sourceFolder>src/main/java</sourceFolder>
+                                <useBeanValidation>true</useBeanValidation>
+                                <interfaceOnly>true</interfaceOnly>
+                            </configOptions>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-source-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+</project>
diff --git a/pom.xml b/pom.xml
new file mode 100644 (file)
index 0000000..a138692
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,21 @@
+<?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">
+
+
+    <modelVersion>4.0.0</modelVersion>
+    <packaging>pom</packaging>
+    <groupId>org.onap.sdnc</groupId>
+    <artifactId>apps</artifactId>
+    <version>1.1.0-SNAPSHOT</version>
+
+    <name>ONAP :: ${project.groupId} :: ${project.artifactId}</name>
+    <url>http://wiki.onap.org</url>
+    <description>POM to be used for apps in SDNC project</description>
+    
+    <modules>
+        <module>client</module>
+    </modules>
+
+</project>