This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push: new 3f430bbd07 [MNG-8228] Enable Sisu Plexus strict classpath scanning (#1688) 3f430bbd07 is described below commit 3f430bbd07968d65cd689772b18e9ac7b736aaee Author: Konrad Windszus <k...@apache.org> AuthorDate: Thu Aug 29 19:42:56 2024 +0200 [MNG-8228] Enable Sisu Plexus strict classpath scanning (#1688) This was introduced with https://github.com/eclipse-sisu/sisu.plexus/issues/51. This leads to exceptions in case of issues with loading potential extensions/plexus components instead of logging just with DEBUG level. --- maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java b/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java index bd958320b7..d4acfc0f7f 100644 --- a/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java +++ b/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java @@ -672,6 +672,7 @@ public class MavenCli { .setClassPathScanning(PlexusConstants.SCANNING_INDEX) .setAutoWiring(true) .setJSR250Lifecycle(true) + .setStrictClassPathScanning(true) .setName("maven"); Set<String> exportedArtifacts = new HashSet<>(coreEntry.getExportedArtifacts()); @@ -780,6 +781,7 @@ public class MavenCli { .setClassPathScanning(PlexusConstants.SCANNING_INDEX) // .setAutoWiring(true) // .setJSR250Lifecycle(true) // + .setStrictClassPathScanning(true) // .setName("maven"); DefaultPlexusContainer container = new DefaultPlexusContainer(cc, new AbstractModule() {