Create ZIP with Dmaap DR docker-compose stuff 39/70239/1
authorPiotr Darosz <piotr.darosz@nokia.com>
Thu, 11 Oct 2018 09:12:27 +0000 (11:12 +0200)
committerPiotr Darosz <piotr.darosz@nokia.com>
Thu, 11 Oct 2018 09:13:01 +0000 (11:13 +0200)
Add to POM the ability to create artifact with DMaaP DR docker-compose

Change-Id: I50d09fc2a2a9325f92110d707d4c37d083d8b277
Issue-ID: DMAAP-847
Signed-off-by: Piotr Darosz <piotr.darosz@nokia.com>
14 files changed:
datarouter-docker-compose/pom.xml [new file with mode: 0644]
datarouter-docker-compose/src/assembly/zip.xml [new file with mode: 0644]
datarouter-docker-compose/src/main/resources/database/sql_init_01.sql [moved from docker-compose/database/sql_init_01.sql with 100% similarity]
datarouter-docker-compose/src/main/resources/docker-compose.yml [moved from docker-compose/docker-compose.yml with 100% similarity]
datarouter-docker-compose/src/main/resources/node_data/aaf_certs/org.onap.dmaap-dr.jks [moved from docker-compose/node_data/aaf_certs/org.onap.dmaap-dr.jks with 100% similarity]
datarouter-docker-compose/src/main/resources/node_data/aaf_certs/org.onap.dmaap-dr.trust.jks [moved from docker-compose/node_data/aaf_certs/org.onap.dmaap-dr.trust.jks with 100% similarity]
datarouter-docker-compose/src/main/resources/node_data/node.properties [moved from docker-compose/node_data/node.properties with 100% similarity]
datarouter-docker-compose/src/main/resources/prov_data/aaf_certs/org.onap.dmaap-dr.jks [moved from docker-compose/prov_data/aaf_certs/org.onap.dmaap-dr.jks with 100% similarity]
datarouter-docker-compose/src/main/resources/prov_data/aaf_certs/org.onap.dmaap-dr.trust.jks [moved from docker-compose/prov_data/aaf_certs/org.onap.dmaap-dr.trust.jks with 100% similarity]
datarouter-docker-compose/src/main/resources/prov_data/addFeed3.txt [moved from docker-compose/prov_data/addFeed3.txt with 100% similarity]
datarouter-docker-compose/src/main/resources/prov_data/addSubscriber.txt [moved from docker-compose/prov_data/addSubscriber.txt with 100% similarity]
datarouter-docker-compose/src/main/resources/prov_data/provserver.properties [moved from docker-compose/prov_data/provserver.properties with 100% similarity]
datarouter-docker-compose/src/main/resources/subscriber_data/subscriber.properties [moved from docker-compose/subscriber_data/subscriber.properties with 100% similarity]
pom.xml

diff --git a/datarouter-docker-compose/pom.xml b/datarouter-docker-compose/pom.xml
new file mode 100644 (file)
index 0000000..8ee7588
--- /dev/null
@@ -0,0 +1,61 @@
+<!--
+  ============LICENSE_START==================================================
+  * org.onap.dmaap
+  * ===========================================================================
+  * Copyright (C) 2018 Nokia. All rights reserved.
+  * ===========================================================================
+  * Licensed under the Apache License, Version 2.0 (the "License");
+  * you may not use this file except in compliance with the License.
+  * You may obtain a copy of the License at
+  *
+   *      http://www.apache.org/licenses/LICENSE-2.0
+  *
+   * Unless required by applicable law or agreed to in writing, software
+  * distributed under the License is distributed on an "AS IS" BASIS,
+  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  * See the License for the specific language governing permissions and
+  * limitations under the License.
+  * ============LICENSE_END====================================================
+  *
+  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
+  *
+-->
+<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>
+  <parent>
+    <groupId>org.onap.dmaap.datarouter</groupId>
+    <artifactId>parent</artifactId>
+    <version>1.0.3-SNAPSHOT</version>
+    <relativePath>../pom.xml</relativePath>
+  </parent>
+  <artifactId>datarouter-docker-compose</artifactId>
+  <packaging>pom</packaging>
+  <name>datarouter-docker-compose</name>
+  <properties>
+    <sonar.skip>true</sonar.skip>
+  </properties>
+  <build>
+    <finalName>datarouter-docker-compose</finalName>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>single</goal>
+            </goals>
+            <configuration>
+              <appendAssemblyId>false</appendAssemblyId>
+              <descriptors>
+                <descriptor>src/assembly/zip.xml</descriptor>
+              </descriptors>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
diff --git a/datarouter-docker-compose/src/assembly/zip.xml b/datarouter-docker-compose/src/assembly/zip.xml
new file mode 100644 (file)
index 0000000..44ec73b
--- /dev/null
@@ -0,0 +1,50 @@
+<!--
+  ============LICENSE_START==================================================
+  * org.onap.dmaap
+  * ===========================================================================
+  * Copyright (C) 2018 Nokia. All rights reserved.
+  * ===========================================================================
+  * Licensed under the Apache License, Version 2.0 (the "License");
+  * you may not use this file except in compliance with the License.
+  * You may obtain a copy of the License at
+  *
+   *      http://www.apache.org/licenses/LICENSE-2.0
+  *
+   * Unless required by applicable law or agreed to in writing, software
+  * distributed under the License is distributed on an "AS IS" BASIS,
+  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  * See the License for the specific language governing permissions and
+  * limitations under the License.
+  * ============LICENSE_END====================================================
+  *
+  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
+  *
+-->
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
+  <id>zip</id>
+  <includeBaseDirectory>true</includeBaseDirectory>
+
+  <formats>
+    <format>zip</format>
+  </formats>
+  <fileSets>
+    <fileSet>
+      <directory>${project.basedir}/src/main/resources</directory>
+      <outputDirectory>/</outputDirectory>
+      <includes>
+        <include>**</include>
+        <include>*/*</include>
+      </includes>
+    </fileSet>
+  </fileSets>
+  <dependencySets>
+    <dependencySet>
+      <outputDirectory>lib</outputDirectory>
+      <excludes>
+        <exclude>${project.groupId}:${project.artifactId}:jar:*</exclude>
+      </excludes>
+    </dependencySet>
+  </dependencySets>
+</assembly>
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 6870772..1292bfc 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
@@ -68,6 +68,7 @@
         <module>datarouter-prov</module>
         <module>datarouter-node</module>
         <module>datarouter-subscriber</module>
+        <module>datarouter-docker-compose</module>
     </modules>
     <build>
         <plugins>