diff --git a/p2-maven-plugin/src/main/java/org/eclipse/tycho/p2maven/transport/RemoteArtifactRepositoryManager.java b/p2-maven-plugin/src/main/java/org/eclipse/tycho/p2maven/transport/RemoteArtifactRepositoryManager.java index 0f4ebb9c6e..c37c3c46c6 100644 --- a/p2-maven-plugin/src/main/java/org/eclipse/tycho/p2maven/transport/RemoteArtifactRepositoryManager.java +++ b/p2-maven-plugin/src/main/java/org/eclipse/tycho/p2maven/transport/RemoteArtifactRepositoryManager.java @@ -71,7 +71,11 @@ public IArtifactRequest createMirrorRequest(IArtifactKey key, IArtifactRepositor @Override public IArtifactRepository createRepository(URI location, String name, String type, Map properties) throws ProvisionException { - return delegate.createRepository(translate(location), name, type, properties); + synchronized (RemoteArtifactRepositoryManager.class) { + // TODO the sync is required unless + // https://github.com/eclipse-equinox/p2/pull/415 is fixed + return delegate.createRepository(translate(location), name, type, properties); + } } @Override