From 54ccd4332ff80ea8ba6cd3762a8d3fc7a66cff00 Mon Sep 17 00:00:00 2001 From: Tony Tkacik Date: Fri, 17 Apr 2015 15:34:36 +0200 Subject: [PATCH] Bug 3011: Changed scope of karaf:standard feature to runtime Compile time scope of karaf standard feature caused Karaf to install tomcat, jetty and lot of other features via the startup.properties. In Karaf 3.0.3 the tomcat feature works fine if installed via the boot features in the features.cfg but if installed via startup.properties, it prevents Karaf from starting. Also added the eventadmin feature to the startupFeatures so it is included in the startup.properties as the bundle does not work properly for some reason if installed as a boot feature. Change-Id: I309f7b116976493ba1377b442fb46f5a88f68361 Signed-off-by: Tony Tkacik Signed-off-by: Ryan Goulding --- karaf/karaf-parent/pom.xml | 13 +- karaf/opendaylight-karaf/pom.xml | 281 ++----------------------------- 2 files changed, 25 insertions(+), 269 deletions(-) diff --git a/karaf/karaf-parent/pom.xml b/karaf/karaf-parent/pom.xml index 433ae823ac..3ff6930096 100644 --- a/karaf/karaf-parent/pom.xml +++ b/karaf/karaf-parent/pom.xml @@ -59,13 +59,17 @@ and is available at http://www.eclipse.org/legal/epl-v10.html - + org.apache.karaf.features standard ${karaf.version} xml features + runtime @@ -208,7 +212,12 @@ and is available at http://www.eclipse.org/legal/epl-v10.html ${karaf.maven.version} true - + + + eventadmin + standard ${karaf.localFeature} diff --git a/karaf/opendaylight-karaf/pom.xml b/karaf/opendaylight-karaf/pom.xml index a34361970d..2364bed8ad 100644 --- a/karaf/opendaylight-karaf/pom.xml +++ b/karaf/opendaylight-karaf/pom.xml @@ -3,9 +3,9 @@ 4.0.0 org.opendaylight.controller - commons.opendaylight + karaf-parent 1.7.0-SNAPSHOT - ../../opendaylight/commons/opendaylight + ../karaf-parent distribution.opendaylight-karaf pom @@ -13,43 +13,11 @@ + into startup.properties and the feature repo itself is not installed --> org.apache.karaf.features framework - ${karaf.version} kar - - org.opendaylight.controller - karaf.branding - compile - - - - - org.opendaylight.controller - opendaylight-karaf-resources - ${project.version} - - - - - org.apache.karaf.features - standard - ${karaf.version} - features - xml - - - - - - org.apache.aries.proxy - org.apache.aries.proxy.impl - 1.0.5 - - - - - - - org.eclipse.m2e - lifecycle-mapping - 1.0.0 - - - - - - org.apache.felix - maven-bundle-plugin - [0,) - - cleanVersions - - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - [0,) - - copy - unpack - - - - - - - - - org.apache.karaf.tooling - karaf-maven-plugin - [0,) - - commands-generate-help - - - - - - - - - org.fusesource.scalate - maven-scalate-plugin - [0,) - - sitegen - - - - - - - - - org.apache.servicemix.tooling - depends-maven-plugin - [0,) - - generate-depends-file - - - - - - - - - - - - - - - org.apache.karaf.tooling - karaf-maven-plugin - true - - - - standard - - - - - - process-resources - - install-kars - - process-resources - - - package - - instance-create-archive - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - - **\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/ - - - - org.apache.maven.plugins - maven-dependency-plugin - - - copy - - copy - - - generate-resources - - - - org.opendaylight.controller - karaf.branding - ${karaf.branding.version} - target/assembly/lib - karaf.branding-${branding.version}.jar - - - - org.bouncycastle - bcprov-jdk15on - ${bouncycastle.version} - target/assembly/lib/ext - bcprov-jdk15on-${bouncycastle.version}.jar - - - - - - unpack-karaf-resources - - unpack-dependencies - - prepare-package - - ${project.build.directory}/assembly - org.opendaylight.controller - opendaylight-karaf-resources - META-INF\/** - true - false - - - - copy-dependencies - prepare-package - - copy-dependencies - - - ${project.build.directory}/assembly/system - distribution.vtn-coordinator - false - true - true - true - true - true - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - prepare-package - - run - - - - - - - - - - - - - - - - - - - - - - - - - scm:git:http://git.opendaylight.org/gerrit/controller.git scm:git:ssh://git.opendaylight.org:29418/controller.git -- 2.36.6