* org.sonatype.aether.spi.locator.Service to ease manual wiring and
* using the prepopulated DefaultServiceLocator, we only need to
* register the repository connector factories.
*/
DefaultServiceLocator locator = new DefaultServiceLocator();
locator.addService(RepositoryConnectorFactory.class, FileRepositoryConnectorFactory.class);
locator.addService(RepositoryConnectorFactory.class, WagonRepositoryConnectorFactory.class);
locator.setServices(WagonProvider.class, new ManualWagonProvider());
return locator.getService(RepositorySystem.class);
}