code: private static RepositorySystem newRepositorySystem() {
  		MavenServiceLocator locator = new MavenServiceLocator();
  		locator.setServices(WagonProvider.class, new ManualWagonProvider());
  		locator.addService(RepositoryConnectorFactory.class, WagonRepositoryConnectorFactory.class);
  
  		return locator.getService(RepositorySystem.class);
  	}
docs: ---------------------------------------------------------------------------