You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Dmitri T <ta...@gmail.com> on 2023/01/23 11:14:30 UTC

tag contains a version range in features.xml

Hello.

Starting from Camel 3.8 features.xml contains a version range inside
<repository> instead of a concrete version:

<repository>mvn:org.apache.cxf.karaf/apache-cxf/[3,4)/xml/features</repository>
<repository>mvn:org.apache.jclouds.karaf/jclouds-karaf/[2.1,2.1]/xml/features</repository>
<repository>mvn:org.ops4j.pax.cdi/pax-cdi-features/[1,2)/xml/features</repository>
<repository>mvn:org.hibernate.validator/hibernate-validator-osgi-karaf-features/[6.2,6.2]/xml/features</repository>

See https://repo1.maven.org/maven2/org/apache/camel/karaf/apache-camel/3.8.0/apache-camel-3.8.0-features.xml

Re: tag contains a version range in features.xml

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,

Agree it is always saner to pin a tested version than using ranges which,
even if supported by feature service, generally do not give any runtime
guarantee until you lock them elsewhere so probably better to release
something validated than something which *should* be fine IMHO - in
particular when it becomes a compat matrix crossing some features ;).

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le lun. 23 janv. 2023 à 13:12, Dmitri T <ta...@gmail.com> a écrit :

> I believe it's legit to have a version range for <feature> tag, but
> not for <repository>. When you add a repository, you provide a
> concrete url to maven repo.
>
> пн, 23 янв. 2023 г. в 14:21, Andrea Cosentino <an...@gmail.com>:
> >
> > This has been done here:
> >
> https://github.com/apache/camel-karaf/commit/79dfa35ff299a779687eb85e7bc34785969cfe16
> >
> > It's legit to have a version range and not a concrete version.
> >
> > Il giorno lun 23 gen 2023 alle ore 12:15 Dmitri T <ta...@gmail.com>
> ha
> > scritto:
> >
> > > Hello.
> > >
> > > Starting from Camel 3.8 features.xml contains a version range inside
> > > <repository> instead of a concrete version:
> > >
> > >
> > >
> <repository>mvn:org.apache.cxf.karaf/apache-cxf/[3,4)/xml/features</repository>
> > >
> > >
> <repository>mvn:org.apache.jclouds.karaf/jclouds-karaf/[2.1,2.1]/xml/features</repository>
> > >
> > >
> <repository>mvn:org.ops4j.pax.cdi/pax-cdi-features/[1,2)/xml/features</repository>
> > >
> > >
> <repository>mvn:org.hibernate.validator/hibernate-validator-osgi-karaf-features/[6.2,6.2]/xml/features</repository>
> > >
> > > See
> > >
> https://repo1.maven.org/maven2/org/apache/camel/karaf/apache-camel/3.8.0/apache-camel-3.8.0-features.xml
> > >
>
>
>
> --
> Best regards,
> Dmitri
>

Re: tag contains a version range in features.xml

Posted by Andrea Cosentino <an...@gmail.com>.
By the way, with the newer LTS versions we have only a fixed version for
cxf and a range for pax-cdi

https://github.com/apache/camel-karaf/blob/camel-karaf-3.20.x/platforms/karaf/features/src/main/resources/features.xml#L21-L22

Il giorno lun 23 gen 2023 alle ore 13:16 Andrea Cosentino <an...@gmail.com>
ha scritto:

> As far as I know it's possible:
> https://issues.apache.org/jira/browse/KARAF-5999
>
> You could open an issue for fixing this on Camel 3.x
>
> Il giorno lun 23 gen 2023 alle ore 13:12 Dmitri T <ta...@gmail.com>
> ha scritto:
>
>> I believe it's legit to have a version range for <feature> tag, but
>> not for <repository>. When you add a repository, you provide a
>> concrete url to maven repo.
>>
>> пн, 23 янв. 2023 г. в 14:21, Andrea Cosentino <an...@gmail.com>:
>> >
>> > This has been done here:
>> >
>> https://github.com/apache/camel-karaf/commit/79dfa35ff299a779687eb85e7bc34785969cfe16
>> >
>> > It's legit to have a version range and not a concrete version.
>> >
>> > Il giorno lun 23 gen 2023 alle ore 12:15 Dmitri T <ta...@gmail.com>
>> ha
>> > scritto:
>> >
>> > > Hello.
>> > >
>> > > Starting from Camel 3.8 features.xml contains a version range inside
>> > > <repository> instead of a concrete version:
>> > >
>> > >
>> > >
>> <repository>mvn:org.apache.cxf.karaf/apache-cxf/[3,4)/xml/features</repository>
>> > >
>> > >
>> <repository>mvn:org.apache.jclouds.karaf/jclouds-karaf/[2.1,2.1]/xml/features</repository>
>> > >
>> > >
>> <repository>mvn:org.ops4j.pax.cdi/pax-cdi-features/[1,2)/xml/features</repository>
>> > >
>> > >
>> <repository>mvn:org.hibernate.validator/hibernate-validator-osgi-karaf-features/[6.2,6.2]/xml/features</repository>
>> > >
>> > > See
>> > >
>> https://repo1.maven.org/maven2/org/apache/camel/karaf/apache-camel/3.8.0/apache-camel-3.8.0-features.xml
>> > >
>>
>>
>>
>> --
>> Best regards,
>> Dmitri
>>
>

