Fixup c19d26d Fix getCurrentProjects #262

This commit is contained in:
Peter Palaga
2020-12-15 09:23:38 +01:00
parent c19d26dc50
commit 3c968a5fff

View File

@@ -657,6 +657,7 @@ public class Server implements AutoCloseable, Runnable {
}
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) {