Add Karaf build profile 72/70572/1
authorDaniel Farrell <dfarrell@redhat.com>
Sat, 7 Apr 2018 01:09:05 +0000 (21:09 -0400)
committerDaniel Farrell <dfarrell@redhat.com>
Sat, 7 Apr 2018 04:20:48 +0000 (04:20 +0000)
Project local Karaf distros are handy for devs to test their work
however is unneeded by autorelease builds and should not be released
as part of the Simultaneous Release. Add a profile that is active by
default so that default behavior is unchanged however allows the
autorelease project to disable building this module.

Issue: RELENG-86
Change-Id: I135238264ca0732336276d65f58e04ac420bc62c
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index f96ddf0824dd47ae8281af04f4112640541942c0..e1ac28b59493f69c595e73460121f065b4ab6450 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -30,7 +30,6 @@
         <module>openflowplugin-impl</module>
         <module>openflowplugin-common</module>
         <module>extension</module>
-        <module>distribution/karaf</module>
         <module>openflowplugin-blueprint-config</module>
         <!-- <module>openflowplugin-it</module> -->
         <module>test-provider</module>
         <module>model</module>
         <module>samples</module>
     </modules>
+
+    <profiles>
+        <profile>
+            <id>karaf</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <modules>
+                <module>distribution/karaf</module>
+            </modules>
+        </profile>
+    </profiles>
 </project>