Re: tag contains a version range in features.xml

Posted by Andrea Cosentino <an...@gmail.com>.
Please try again and I'll try to create an account.

For this particular case, issue shouldn't be needed, since 3.8 is not an
LTS release a we won't release patch releases for that.



Il giorno lun 23 gen 2023 alle ore 13:38 Dmitri T <ta...@gmail.com> ha
scritto:

> I am a new reporter and did not get a response for the requested Jira
> account...
>
> пн, 23 янв. 2023 г. в 15:16, Andrea Cosentino <an...@gmail.com>:
> >
> > As far as I know it's possible:
> > https://issues.apache.org/jira/browse/KARAF-5999
> >
> > You could open an issue for fixing this on Camel 3.x
> >
> > Il giorno lun 23 gen 2023 alle ore 13:12 Dmitri T <ta...@gmail.com>
> ha
> > scritto:
> >
> > > I believe it's legit to have a version range for <feature> tag, but
> > > not for <repository>. When you add a repository, you provide a
> > > concrete url to maven repo.
> > >
> > > пн, 23 янв. 2023 г. в 14:21, Andrea Cosentino <an...@gmail.com>:
> > > >
> > > > This has been done here:
> > > >
> > >
> https://github.com/apache/camel-karaf/commit/79dfa35ff299a779687eb85e7bc34785969cfe16
> > > >
> > > > It's legit to have a version range and not a concrete version.
> > > >
> > > > Il giorno lun 23 gen 2023 alle ore 12:15 Dmitri T <
> talerastar@gmail.com>
> > > ha
> > > > scritto:
> > > >
> > > > > Hello.
> > > > >
> > > > > Starting from Camel 3.8 features.xml contains a version range
> inside
> > > > > <repository> instead of a concrete version:
> > > > >
> > > > >
> > > > >
> > >
> <repository>mvn:org.apache.cxf.karaf/apache-cxf/[3,4)/xml/features</repository>
> > > > >
> > > > >
> > >
> <repository>mvn:org.apache.jclouds.karaf/jclouds-karaf/[2.1,2.1]/xml/features</repository>
> > > > >
> > > > >
> > >
> <repository>mvn:org.ops4j.pax.cdi/pax-cdi-features/[1,2)/xml/features</repository>
> > > > >
> > > > >
> > >
> <repository>mvn:org.hibernate.validator/hibernate-validator-osgi-karaf-features/[6.2,6.2]/xml/features</repository>
> > > > >
> > > > > See
> > > > >
> > >
> https://repo1.maven.org/maven2/org/apache/camel/karaf/apache-camel/3.8.0/apache-camel-3.8.0-features.xml
> > > > >
> > >
> > >
> > >
> > > --
> > > Best regards,
> > > Dmitri
> > >
>
>
>
> --
> Best regards,
> Dmitri
>

Re: tag contains a version range in features.xml

Posted by Dmitri T <ta...@gmail.com>.
I am a new reporter and did not get a response for the requested Jira account...

пн, 23 янв. 2023 г. в 15:16, Andrea Cosentino <an...@gmail.com>:
>
> As far as I know it's possible:
> https://issues.apache.org/jira/browse/KARAF-5999
>
> You could open an issue for fixing this on Camel 3.x
>
> Il giorno lun 23 gen 2023 alle ore 13:12 Dmitri T <ta...@gmail.com> ha
> scritto:
>
> > I believe it's legit to have a version range for <feature> tag, but
> > not for <repository>. When you add a repository, you provide a
> > concrete url to maven repo.
> >
> > пн, 23 янв. 2023 г. в 14:21, Andrea Cosentino <an...@gmail.com>:
> > >
> > > This has been done here:
> > >
> > https://github.com/apache/camel-karaf/commit/79dfa35ff299a779687eb85e7bc34785969cfe16
> > >
> > > It's legit to have a version range and not a concrete version.
> > >
> > > Il giorno lun 23 gen 2023 alle ore 12:15 Dmitri T <ta...@gmail.com>
> > ha
> > > scritto:
> > >
> > > > Hello.
> > > >
> > > > Starting from Camel 3.8 features.xml contains a version range inside
> > > > <repository> instead of a concrete version:
> > > >
> > > >
> > > >
> > <repository>mvn:org.apache.cxf.karaf/apache-cxf/[3,4)/xml/features</repository>
> > > >
> > > >
> > <repository>mvn:org.apache.jclouds.karaf/jclouds-karaf/[2.1,2.1]/xml/features</repository>
> > > >
> > > >
> > <repository>mvn:org.ops4j.pax.cdi/pax-cdi-features/[1,2)/xml/features</repository>
> > > >
> > > >
> > <repository>mvn:org.hibernate.validator/hibernate-validator-osgi-karaf-features/[6.2,6.2]/xml/features</repository>
> > > >
> > > > See
> > > >
> > https://repo1.maven.org/maven2/org/apache/camel/karaf/apache-camel/3.8.0/apache-camel-3.8.0-features.xml
> > > >
> >
> >
> >
> > --
> > Best regards,
> > Dmitri
> >



