Chirag Patel created KARAF-5071:
-----------------------------------
Summary: feature:install -s and feature:install --no-auto-start
commands still start the feature bundles
Key: KARAF-5071
URL: https://issues.apache.org/jira/browse/KARAF-5071
Project: Karaf
Issue Type: Bug
Components: karaf-shell
Affects Versions: 4.1.0
Reporter: Chirag Patel
When the feature is installed with -s or --no-auto-start option the bundles are
still in active state. Example maven pom for a test feature provided below. the
bundle mvn:commons-logging/commons-logging/1.2 is still in Active Status rather
than Resolved.
<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>
<groupId>test-karaf</groupId>
<artifactId>test-karaf-tooling-plugin</artifactId>
<version>1.0</version>
<packaging>feature</packaging>
<version>1.0</version>
<packaging>feature</packaging>
<dependencies>
<!-- https://mvnrepository.com/artifact/commons-logging/commons-logging -->
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.2</version>
</dependency>
</dependencies>
<!-- <build>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<startLevel>80</startLevel>
<aggregateFeatures>false</aggregateFeatures>
</configuration>
</plugin>
</plugins>
</build> -->
<build>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>4.1.0</version>
<extensions>true</extensions>
<configuration>
<startLevel>80</startLevel>
<enableGeneration>true</enableGeneration>
<aggregateFeatures>true</aggregateFeatures>
</configuration>
</plugin>
</plugins>
</build>
</project>
----- Output
la -u|grep commons
20:53:11
61 │ Active │ 50 │ 1.10.0 │
mvn:commons-codec/commons-codec/1.10
62 │ Active │ 50 │ 3.2.2 │
mvn:commons-collections/commons-collections/3.2.2
63 │ Active │ 50 │ 2.0.1 │
mvn:org.apache.commons/commons-jexl/2.0.1
64 │ Active │ 50 │ 2.6 │
mvn:commons-lang/commons-lang/2.6
65 │ Active │ 50 │ 3.4.0 │
mvn:org.apache.commons/commons-lang3/3.4
66 │ Active │ 50 │ 3.5.0 │
mvn:commons-net/commons-net/3.5
67 │ Active │ 50 │ 1.6.0 │
mvn:commons-pool/commons-pool/1.6
68 │ Active │ 50 │ 2.4.2 │
mvn:org.apache.commons/commons-pool2/2.4.2
128 │ Active │ 50 │ 1.8.3.1 │
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-beanutils/1.8.3_1
129 │ Active │ 80 │ 1.4.0.3 │
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-dbcp/1.4_3
130 │ Active │ 50 │ 3.1.0.7 │
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient/3.1_7
136 │ Active │ 30 │ 0.3.11.1 │
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.not-yet-commons-ssl/0.3.11_1
192 │ Active │ 50 │ 0.6.4 │
mvn:org.jvnet.jaxb2_commons/jaxb2-basics-runtime/0.6.4
217 │ Active │ 80 │ 1.4 │
mvn:commons-io/commons-io/1.4
219 │ Active │ 80 │ 0 │
wrap:mvn:commons-cli/commons-cli/1.1
220 │ Active │ 80 │ 0 │
wrap:mvn:commons-codec/commons-codec/1.3
221 │ Active │ 80 │ 0 │
wrap:mvn:commons-logging/commons-logging/1.1.1
228 │ Active │ 80 │ 1.2.0 │
mvn:commons-logging/commons-logging/1.2
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)