Reset system properties after calling event syps (#729)

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.
This commit is contained in:
Stefan Oehme
2022-12-07 18:05:50 +01:00
committed by Guillaume Nodet
parent 60de2a84b9
commit 3be232595f

View File

@@ -242,8 +242,8 @@ public class DaemonMavenCli {
} catch (ExitException e) {
return e.exitCode;
} finally {
System.setProperties(props);
eventSpyDispatcher.close();
System.setProperties(props);
Thread.currentThread().setContextClassLoader(tccl);
}
}