DG's and Templates for A1 Adapter
[ccsdk/distribution.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 8c9e5eb..815c9c8 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -1,32 +1,87 @@
 <?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>odlparent-boron-sr3</artifactId>
-               <version>0.0.1-SNAPSHOT</version>
-       </parent>
+    <parent>
+        <groupId>org.onap.ccsdk.parent</groupId>
+        <artifactId>odlparent-lite</artifactId>
+        <version>1.5.1-SNAPSHOT</version>
+    </parent>
 
-       <modelVersion>4.0.0</modelVersion>
-       <packaging>pom</packaging>
-       <groupId>org.onap.ccsdk.distribution</groupId>
-       <artifactId>distribution-root</artifactId>
-       <version>0.0.1-SNAPSHOT</version>
+    <groupId>org.onap.ccsdk.distribution</groupId>
+    <artifactId>distribution-root</artifactId>
+    <version>0.7.0-SNAPSHOT</version>
+    <packaging>pom</packaging>
 
-       <name>Distribution</name>
-       <description>Creates distributuon bundles for CCSDK</description>
-
-       <properties>
-               <application.name>distribution</application.name>
-
-               <maven.build.timestamp.format>yyMMdd-HHmmss</maven.build.timestamp.format>
-               <build.number>${maven.build.timestamp}</build.number>
-               <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-               <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
-       </properties>
+    <name>ccsdk-distribution</name>
+    <description>Creates distributuon bundles for CCSDK</description>
 
     <modules>
+        <module>platform-logic</module>
+        <module>dependencies</module>
+        <module>alpine</module>
         <module>ubuntu</module>
+        <module>opendaylight</module>
+        <module>odlsli</module>
+        <module>dgbuilder</module>
+        <module>dgbuilder-docker</module>
+        <module>ansible-server</module>
+        <module>saltstack-server</module>
     </modules>
+
+    <properties>
+        <application.name>distribution</application.name>
+
+        <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
+        <build.number>${maven.build.timestamp}</build.number>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+    </properties>
+
+    <profiles>
+        <profile>
+            <id>dependency-list</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>com.github.ferstl</groupId>
+                        <artifactId>depgraph-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <phase>validate</phase>
+                                <inherited>false</inherited>
+                                <goals>
+                                    <goal>aggregate</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>build-helper-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>attach-artifacts</id>
+                                <phase>package</phase>
+                                <inherited>false</inherited>
+                                <goals>
+                                    <goal>attach-artifact</goal>
+                                </goals>
+                                <configuration>
+                                    <artifacts>
+                                        <artifact>
+                                            <file>${dependency-list.file}</file>
+                                            <type>txt</type>
+                                            <classifier>dependencies</classifier>
+                                        </artifact>
+                                    </artifacts>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
 </project>