Skip to content

Commit

Permalink
Workaround for eclipse-tycho#3057
Browse files Browse the repository at this point in the history
  • Loading branch information
glatuske committed Jan 24, 2024
1 parent 155e4bc commit f1eda3c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ public class DefaultRepositoryIdManager implements IRepositoryIdManager {
private MavenRepositorySettings settings;
@Requirement
private Logger logger;

private Map<URI, String> knownMavenRepositoryIds = new ConcurrentHashMap<>();
// For some reason maven creates different instances of the component even if
// there should only be one...
private static final Map<URI, String> knownMavenRepositoryIds = new ConcurrentHashMap<>();

@Override
public void addMapping(String mavenRepositoryId, URI location) {
Expand Down

0 comments on commit f1eda3c

Please sign in to comment.