Skip to content

Commit

Permalink
Workaround for #3057
Browse files Browse the repository at this point in the history
(cherry picked from commit bf04783)
  • Loading branch information
glatuske committed Jan 24, 2024
1 parent e2bf307 commit ca91e09
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 ca91e09

Please sign in to comment.