-- 
Best regards,
Dmitri

Re: tag contains a version range in features.xml

Posted by Andrea Cosentino <an...@gmail.com>.
As far as I know it's possible:
https://issues.apache.org/jira/browse/KARAF-5999

You could open an issue for fixing this on Camel 3.x

Il giorno lun 23 gen 2023 alle ore 13:12 Dmitri T <ta...@gmail.com> ha
scritto:

> I believe it's legit to have a version range for <feature> tag, but
> not for <repository>. When you add a repository, you provide a
> concrete url to maven repo.
>
> пн, 23 янв. 2023 г. в 14:21, Andrea Cosentino <an...@gmail.com>:
> >
> > This has been done here:
> >
> https://github.com/apache/camel-karaf/commit/79dfa35ff299a779687eb85e7bc34785969cfe16
> >
> > It's legit to have a version range and not a concrete version.
> >
> > Il giorno lun 23 gen 2023 alle ore 12:15 Dmitri T <ta...@gmail.com>
> ha
> > scritto:
> >
> > > Hello.
> > >
> > > Starting from Camel 3.8 features.xml contains a version range inside
> > > <repository> instead of a concrete version:
> > >
> > >
> > >
> <repository>mvn:org.apache.cxf.karaf/apache-cxf/[3,4)/xml/features</repository>
> > >
> > >
> <repository>mvn:org.apache.jclouds.karaf/jclouds-karaf/[2.1,2.1]/xml/features</repository>
> > >
> > >
> <repository>mvn:org.ops4j.pax.cdi/pax-cdi-features/[1,2)/xml/features</repository>
> > >
> > >
> <repository>mvn:org.hibernate.validator/hibernate-validator-osgi-karaf-features/[6.2,6.2]/xml/features</repository>
> > >
> > > See
> > >
> https://repo1.maven.org/maven2/org/apache/camel/karaf/apache-camel/3.8.0/apache-camel-3.8.0-features.xml
> > >
>
>
>
> --
> Best regards,
> Dmitri
>

Re: tag contains a version range in features.xml

Posted by Dmitri T <ta...@gmail.com>.
I believe it's legit to have a version range for <feature> tag, but
not for <repository>. When you add a repository, you provide a
concrete url to maven repo.

пн, 23 янв. 2023 г. в 14:21, Andrea Cosentino <an...@gmail.com>:
>
> This has been done here:
> https://github.com/apache/camel-karaf/commit/79dfa35ff299a779687eb85e7bc34785969cfe16
>
> It's legit to have a version range and not a concrete version.
>
> Il giorno lun 23 gen 2023 alle ore 12:15 Dmitri T <ta...@gmail.com> ha
> scritto:
>
> > Hello.
> >
> > Starting from Camel 3.8 features.xml contains a version range inside
> > <repository> instead of a concrete version:
> >
> >
> > <repository>mvn:org.apache.cxf.karaf/apache-cxf/[3,4)/xml/features</repository>
> >
> > <repository>mvn:org.apache.jclouds.karaf/jclouds-karaf/[2.1,2.1]/xml/features</repository>
> >
> > <repository>mvn:org.ops4j.pax.cdi/pax-cdi-features/[1,2)/xml/features</repository>
> >
> > <repository>mvn:org.hibernate.validator/hibernate-validator-osgi-karaf-features/[6.2,6.2]/xml/features</repository>
> >
> > See
> > https://repo1.maven.org/maven2/org/apache/camel/karaf/apache-camel/3.8.0/apache-camel-3.8.0-features.xml
> >



-- 
Best regards,
Dmitri

Re: tag contains a version range in features.xml

Posted by Andrea Cosentino <an...@gmail.com>.
This has been done here:
https://github.com/apache/camel-karaf/commit/79dfa35ff299a779687eb85e7bc34785969cfe16

It's legit to have a version range and not a concrete version.

Il giorno lun 23 gen 2023 alle ore 12:15 Dmitri T <ta...@gmail.com> ha
scritto:

> Hello.
>
> Starting from Camel 3.8 features.xml contains a version range inside
> <repository> instead of a concrete version:
>
>
> <repository>mvn:org.apache.cxf.karaf/apache-cxf/[3,4)/xml/features</repository>
>
> <repository>mvn:org.apache.jclouds.karaf/jclouds-karaf/[2.1,2.1]/xml/features</repository>
>
> <repository>mvn:org.ops4j.pax.cdi/pax-cdi-features/[1,2)/xml/features</repository>
>
> <repository>mvn:org.hibernate.validator/hibernate-validator-osgi-karaf-features/[6.2,6.2]/xml/features</repository>
>
> See
> https://repo1.maven.org/maven2/org/apache/camel/karaf/apache-camel/3.8.0/apache-camel-3.8.0-features.xml
>