Skip to content

Commit

Permalink
Merge pull request #21 from jfdenise/main
Browse files Browse the repository at this point in the history
Add spring maven repository to known repositories
  • Loading branch information
jfdenise authored Nov 10, 2023
2 parents 6e5eb27 + d9f9a2c commit 83193c3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public final class MavenResolver {
public static final String JBOSS_REPO_URL = "https://repository.jboss.org/nexus/content/groups/public/";
public static final String CENTRAL_REPO_URL = "https://repo1.maven.org/maven2/";
public static final String GA_REPO_URL = "https://maven.repository.redhat.com/ga/";
public static final String SPRING_REPO_URL = "https://repo.spring.io/milestone";

public static MavenRepoManager newMavenResolver() {
RepositorySystem repoSystem = MavenResolver.newRepositorySystem();
Expand All @@ -60,6 +61,8 @@ public static MavenRepoManager newMavenResolver() {
repos.add(ga.build());
RemoteRepository.Builder nexus = new RemoteRepository.Builder("jboss-nexus", "default", JBOSS_REPO_URL);
repos.add(nexus.build());
RemoteRepository.Builder spring = new RemoteRepository.Builder("spring-repo", "default", SPRING_REPO_URL);
repos.add(spring.build());
MavenArtifactRepositoryManager resolver
= new MavenArtifactRepositoryManager(repoSystem, session, repos);
return resolver;
Expand Down

0 comments on commit 83193c3

Please sign in to comment.