mirror of https://github.com/apache/maven.git
[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.
This commit is contained in:
parent
57082737d8
commit
3f430bbd07
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue