This is an automated email from the ASF dual-hosted git repository.

cstamas pushed a commit to branch maven-14155
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git

commit 17fcdf91fbd77ebe9e90a7e2f29376beeae36684
Author: Tamas Cservenak <[email protected]>
AuthorDate: Sat Nov 28 16:48:47 2026 +0100

    fix: fix for Maven issue 14155
    
    Make "versioned" skipper the default, instead of the broken
    "versionless" that does not work with ranges, nor any other
    winner selection strategy than "nearest".
---
 .../aether/internal/impl/collect/bf/BfDependencyCollector.java     | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git 
a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/collect/bf/BfDependencyCollector.java
 
b/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/collect/bf/BfDependencyCollector.java
index fbd2461d6..86db51e69 100644
--- 
a/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/collect/bf/BfDependencyCollector.java
+++ 
b/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/collect/bf/BfDependencyCollector.java
@@ -93,10 +93,13 @@ public class BfDependencyCollector extends 
DependencyCollectorDelegate {
     /**
      * The key in the repository session's {@link 
RepositorySystemSession#getConfigProperties()
      * configuration properties} used to store a {@link String} flag 
controlling the resolver's skip mode.
-     * Supported modes are "versionless" (default), "versioned" and "false" to 
not use skipper. The first two modes
+     * Supported modes are "versioned" (default), "versionless" and "false", 
to not use skipper. The first two modes
      * are defining "function" how to map artifact coordinates to (String) key 
while deciding "skip" logic.
      * The "versionless" uses {@code G:A:C:E} coordinate elements only 
(without version), while "versioned" uses
      * all {@code G:A:C:E:V} artifact coordinates.
+     * <em>Important:</em> while "versionless" skipper may introduce 
noticeable performance improvements, it is
+     * NOT recommended to be used if the tree contains ranges, or if any other 
winner selection strategy is used
+     * than Maven default "nearest" strategy.
      *
      * @since 1.8.0
      * @configurationSource {@link 
RepositorySystemSession#getConfigProperties()}
@@ -114,7 +117,7 @@ public class BfDependencyCollector extends 
DependencyCollectorDelegate {
      *
      * @since 1.8.0
      */
-    public static final String DEFAULT_SKIPPER = VERSIONLESS_SKIPPER;
+    public static final String DEFAULT_SKIPPER = VERSIONED_SKIPPER;
 
     /**
      * The count of threads to be used when collecting POMs in parallel.

Reply via email to