Reset system properties after calling event syps
Event spies may want to read system properties, which will fail if they are reset
too early. This change makes the behavior consistent with regular Maven.
@@ -237,8 +237,8 @@ public class DaemonMavenCli {
} catch (ExitException e) {
return e.exitCode;
} finally {
- System.setProperties(props);
eventSpyDispatcher.close();
+ System.setProperties(props);
Thread.currentThread().setContextClassLoader(tccl);
}
}
