diff --git a/daemon/src/main/java/org/mvndaemon/mvnd/daemon/Server.java b/daemon/src/main/java/org/mvndaemon/mvnd/daemon/Server.java index 3281f28b8..de87aa7e8 100644 --- a/daemon/src/main/java/org/mvndaemon/mvnd/daemon/Server.java +++ b/daemon/src/main/java/org/mvndaemon/mvnd/daemon/Server.java @@ -657,6 +657,7 @@ protected void onStartSession(MavenSession session) { } private MavenProject getCurrentProject(MavenSession mavenSession) { + // Workaround for https://issues.apache.org/jira/browse/MNG-6979 // MavenSession.getCurrentProject() does not return the correct value in some cases String executionRootDirectory = mavenSession.getExecutionRootDirectory(); if (executionRootDirectory == null) {