Hi JB,
thanks for the reply. I have tried this now and the featuresProcessing 
configuration I specified is found by the karaf-maven-plugin:

Log:
Explicitly configured 
..\..\..\..\..\..\..\..\tmp\featureProcessingInstructions.xml will be used for 
features processor configuration.

Unfortunately the result is the same: Below the system folder the 4.4.3 
SNAPSHOTS Jars are unpacked although the repositories are blacklisted.

The content of the featureProcessingInstructions.xml:
<?xml version="1.0" encoding="UTF-8"?>
<featuresProcessing 
xmlns="http://karaf.apache.org/xmlns/features-processing/v1.0.0";>
     <blacklistedRepositories>
         
<repository>mvn:org.apache.karaf.features/framework/4.4.3-SNAPSHOT/xml/features</repository>
         
<repository>mvn:org.apache.karaf.features/standard/4.4.3-SNAPSHOT/xml/features</repository>
         
<repository>mvn:org.apache.karaf.features/enterprise/4.4.3-SNAPSHOT/xml/features</repository>
         
<repository>mvn:org.apache.karaf.features/enterprise-legacy/4.4.3-SNAPSHOT/xml/features</repository>
         
<repository>mvn:org.apache.karaf.features/spring/4.4.3-SNAPSHOT/xml/features</repository>
         
<repository>mvn:org.apache.karaf.features/spring-legacy/4.4.3-SNAPSHOT/xml/features</repository>
     </blacklistedRepositories>
</featuresProcessing>

Greetings
Alex

-----Ursprüngliche Nachricht-----
Von: Jean-Baptiste Onofré [mailto:[email protected]] 
Gesendet: Mittwoch, 19. Oktober 2022 12:40
An: [email protected]
Betreff: Re: 4.4.2-SNAPSHOTS in custom distribution

Hi Alex,

oh sorry, you need to blacklist at build time too, right (I thought you wanted 
only at runtime, my bad).

Then, the karaf-maven-plugin can also take features XML definition via the 
featureProcessing configuration:
https://github.com/apache/karaf/blob/main/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/AssemblyMojo.java#L101

Regards
JB

