cstamas commented on a change in pull request #154: URL: https://github.com/apache/maven-resolver/pull/154#discussion_r825480990
########## File path: maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/Maven2RepositoryLayoutFactory.java ########## @@ -118,9 +123,16 @@ public RepositoryLayout newInstance( RepositorySystemSession session, RemoteRepo checksumsAlgorithms.add( checksumAlgorithmFactorySelector.select( checksumsAlgorithmName ) ); } - return forSignature - ? new Maven2RepositoryLayout( checksumsAlgorithms ) - : new Maven2RepositoryLayoutEx( checksumsAlgorithms ); + // ensure uniqueness of (potentially user set) extension list + Set<String> omitChecksumsForExtensions = Arrays.stream( ConfigUtils.getString( + session, DEFAULT_OMIT_CHECKSUMS_FOR_EXTENSIONS, CONFIG_PROP_OMIT_CHECKSUMS_FOR_EXTENSIONS ) + .split( "," ) + ).filter( s -> s != null && !s.trim().isEmpty() ).collect( Collectors.toSet() ); Review comment: applied to both -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org