/*
* Aether's components implement org.eclipse.aether.spi.locator.Service to ease manual wiring and using the
* pre-populated DefaultServiceLocator, we only need to register the repository connector and transporter
* factories.
*/
DefaultServiceLocator locator = MavenRepositorySystemUtils.newServiceLocator();
locator.addService(RepositoryConnectorFactory.class, BasicRepositoryConnectorFactory.class );
locator.addService(TransporterFactory.class, FileTransporterFactory.class );
locator.addService(TransporterFactory.class, HttpTransporterFactory.class );
/*locator.setService(UpdatePolicyAnalyzer.class, MyUpdatePolicyAnalyzer.class);
locator.setService(UpdateCheckManager.class, ForceUpdateCheckManager.class);
locator.setService(LocalRepositoryManagerFactory.class, ConfigurableLocalRepositoryManagerFactory.class);*/
return locator.getService(RepositorySystem.class);
}