Hi Mark,

it looks like minlog is not an OSGi bundle and provided in kar in compile scope (so added in the startup.properties). So the karaf-maven-plugin add it in the startup.properties with wrap: prefix.

Regards
JB

On 09/25/2014 09:38 AM, Mark Doyle wrote:
Hi all,

I've created a custom distribution using a kar built from the karaf
maven plugin. The feature file was generated by the plugin.

When I start karaf I get the exception below. I've tried both 3.0.1 and
3.0.2-SNAPSHOT. After the exception karaf quits.

java.lang.RuntimeException: Error installing bundle listed in
startup.properties with url:
wrap:mvn:com.esotericsoftware.minlog/minlog/1.2 and startlevel: 50
at org.apache.karaf.main.Main.installAndStartBundles(Main.java:384)
at org.apache.karaf.main.Main.launch(Main.java:245)
at org.apache.karaf.main.Main.main(Main.java:167)
Caused by: java.lang.RuntimeException: Could not resolve
wrap:mvn:com.esotericsoftware.minlog/minlog/1.2
at
org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59)
at org.apache.karaf.main.Main.installAndStartBundles(Main.java:377)
... 2 more


The jar is not an OSGi bundle hence the features file declaring the wrap
protocol and it IS in the system folder here:
karaf-dist-0.1.2-SNAPSHOT\system\com\esotericsoftware\minlog\minlog\1.2\minlog-1.2.jar

I've tried moving my feature between bootFeatures, startupFeatures and
installedFeatures (I don't really understand the difference by the way)
for the custom dist but it make no difference.

On another note, since this jar won't have an activator and take part in
the OSGI lifecycle layer I'm wondering why it needs to be started
anyway. Perhaps that is what boot, startup and installed are for?

Thanks again

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

Reply via email to