Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] Cannot get RepositorySystem instance from DefaultServiceLocator within Eclipse RCP

You can look at the demo repo which has fully working examples using a simple main:


On Nov 18, 2015, at 11:04 AM, glasgowprivat@xxxxxx wrote:

Dear List,
 
I'm trying to access a Maven repo from within an Eclipse RCP app. I'm doing this via the following code:
 
DefaultServiceLocator locator = MavenRepositorySystemUtils.newServiceLocator();
locator.addService( ArtifactDescriptorReader.class, DefaultArtifactDescriptorReader.class );
... and other addService()s
RepositorySystem mvnSystem = locator.getService(RepositorySystem.class);
 
However, mvnSystem remains null.
 
I've included all Features returned from a search "aether" on the Mars update site, and added all "aether" packages to my plugin.
 
I've also seen the same code used in other instances (checked some repos on the web).
 
Does anyone have any idea why this code wouldn't work?
 
Many thanks!
Stefan
_______________________________________________
aether-users mailing list
aether-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/aether-users

Back to the top