Backport more fixes from mvn40 to mvn39 code

This commit is contained in:
Stefan Oehme
2023-03-30 14:18:13 +02:00
committed by Guillaume Nodet
parent 6bcb580529
commit a15abc25df

View File

@@ -185,8 +185,7 @@ public class DaemonMavenCli implements DaemonCli {
slf4jLogger = slf4jLoggerFactory.getLogger(this.getClass().getName());
plexusLoggerManager = new Slf4jLoggerManager();
ClassLoader cl = Thread.currentThread().getContextClassLoader();
classWorld = new ClassWorld("plexus.core", cl);
this.classWorld = ((ClassRealm) Thread.currentThread().getContextClassLoader()).getWorld();
container = container();
@@ -480,6 +479,7 @@ public class DaemonMavenCli implements DaemonCli {
List<File> extClassPath = Stream.of(
Environment.MVND_EXT_CLASSPATH.asString().split(","))
.filter(s -> s != null && !s.isEmpty())
.map(File::new)
.collect(Collectors.toList());