Hi Garret,

If you just do feature:repo-add camel, it will install Camel 3.0.x.

For now, the example works with Camel 2.x.

So, you have to do:

feature:repo-add camel 2.24.3

Anyway, the karaf camel example does it for you. So, on a fresh Karaf
instance, you can simply do:

feature:repo-add
mvn:org.apache.karaf.examples/karaf-camel-example-features/4.2.7/xml

It's described in the example README.md:
https://github.com/apache/karaf/blob/master/examples/karaf-camel-example/README.md

Regards
JB

On 22/01/2020 05:59, Garrett Rolfs wrote:
> Greetings,
> 
> This is in reference to the Quick Start section found in:
> 
>      https://karaf.apache.org/manual/latest/
> 
> After downloading 4.2.7 and starting the command line console I
> attempted to execute 'feature:repo-add camel' as shown in Section
> 2.4. The command immediately failed with:
> 
>   Adding feature url
>   mvn:org.apache.camel.karaf/apache-camel/RELEASE/xml/features Error
>   executing command: Error resolving artifact
>   org.apache.camel.karaf:apache-camel:xml:features:RELEASE: [Failed to
>   resolve version for
>   org.apache.camel.karaf:apache-camel:xml:features:RELEASE: Could not
>   find metadata org.apache.camel.karaf:apache-camel/maven-metadata.xml
>   in local (/Users/stage3/.m2/repository)] :
>   mvn:org.apache.camel.karaf/apache-camel/RELEASE/xml/features
> 
> I shutdown karaf and then erased my install and untarred again. This
> time I navigated to:
> 
>      <install_root>/apache-karaf-4.2.7/examples/karaf-camel-example
> 
> and followed the instructions in README.md. When executing
> 'feature:install karaf-camel-example-java', I receive:
> 
>   Error executing command: Unable to resolve root: missing requirement
>   [root] osgi.identity; osgi.identity=karaf-camel-example-java;
>   type=karaf.feature; version="[4.3.0.SNAPSHOT,4.3.0.SNAPSHOT]";
>   filter:="(&(osgi.identity=karaf-camel-example-java)(type=karaf.feature)
>   (version>=4.3.0.SNAPSHOT)(version<=4.3.0.SNAPSHOT))"
>   [caused by: Unable to resolve karaf-camel-example-java/4.3.0.SNAPSHOT:
>   missing requirement [karaf-camel-example-java/4.3.0.SNAPSHOT]
>   osgi.identity;
>   osgi.identity=org.apache.karaf.examples.karaf-camel-example-java;
>   type=osgi.bundle; version="[4.3.0.SNAPSHOT,4.3.0.SNAPSHOT]";
>   resolution:=mandatory [caused by: Unable to resolve
>   org.apache.karaf.examples.karaf-camel-example-java/4.3.0.SNAPSHOT:
>   missing requirement
>   [org.apache.karaf.examples.karaf-camel-example-java/4.3.0.SNAPSHOT]
>   osgi.wiring.package;
>   filter:="(&(osgi.wiring.package=org.apache.camel)(version>=2.24.0)
>   (!(version>=3.0.0)))"]]
> 
> I assume the references to 4.3.0.SNAPSHOT are because the repo URL
> referenced "LATEST". I cleaned everything up and used the following
> command (replaced LATEST with 4.2.7):
> 
>         feature:repo-add
>         mvn:org.apache.karaf.examples/karaf-camel-example-features/4.2.7/xml
> 
> But the feature install resulted in:
> 
>   Error executing command: Unable to resolve root: missing requirement
>   [root] osgi.identity; osgi.identity=karaf-camel-example-java;
>   type=karaf.feature; version="[4.2.7,4.2.7]";
>   filter:="(&(osgi.identity=karaf-camel-example-java)(type=karaf.feature)
>   (version>=4.2.7)(version<=4.2.7))"
>   [caused by: Unable to resolve karaf-camel-example-java/4.2.7: missing
>   requirement [karaf-camel-example-java/4.2.7] osgi.identity;
>   osgi.identity=karaf-camel-example-common; type=karaf.feature;
>   version="[4.2.7,4.2.7]" [caused by: Unable to resolve
>   karaf-camel-example-common/4.2.7: missing requirement
>   [karaf-camel-example-common/4.2.7] osgi.identity;
>   osgi.identity=camel-blueprint; type=karaf.feature]]
> 
> What am I missing/doing wrong?
> 
> Thank you.
> 
> -Garrett Rolfs
> 

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

Reply via email to