Hi Minto,

can you try to use dependency="true" on the bundle ?

Regards
JB

On 09/24/2013 10:58 AM, Minto van der Sluis wrote:
Hi Folks,

When using Karaf 3.0.0. RC1 I end up with an assembly that does not
contain all dependencies. All features.xml files are present but not all
bundles mentioned in these features are present.

It almost seems as if bundles from dependent features are missing in the
assembly. Like in the following brief example where "my-features" is
included in the assembly as bootFeature:

   <feature name="other-feature" ...>
     <bundle>mvn:...</bundle>  <-- not present in assembly
   </feature>

   <feature name="my-features" .... >
     <feature>other-feature</feature>
     <bundle>mvn:.... </bundle>  <-- present in assembly
   </feature>

On my development system I did not immediately noticed this because the
bundles could be found by there maven id. However when I installed the
assembly on a system without maven these bundles could not be started.

I am probably missing an important detail. What do I need to do to get
these missing bundles in my assembly as well?

Regards,

Minto


Assembly build log adding all the feature files:

<snip>
[INFO] --- karaf-maven-plugin:3.0.0.RC1:install-kars
(default-install-kars) @ reva-assembly ---
[INFO] Installing feature
file:/C:/Dev/src/Werk/Ictu/Digimelding2.0/github/reva/src/reva-assembly/target/assembly/system/org/apache/karaf/features/framework/3.0.0.RC1/framework-3.0.0.RC1-features.xml
to system and startup.properties
[INFO] Adding feature repository to system:
mvn:org.apache.karaf.features/standard/3.0.0.RC1/xml/features
[INFO] Adding feature repository to system:
mvn:org.apache.karaf.features/enterprise/3.0.0.RC1/xml/features
[INFO] Adding feature repository to system:
mvn:nl.overheid.stelsel.gba.reva/reva-features/0.1.0-SNAPSHOT/xml/features
[INFO] Adding feature repository to system:
mvn:org.apache.shiro/shiro-features/1.2.2/xml/features
[INFO] Adding feature repository to system:
mvn:org.ops4j.pax.wicket/paxwicket/3.0.1/xml/features
[INFO] Adding feature repository to system:
mvn:org.ops4j.pax.wicket/features/3.0.1/xml/features
[INFO] Adding feature repository to system:
mvn:nl.overheid.stelsel.digimelding.astore/clerezza-features/0.7.1.36/xml/features
[INFO] Adding feature repository to system:
mvn:nl.overheid.stelsel.digimelding.astore/astore-features/0.7.1.36/xml/features
<snap>


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to