Skip to content

Commit

Permalink
Workaround for #3057
Browse files Browse the repository at this point in the history
  • Loading branch information
glatuske authored and laeubi committed Jan 24, 2024
1 parent e3e1b60 commit bf04783
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 bf04783

Please sign in to comment.