There is a race condition in parallel builds that occurs related to this piece of code:
http://maven.apache.org/ref/3.0.4/maven-core/xref/org/apache/maven/classrealm/DefaultClassRealmManager.html#75 The thing is, for some reason, there's a loop that retries the class realm generation with a random suffix if the class realm already exists. In a parallel run, there will be multiple threads requesting the same realm-id, which semantically should map to the same instance of the class realm. (Most plugins do not really mind if there's a duplicate class realm every now and then, but some take it very seriously ;) I'm tempted to change the semantics of the "newRealm" method to "getOrCreateRealm", since that seems to be the correct semantics no matter what. I've tried tracking the origin of the while loop, and it seems to be very old. Anyone have any idea of what purpose it served ? Kristian --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
