Skip to content

Commit

Permalink
Backport more fixes from mvn40 to mvn39 code
Browse files Browse the repository at this point in the history
  • Loading branch information
oehme authored and gnodet committed Apr 6, 2023
1 parent 6bcb580 commit a15abc2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ public DaemonMavenCli() throws Exception {
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();

Expand Down Expand Up @@ -480,6 +479,7 @@ DefaultPlexusContainer container() throws Exception {

List<File> extClassPath = Stream.of(
Environment.MVND_EXT_CLASSPATH.asString().split(","))
.filter(s -> s != null && !s.isEmpty())
.map(File::new)
.collect(Collectors.toList());

Expand Down

0 comments on commit a15abc2

Please sign in to comment.