Search in sources :

Example 1 with AbstractRepositoryListener

use of org.eclipse.aether.AbstractRepositoryListener in project bazel by bazelbuild.

the class MavenConnector method newRepositorySystemSession.

public RepositorySystemSession newRepositorySystemSession(RepositorySystem system) {
    DefaultRepositorySystemSession session = MavenRepositorySystemUtils.newSession();
    LocalRepository localRepo = new LocalRepository(localRepositoryPath);
    session.setLocalRepositoryManager(system.newLocalRepositoryManager(session, localRepo));
    session.setTransferListener(new AbstractTransferListener() {
    });
    session.setRepositoryListener(new AbstractRepositoryListener() {
    });
    return session;
}
Also used : AbstractRepositoryListener(org.eclipse.aether.AbstractRepositoryListener) DefaultRepositorySystemSession(org.eclipse.aether.DefaultRepositorySystemSession) AbstractTransferListener(org.eclipse.aether.transfer.AbstractTransferListener) LocalRepository(org.eclipse.aether.repository.LocalRepository)

Aggregations

AbstractRepositoryListener (org.eclipse.aether.AbstractRepositoryListener)1 DefaultRepositorySystemSession (org.eclipse.aether.DefaultRepositorySystemSession)1 LocalRepository (org.eclipse.aether.repository.LocalRepository)1 AbstractTransferListener (org.eclipse.aether.transfer.AbstractTransferListener)1