Skip to content

Commit

Permalink
ListRepositoriesMojo
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 17, 2024
1 parent c5b41d9 commit 53f7080
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
import java.util.Set;
import java.util.stream.Collectors;

import javax.inject.Inject;

import org.apache.maven.RepositoryUtils;
import org.apache.maven.model.DependencyManagement;
import org.apache.maven.plugin.MojoExecutionException;
Expand All @@ -53,9 +55,13 @@
@Mojo(name = "list-repositories", threadSafe = true)
public class ListRepositoriesMojo extends AbstractDependencyMojo {

@Component
private RepositorySystem repositorySystem;

@Inject
public ListRepositoriesMojo(RepositorySystem repositorySystem) {
this.repositorySystem = repositorySystem;
}

/**
* Displays a list of the repositories used by this build.
*
Expand Down

0 comments on commit 53f7080

Please sign in to comment.