First stab to new opendaylight distribution 14/70314/4
authorLuis Gomez <ecelgp@gmail.com>
Wed, 4 Apr 2018 03:22:10 +0000 (20:22 -0700)
committerLuis Gomez <ecelgp@gmail.com>
Wed, 4 Apr 2018 05:59:59 +0000 (22:59 -0700)
- Create profile to build the full odl distro:
mvn clean install -Punmanaged
- Full odl distro artifact: opendaylight-0.9.0-SNAPSHOT
- Add USC project as unmanaged, to activate project,
do in karaf console: feature:repo-add \
mvn:org.opendaylight.usc/usc-features/1.6.0-SNAPSHOT/xml/features

Change-Id: Ie0671883ddb922e3cf0b916683e2df9441a3f9a7
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
opendaylight/pom.xml [new file with mode: 0644]
pom.xml

diff --git a/opendaylight/pom.xml b/opendaylight/pom.xml
new file mode 100644 (file)
index 0000000..e96a4b9
--- /dev/null
@@ -0,0 +1,59 @@
+<?xml version="1.0"?>
+<!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+ Copyright (c) 2018 Lumina Networks, Inc. and others.  All rights reserved.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ and is available at http://www.eclipse.org/legal/epl-v10.html
+-->
+<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.opendaylight.integration</groupId>
+        <artifactId>karaf</artifactId>
+        <version>0.9.0-SNAPSHOT</version>
+        <relativePath/>
+    </parent>
+    <groupId>org.opendaylight.integration</groupId>
+    <artifactId>opendaylight</artifactId>
+    <version>0.9.0-SNAPSHOT</version>
+    <packaging>pom</packaging>
+    <name>ODL :: integration :: ${project.artifactId}</name>
+    <description>The actual Karaf archive building sub-project.</description>
+    <url>https://wiki.opendaylight.org/view/Integration/Distribution</url>
+    <licenses>
+        <license>
+            <name>Eclipse Public License v1.0</name>
+            <url>http://www.eclipse.org/legal/epl-v10.html</url>
+        </license>
+    </licenses>
+    <!-- FIXME: Add developers section -->
+    <scm>
+        <connection>scm:git:https://git.opendaylight.org/gerrit/integration/distribution.git</connection>
+        <developerConnection>scm:git:ssh://git.opendaylight.org:29418/integration/distribution.git</developerConnection>
+        <url>https://git.opendaylight.org/gerrit/gitweb?p=integration/distribution.git;a=tree;f=karaf;hb=HEAD</url>
+        <tag>HEAD</tag>
+    </scm>
+    <profiles>
+        <!-- USC -->
+        <profile>
+            <id>usc</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <dependencies>
+                <dependency>
+                    <groupId>org.opendaylight.usc</groupId>
+                    <artifactId>usc-features</artifactId>
+                    <version>1.6.0-SNAPSHOT</version>
+                    <classifier>features</classifier>
+                    <type>xml</type>
+                    <scope>test</scope>
+                </dependency>
+            </dependencies>
+        </profile>
+    </profiles>
+</project>
diff --git a/pom.xml b/pom.xml
index cbd037ab22586408cef537aa5b3a4960669f23a6..59514e48febc2e9d689a946cb78c8458c6c79147 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         <url>https://git.opendaylight.org/gerrit/gitweb?p=integration/distribution.git;a=tree;hb=HEAD</url>
         <tag>HEAD</tag>
     </scm>
-    <modules>
-        <!-- Keep this list sorted alphabetically please -->
-        <module>artifacts</module>
-        <module>karaf</module>
-        <module>features</module>
-    </modules>
+    <profiles>
+        <profile>
+            <id>managed</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <modules>
+                <module>artifacts</module>
+                <module>karaf</module>
+                <module>features</module>
+            </modules>
+        </profile>
+       <profile>
+            <id>unmanaged</id>
+            <activation>
+                <activeByDefault>false</activeByDefault>
+            </activation>
+            <modules>
+                <module>opendaylight</module>
+            </modules>
+        </profile>
+    </profiles>
 </project>