On Wed, Oct 19, 2022 at 11:23 AM Domke, Alexander <[email protected]> wrote:
>
> Hi JB,
>
> I have blacklisted the repositories in etc/org.apache.karaf.features.xml, but 
> I see that during the build of the distribution the snapshots features are 
> added. Also in the system folder are the snapshots JARS as well as the 
> default [4,5)-features.xml. Is there any way to avoid this or do I need to 
> clean up the system folder afterwards?
>
> Is there no way to prevent the use of snapshots in general?
>
> etc/org.apache.karaf.features.xml
> <?xml version="1.0" encoding="UTF-8"?> <featuresProcessing 
> xmlns="http://karaf.apache.org/xmlns/features-processing/v1.0.0";>
>     <blacklistedRepositories>
>         
> <repository>mvn:org.apache.karaf.features/framework/[4.4.2,5)/xml/features</repository>
>         
> <repository>mvn:org.apache.karaf.features/standard/[4.4.2,5)/xml/features</repository>
>         
> <repository>mvn:org.apache.karaf.features/enterprise/[4.4.2,5)/xml/features</repository>
>         
> <repository>mvn:org.apache.karaf.features/enterprise-legacy/[4.4.2,5)/xml/features</repository>
>         
> <repository>mvn:org.apache.karaf.features/spring/[4.4.2,5)/xml/features</repository>
>         
> <repository>mvn:org.apache.karaf.features/spring-legacy/[4.4.2,5)/xml/features</repository>
>     </blacklistedRepositories>
> </featuresProcessing>
>
> Thank you
> Alex
>
>
> -----Ursprüngliche Nachricht-----
> Von: Jean-Baptiste Onofré [mailto:[email protected]]
> Gesendet: Dienstag, 18. Oktober 2022 18:42
> An: [email protected]
> Betreff: Re: 4.4.2-SNAPSHOTS in custom distribution
>
> Hi
>
> It's because you have some features repository without version range, so, the 
> resolver takes the latest version available.
>
> A simple workaround is to blacklist 4.4.2-SNAPSHOT features repositories. To 
> do that, you have to edit etc/org.apache.karaf.features.xml and blacklist the 
> 4.4.2-SNAPSHOT repositories.
>
> NB: I recommend you to check your own repositories and add version range here.
>
> Regards
> JB
>
> On Tue, Oct 18, 2022 at 3:25 PM Domke, Alexander <[email protected]> wrote:
> >
> > Hello all,
> >
> >
> >
> > in my custom distribution I just have the problem that also Karaf bundles 
> > with version 4.4.2 snapshots are added to the distribution. I am using 
> > repositories with version 4.4.1 and still 4.4.2 SNAPSHOTS are installed. 
> > The distribution was built with the karaf-maven-plugin and when I try to 
> > blacklist the SNAPSHOTS repositories, it has no effect. The problem has 
> > occurred only this week, before that we have not observed anything like it.
> >
> >
> >
> > Does anyone have any idea what I can do to ban the snapshots 
> > (bundles/features) in general?
> >
> >
> >
> > With kind regards
> >
> > Alex
> >
> >
> >
> >
> > CENIT AG, Industriestrasse 52-54, 70565 Stuttgart, Tel.: +49 711 
> > 7825-30, Fax: +49 711 7825-4000, Internet: www.cenit.com 
> > Geschaeftsstellen (Branch Offices): Berlin, Frankfurt, Hamburg, 
> > Hannover, Muenchen, Oelsnitz, Ratingen, Saarbruecken 
> > Vorstandsmitglieder (Members of the Board): Peter Schneck, Axelle Maze 
> > Aufsichtsratsmitglieder (Supervisory Board Members): Rainer Koppitz 
> > (Vorsitzender des Aufsichtsrats / Chairman of the Supervisory Board), Prof. 
> > Dr. Isabell Welpe, Ricardo Malta Bankverbindungen (Bank Accounts):
> > Deutsche Bank (BLZ 600 700 70) Kto. 1661 040 IBAN : DE85 6007 0070
> > 0166 1040 00 SWIFT-CODE : DEUTDESS, Commerzbank (BLZ 600 400 71) Kto.
> > 532 015 500 IBAN : DE83 6004 0071 0532 0155 00 SWIFT-Code :
> > COBADEFF600, Registergericht (Registry court): Amtsgericht Stuttgart 
> > Handelsregister (Commercial Register): HRB Nr. 19117 Umsatzsteuer
> > (VAT) ID: DE 147 862 777
>
> CENIT AG, Industriestrasse 52-54, 70565 Stuttgart, Tel.: +49 711 
> 7825-30, Fax: +49 711 7825-4000, Internet: www.cenit.com 
> Geschaeftsstellen (Branch Offices): Berlin, Frankfurt, Hamburg, 
> Hannover, Muenchen, Oelsnitz, Ratingen, Saarbruecken 
> Vorstandsmitglieder (Members of the Board): Peter Schneck, Axelle Maze 
> Aufsichtsratsmitglieder (Supervisory Board Members): Rainer Koppitz 
> (Vorsitzender des Aufsichtsrats / Chairman of the Supervisory Board), Prof. 
> Dr. Isabell Welpe, Ricardo Malta Bankverbindungen (Bank Accounts):
> Deutsche Bank (BLZ 600 700 70) Kto. 1661 040 IBAN : DE85 6007 0070 
> 0166 1040 00 SWIFT-CODE : DEUTDESS, Commerzbank (BLZ 600 400 71) Kto. 
> 532 015 500 IBAN : DE83 6004 0071 0532 0155 00 SWIFT-Code : 
> COBADEFF600, Registergericht (Registry court): Amtsgericht Stuttgart 
> Handelsregister (Commercial Register): HRB Nr. 19117 Umsatzsteuer 
> (VAT) ID: DE 147 862 777

CENIT AG, Industriestrasse 52-54, 70565 Stuttgart, Tel.: +49 711 7825-30, Fax: 
+49 711 7825-4000, Internet: www.cenit.com
Geschaeftsstellen (Branch Offices): Berlin, Frankfurt, Hamburg, Hannover, 
Muenchen, Oelsnitz, Ratingen, Saarbruecken
Vorstandsmitglieder (Members of the Board): Peter Schneck, Axelle Maze
Aufsichtsratsmitglieder (Supervisory Board Members): Rainer Koppitz 
(Vorsitzender des Aufsichtsrats / Chairman of the Supervisory Board), Prof. Dr. 
Isabell Welpe, Ricardo Malta
Bankverbindungen (Bank Accounts):
Deutsche Bank (BLZ 600 700 70) Kto. 1661 040 IBAN : DE85 6007 0070 0166 1040 00 
SWIFT-CODE : DEUTDESS,
Commerzbank (BLZ 600 400 71) Kto. 532 015 500 IBAN : DE83 6004 0071 0532 0155 
00 SWIFT-Code : COBADEFF600,
Registergericht (Registry court): Amtsgericht Stuttgart
Handelsregister (Commercial Register): HRB Nr. 19117
Umsatzsteuer (VAT) ID: DE 147 862 777

Reply via email to