Hi,

Your commands bundle should have in dependency:

<dependency>
        
<groupId>org.apache.karaf.shell</groupId><artifactId>org.apache.karaf.shell.console</artifactId>
        <version>2.2.9</version>
</dependency>

and in the maven-bundle-plugin configuration:

<Import-Package>
              org.apache.felix.service.command;version="[0.6,1)",
              org.apache.felix.gogo.commands;version="[0.6,1)",
              org.apache.karaf.shell.console;version="[2.2,4)",
              *
</Import-Package>

Like this, it will work with Karaf 2.2.x, 2.3.x, and trunk.

Regards
JB

On 01/30/2013 12:38 PM, dejanb wrote:
Hi,

I'm having the said problem trying to test activemq features in 3.0. I'm
getting

Error executing command: Could not start bundle
mvn:org.apache.activemq/activemq-karaf/5.8-SNAPSHOT in feature(s)
activemq-broker-5.8-SNAPSHOT: Unresolved constraint in bundle activemq-karaf
[108]: Unable to resolve 108.0: missing requirement [108.0]
osgi.wiring.package;
(&(osgi.wiring.package=org.apache.felix.gogo.commands.basic)(version>=0.10.0)(!(version>=1.0.0)))

Is there anything I need to add to the feature to be sure it will work both
in 2.x and 3.x?




--
View this message in context: 
http://karaf.922171.n3.nabble.com/DISCUSS-3rd-party-Karaf-commands-compatibility-between-2-x-and-3-x-tp4027525p4027529.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.


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

Reply via email to