mirror of https://github.com/apache/maven.git
Added synchronization around copying system properties since they are a singleton,
fix for [MRRESOURCES-65] and similar problem in assembly
This commit is contained in:
parent
a18f5af192
commit
4da87163f9
|
@ -165,7 +165,10 @@ public class DefaultProjectBuildingRequest
|
|||
if ( systemProperties != null )
|
||||
{
|
||||
this.systemProperties = new Properties();
|
||||
this.systemProperties.putAll( systemProperties );
|
||||
synchronized ( systemProperties )
|
||||
{ // avoid concurrentmodification if someone else sets/removes an unrelated system property
|
||||
this.systemProperties.putAll( systemProperties );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue