bnd icon indicating copy to clipboard operation
bnd copied to clipboard

Do no longer consider distribution management repos by default

Open kwin opened this issue 1 month ago • 8 comments

This often leads to errors which break the build. Therefore this feature should be opt-in

This closes #6945

kwin avatar Nov 18 '25 15:11 kwin

This is a breaking change. Is that really necessary since there is a configuration option to address your issue?

bjhargrave avatar Nov 18 '25 17:11 bjhargrave

I don't consider this an exceptional issue only on my side. Very often the distribution management URLs are not suitable for consumption. Often it is not even HTTP (but for example SCP:// or a custom transport handler like for https://github.com/maveniverse/njord). I would strongly suggest to have a default configuration which is less prone to errors (even if that means a breaking change).

kwin avatar Nov 18 '25 18:11 kwin

I have put it on the list potential breaking changes for a future 8.0 release https://github.com/bndtools/bnd/wiki/WIP-Ideas:-bnd-8.0.0-breaking-changes

chrisrueger avatar Nov 21 '25 12:11 chrisrueger

Maven Docs have been clarified recently in this regard: https://github.com/apache/maven-site/pull/1466

kwin avatar Nov 21 '25 12:11 kwin

Maven Docs have been clarified recently in this regard: apache/maven-site#1466

Could you elaborate what this clarification in the maven docs means for this PR? Sorry it might be obvious for a maven user familiar with the topic, but I am not.

chrisrueger avatar Nov 21 '25 13:11 chrisrueger

That distribution URLs can only be used in edge cases for resolving/downloading. They are primarily thought for uploading!

kwin avatar Nov 21 '25 14:11 kwin

That distribution URLs can only be used in edge cases for resolving/downloading. They are primarily thought for uploading!

Ok that is my interpretation too based on https://github.com/apache/maven-site/pull/1466

chrisrueger avatar Nov 21 '25 17:11 chrisrueger

@timothyjward did the initial version of this plugin. So perhaps he can provide counsel on this change.

bjhargrave avatar Nov 21 '25 19:11 bjhargrave