Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install new software in Eclipse Luna gives always the error No repository found containing: osgi.bundle,org.eclipse.net4j.jms.api?

I am using STS (Spring Tool Suite) with Eclipse Luna 4.4 and I noticed that everytime I try to install something (for example Apache IvyDE, Web Tools Platform)via Help -> "Install new Software" I get the following error:

An error occurred while collecting items to be installed
session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.net4j.jms.api,3.1.100.v20140218-1709

How can I get rid of this error and install Eclipse's software and plugins?

EDIT: here is what it looks like:

enter image description here

Then I click "Next", while eclipse loads:

enter image description here

There's a "Cannot perform operation" message on the progress bar, and after that:

enter image description here

Then I accept the license and after clicking finish I get the error:

enter image description here

like image 820
tonix Avatar asked Dec 03 '14 15:12

tonix


2 Answers

In the same dialog you'll see an option Contact all update sites during install to find required software, un-check it, ignore the prompt and click on Continue.

The above suggested solution worked when I've faced the problem. For this issue people are referencing https://bugs.eclipse.org/bugs/show_bug.cgi?id=290782, a colleague of mine picked a solution from this comment https://bugs.eclipse.org/bugs/show_bug.cgi?id=290782#c2

While all this solution are general to repository not found, I've found a thread discussing an issue with the plugin you mentioned, did you check it out already unable to install CDT in Eclipse Luna. The OP in this question solved the issue by upgrading from Java 1.6 to 1.8.

like image 103
Master Slave Avatar answered Nov 16 '22 00:11

Master Slave


I had the same exact problem, until I asked me the question: what provide the org.eclipse.net4j.jms.api package ?

I've found this file in some git repository that looks like a configuration file for Eclipse plugins. What was interesting in that in the name of the provider: Eclipse Modeling Project.

With that, and the help of DuckduckGo, I've that the update site for this artefact is: http://www.eclipse.org/modeling/updates/

  1. You should try to see what it contains using the "Install new software", after entering the URL in the first input field. It is very slow to fetch
  2. You should be able to install or update (that was what I was doing).

I guess someone at Eclipse.org had the idea to update the repository, and that the system is so bad there is no way to tell Eclipse to look from old URL to a new. I'd rather like to see a Eclipse Central Plugin Repository like there is a Maven Central Repository, but that's another story.

like image 6
NoDataFound Avatar answered Nov 16 '22 01:11

NoDataFound