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;
}
Aggregations