Skip to content

Commit

Permalink
[MNG-8228] Enable Sisu Plexus strict classpath scanning (#1688)
Browse files Browse the repository at this point in the history
This was introduced with
eclipse-sisu/sisu.plexus#51.

This leads to exceptions in case of issues with loading potential
extensions/plexus components instead of logging just with DEBUG level.
  • Loading branch information
kwin authored Aug 29, 2024
1 parent 5708273 commit 3f430bb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@ PlexusContainer container(CliRequest cliRequest) throws Exception {
.setClassPathScanning(PlexusConstants.SCANNING_INDEX)
.setAutoWiring(true)
.setJSR250Lifecycle(true)
.setStrictClassPathScanning(true)
.setName("maven");

Set<String> exportedArtifacts = new HashSet<>(coreEntry.getExportedArtifacts());
Expand Down Expand Up @@ -780,6 +781,7 @@ private List<CoreExtensionEntry> loadCoreExtensions(
.setClassPathScanning(PlexusConstants.SCANNING_INDEX) //
.setAutoWiring(true) //
.setJSR250Lifecycle(true) //
.setStrictClassPathScanning(true) //
.setName("maven");

DefaultPlexusContainer container = new DefaultPlexusContainer(cc, new AbstractModule() {
Expand Down

0 comments on commit 3f430bb

Please sign in to comment.