ArtifactRepositoryManager () { File localRepo = new File(SystemProperties.getUserHome(), ".m2/repository"); return new ArtifactRepositoryManager( localRepo, Collections.singletonList(ArtifactRepositoryManager.createRemoteRepository("maven", "https://cache-redirector.jetbrains.com/repo1.maven.org/maven2")), new ProgressConsumer() { @Override public void consume(String message) { System.out.println(message); } } ); }