mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-10 02:39:27 +00:00
Make sure mvnd's plexus-interactivity is not in the maven classloader, fixes #807
* the logging framework is extracted into its own jar and moved in the mvn/lib/ directory * the other daemon jars are moved into the mvn/lib/mvnd directory and not used by maven at all This makes maven class loader almost identical to the stock maven classloader, but for the logging framework
This commit is contained in:
@@ -346,7 +346,7 @@ public class DaemonConnector {
|
||||
String mvndAgentPath = null;
|
||||
String plexusClassworldsPath = null;
|
||||
try (DirectoryStream<Path> jarPaths = Files.newDirectoryStream(
|
||||
mvndHome.resolve("mvn").resolve("lib").resolve("ext"))) {
|
||||
mvndHome.resolve("mvn").resolve("lib").resolve("mvnd"))) {
|
||||
for (Path jar : jarPaths) {
|
||||
String s = jar.getFileName().toString();
|
||||
if (s.endsWith(".jar")) {
|
||||
@@ -368,7 +368,7 @@ public class DaemonConnector {
|
||||
}
|
||||
}
|
||||
if (mvndAgentPath == null) {
|
||||
throw new IllegalStateException("Could not find mvnd-agent jar in mvn/lib/ext/");
|
||||
throw new IllegalStateException("Could not find mvnd-agent jar in mvn/lib/mvnd/");
|
||||
}
|
||||
if (plexusClassworldsPath == null) {
|
||||
throw new IllegalStateException("Could not find plexus-classworlds jar in boot/");
|
||||
|
Reference in New Issue
Block a user