Skip to content

Commit

Permalink
Log downloads to the console
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas authored and viniciusfcf committed Jun 16, 2020
1 parent 5064424 commit 99c1456
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.apache.maven.cli.transfer.ConsoleMavenTransferListener;
import org.apache.maven.repository.internal.MavenRepositorySystemUtils;
import org.eclipse.aether.DefaultRepositoryCache;
import org.eclipse.aether.DefaultRepositorySystemSession;
Expand Down Expand Up @@ -145,6 +146,9 @@ private MavenArtifactResolver(Builder builder) throws AppModelResolverException
if (builder.offline != null) {
newSession.setOffline(builder.offline);
}
if (newSession.getTransferListener() == null) {
newSession.setTransferListener(new ConsoleMavenTransferListener(System.out, true));
}
newSession.setSystemProperties(System.getProperties());

MavenLocalRepositoryManager lrm = null;
Expand Down

0 comments on commit 99c1456

Please sign in to comment.