Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » No IArtifactRepositoryManager in Eclipse Oxygen 4.7.2
No IArtifactRepositoryManager in Eclipse Oxygen 4.7.2 [message #1785782] Thu, 19 April 2018 18:44 Go to next message
Dmitry Perl is currently offline Dmitry PerlFriend
Messages: 13
Registered: September 2016
Junior Member
Hello everyone, may be somebody would have a clue on this one?
The following function worked perfectly in Eclipse Neon 4.6.x target runtime for a very long time in our RCP application. It stopped working with Eclipse Oxygen 4.7.2 target, - the artifactManager returned is always null. Does anyone involved knows what was changed and how to fix this? It breaks our updates.., I am at a loss where to look...

	
public static boolean addRepository(IProvisioningAgent agent, String repo) {
  IMetadataRepositoryManager mm = (IMetadataRepositoryManager) agent.getService(IMetadataRepositoryManager.SERVICE_NAME);
  IArtifactRepositoryManager am = (IArtifactRepositoryManager) agent.getService(IArtifactRepositoryManager.SERVICE_NAME);
  if (mm == null || am == null) {
    Utils.log("P2Utils.addRepository - missing metadata or artifact manager");
	return false;
  }
		
  try {
	URI uri = new URI(repo);
	mm.addRepository(uri);
	am.addRepository(uri);
	return true;
  } catch (Exception e) {
	Utils.log(e);
	return false;
  }
}
Re: No IArtifactRepositoryManager in Eclipse Oxygen 4.7.2 [message #1786196 is a reply to message #1785782] Thu, 26 April 2018 17:11 Go to previous message
Dmitry Perl is currently offline Dmitry PerlFriend
Messages: 13
Registered: September 2016
Junior Member
Got the solution from the other thread.
Previous Topic:Issue with the save command
Next Topic:Is it possible to choose where minimized parts are located
Goto Forum:
  


Current Time: Thu Apr 18 14:26:37 GMT 2024

Powered by FUDForum. Page generated in 0.02809 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top