Do not add mvnd-client.jar to daemon's class path

This commit is contained in:
Peter Palaga
2020-10-24 13:44:53 +02:00
parent 020aa6a635
commit 87a94dac10

View File

@@ -43,7 +43,10 @@ public class MavenDaemon {
throw new RuntimeException("Could not list " + p, e);
}
})
.filter(p -> p.getFileName().toString().endsWith(".jar"))
.filter(p -> {
final String fileName = p.getFileName().toString();
return fileName.endsWith(".jar") && !fileName.startsWith("mvnd-client-");
})
.filter(Files::isRegularFile),
/* resources */
Stream.of(mvndHome.resolve("mvn/conf"), mvndHome.resolve("mvn/conf/logging")))