Wagon wagon = this.wagonManager.getWagon(repository.getProtocol());
// TODO: this should be retrieved from wagonManager
com.googlecode.ConsoleDownloadMonitor downloadMonitor = new com.googlecode.ConsoleDownloadMonitor();
wagon.addTransferListener(downloadMonitor);
wagon.connect(repository);
wagon.get(file, outputFile);
wagon.disconnect();
wagon.removeTransferListener(downloadMonitor);
}
}