mirror of https://github.com/apache/maven.git
[MNG-7976] Investigate MNG-6127 IT instability (#1422)
Signed-off-by: crazyhzm <crazyhzm@apache.org>
This commit is contained in:
parent
83949a7384
commit
ab6ec5bd74
|
@ -59,7 +59,7 @@ public class DefaultLifecycleMapping implements LifecycleMapping {
|
|||
/**
|
||||
* Plexus: Populates the lifecycle map from the injected list of lifecycle mappings (if not already done).
|
||||
*/
|
||||
private void initLifecycleMap() {
|
||||
private synchronized void initLifecycleMap() {
|
||||
if (lifecycleMap == null) {
|
||||
lifecycleMap = new HashMap<>();
|
||||
|
||||
|
|
Loading…
Reference in New Issue