Hi JB, Apparently, that missing org.springframework.data.geo package is in
org.apache.servicemix.bundles.spring-data-commons/, but requires a version
under 2.x. When I use 1.x bundles, It can't activate the bundle and remains in
"Installed" since there are a lot of dependencies that can't resolve like
com.google.common.base, com.querydsl.core, org.springframework.aop and a lot
more (don't know If I could send the entire trace here).
If I use a 2.x version, spring-data-commons bundle can start and actually
export that required package by camel-spring-redis:
karaf@root()> find-class geo
Apache ServiceMix :: Bundles :: spring-data-commons
(289)org/springframework/data/geo/
But since the feature requires
(&(osgi.wiring.package=org.springframework.data.geo)(version>=1.0.0)(!(version>=2.0.0)))"]]
still can't start. Any recommendations?
Thanks in advanced.
El miércoles, 31 de agosto de 2022, 08:37:43 ART, Jean-Baptiste Onofré
<[email protected]> escribió:
There's no spring-data feature, only spring-data bundles:
https://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-data-commons/
https://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-data-keyvalue/
https://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-data-neo4j/
https://repo1.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.spring-data-redis/
I think it makes sense to create spring-data "standard" feature. In
the meantime, you can install the bundles directly.
Regards
JB
On Wed, Aug 31, 2022 at 1:09 PM [email protected]
<[email protected]> wrote:
>
> Hi JB, I can't see a spring-data feature to install, ¿am I missing
>something?Thanks in advanced.
> El miércoles, 31 de agosto de 2022, 03:04:50 ART, Jean-Baptiste Onofré
><[email protected]> escribió:
>
> Hi,
>
> It seems the missing part in spring-data bundle. Let me check the
> packages exported by the corresponding SMX bundle.
>
> Regards
> JB
>
> On Tue, Aug 30, 2022 at 6:37 PM [email protected]
> <[email protected]> wrote:
> >
> > Hi, I'm trying to install the camel-spring-redis module, but it's throwing
> > a dependency error:
> > karaf@root()> feature:install camel-spring-redis
> >
> > Error executing command: Unable to resolve root: missing requirement [root]
> > osgi.identity; osgi.identity=camel-spring-redis; type=karaf.feature;
> > version="[2.24.2,2.24.2]";
> > filter:="(&(osgi.identity=camel-spring-redis)(type=karaf.feature)(version>=2.24.2)(version<=2.24.2))"
> > [caused by: Unable to resolve camel-spring-redis/2.24.2: missing
> > requirement [camel-spring-redis/2.24.2] osgi.identity;
> > osgi.identity=org.apache.camel.camel-spring-redis; type=osgi.bundle;
> > version="[2.24.2,2.24.2]"; resolution:=mandatory [caused by: Unable to
> > resolve org.apache.camel.camel-spring-redis/2.24.2: missing requirement
> > [org.apache.camel.camel-spring-redis/2.24.2] osgi.wiring.package;
> > filter:="(&(osgi.wiring.package=org.springframework.data.geo)(version>=1.0.0)(!(version>=2.0.0)))"]]
> >
> > I've already installed almost all spring features, but nothing seems to
> > export org.springframework.data.geo. I'm using camel 2.24.2.
> > Could anybody install camel-spring-redis on karaf?Thanks in advanced
>