Search in sources :

Example 1 with ConsoleTransferListener

use of demo.util.ConsoleTransferListener in project sonatype-aether by sonatype.

the class Aether method newSession.

private RepositorySystemSession newSession() {
    MavenRepositorySystemSession session = new MavenRepositorySystemSession();
    session.setLocalRepositoryManager(repositorySystem.newLocalRepositoryManager(localRepository));
    session.setTransferListener(new ConsoleTransferListener());
    session.setRepositoryListener(new ConsoleRepositoryListener());
    return session;
}
Also used : ConsoleRepositoryListener(demo.util.ConsoleRepositoryListener) ConsoleTransferListener(demo.util.ConsoleTransferListener) MavenRepositorySystemSession(org.apache.maven.repository.internal.MavenRepositorySystemSession)

Aggregations

ConsoleRepositoryListener (demo.util.ConsoleRepositoryListener)1 ConsoleTransferListener (demo.util.ConsoleTransferListener)1 MavenRepositorySystemSession (org.apache.maven.repository.internal.MavenRepositorySystemSession)1