From 8bafec306afef4572286e5a89810b592bffc9676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Sat, 16 Dec 2023 18:28:11 +0100 Subject: [PATCH] Temporary fix for https://github.com/eclipse-equinox/p2/pull/415 --- .../p2maven/transport/RemoteArtifactRepositoryManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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