how to add maven plugin to eclipse - eclipse

I am new to maven. I was trying to add the maven plugin to eclipse(indigo). The problem I am facing is that when I try to add the plugin using 'Help -> Install new software' using URL http://download.eclipse.org/releases/indigo the download process starts and then stops with an error
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.emf,2.6.0.v20120130-0943
No repository found containing: osgi.bundle,org.eclipse.emf.ant,2.7.0.v20120130-0943
No repository found containing: osgi.bundle,org.eclipse.emf.codegen,2.6.0.v20120130-0943
No repository found containing: osgi.bundle,org.eclipse.emf.codegen.ecore,2.7.0.v20120130-0943
No repository found containing: osgi.bundle,org.eclipse.emf.codegen.ecore.ui,2.7.0.v20120130-0943
No repository found containing: osgi.bundle,org.eclipse.emf.codegen.ui,2.6.0.v20120130-0943
No repository found containing: osgi.bundle,org.eclipse.emf.common,2.7.0.v20120127-1122
No repository found containing: osgi.bundle,org.eclipse.emf.common.ui,2.7.0.v20120130-0943
No repository found containing: osgi.bundle,org.eclipse.emf.converter,2.5.0.v20120130-0943
No repository found containing: osgi.bundle,org.eclipse.emf.databinding,1.2.0.v20120130-0943
...........
...........
Also when I try to install the plugin using http://download.eclipse.org/technology/m2e/releases then the installation gets stuck 48% and after a long time it again displays an error message:
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Multiple problems occurred while downloading.
Unable to read repository at http://download.eclipse.org/technology/m2e/releases /1.0/1.0.100.20110804-1717/plugins /org.eclipse.m2e.archetype.common_1.0.100.20110804-1717.jar.
Read timed out
Unable to read repository at http://download.eclipse.org/technology/m2e/releases /1.0/1.0.100.20110804-1717/plugins /org.eclipse.m2e.archetype.common_1.0.100.20110804-1717.jar.
Read timed out
Multiple problems occurred while downloading.
Unable to read repository at http://download.eclipse.org/technology/m2e/releases /1.0/1.0.100.20110804-1717/plugins/org.eclipse.m2e.maven.indexer_1.0.100.20110804-1717.jar.
Read timed out
Unable to read repository at http://download.eclipse.org/technology/m2e/releases /1.0/1.0.100.20110804-1717/plugins/org.eclipse.m2e.maven.indexer_1.0.100.20110804-1717.jar.
Read timed out
............
............
Kindly suggest if there is something wrong with the installation process I am using.
Also suggest if there is some other method to add 'maven plugin for eclipse'.
Thanks

Check Contact all update sites during install to find required software option before installing m2e.

Related

Unable to update Eclipse / STS 3.7.3

After fresh install of Spring Tool Suite 3.7.3 (and adding the Subclipse plugin), update comes up with the 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.sonatype.m2e.buildhelper,0.15.0.201212120353
No repository found containing: x,0.14.0.201509090157
No repository found containing: org.eclipse.update.feature,org.sonatype.m2e.buildhelper.feature,0.15.0.201212120353
No repository found containing: org.eclipse.update.feature,org.sonatype.m2e.egit.feature,0.14.0.201509090157
M2E and Sonatype seem to be involved in this somehow.
How to get rid of this error? And what about the missing "x" artifact?
Going to Help -> Installation details and uninstalling several components that related to M2E and Sonatype got me rid of this error message.

unable to install CDT in Eclipse Luna

I have just downloaded Eclipse Luna in his package Eclipse IDE for Java EE Developers. I want to add Eclipse CDT to program in C/C++ (I know I can download CDT package, but I prefer this way, don't offer that option as an answer please).
When I tried to install it using Marketplace I didn't found Luna version.
If I use Luna update site, that retrieves CDT 8.4.0.201406111759, I got this error:
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, 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
If I use Kepler update site, retrieving CDT 8.3.0.201402142303I, I got this error:
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.cdt,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.codan.checkers,3.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.codan.checkers.ui,3.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.codan.core,3.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.codan.core.cxx,3.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.codan.ui,3.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.codan.ui.cxx,3.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.core,5.6.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.core.linux,5.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.core.linux.x86_64,5.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.debug.core,7.4.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.debug.mi.core,7.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.debug.mi.ui,6.1.1.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.debug.ui,7.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.doc.user,5.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.dsf,2.4.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.dsf.gdb,4.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.dsf.gdb.ui,2.4.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.dsf.ui,2.4.0.201402142303
No repository found containing: org.eclipse.update.feature,org.eclipse.cdt,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.gdb,7.0.0.201402142303
No repository found containing: org.eclipse.update.feature,org.eclipse.cdt.gdb,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.gdb.ui,7.0.0.201402142303
No repository found containing: org.eclipse.update.feature,org.eclipse.cdt.gnu.build,8.3.0.201402142303
No repository found containing: org.eclipse.update.feature,org.eclipse.cdt.gnu.debug,8.3.0.201402142303
No repository found containing: org.eclipse.update.feature,org.eclipse.cdt.gnu.dsf,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.launch,7.1.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.make.core,7.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.make.ui,7.2.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.managedbuilder.core,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.managedbuilder.gnu.ui,8.2.1.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.managedbuilder.ui,8.2.1.201402142303
No repository found containing: org.eclipse.update.feature,org.eclipse.cdt.platform,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.cdt.ui,5.7.0.201402142303
No repository found containing: binary,org.eclipse.cdt_root,8.3.0.201402142303
No repository found containing: osgi.bundle,org.eclipse.net4j.jms.api,3.1.100.v20140218-1709
I added Eclipse CDT 8.4 update site (http://download.eclipse.org/tools/cdt/releases/8.4), it retrieves version 8.4.0.201406111759, same version than Luna update site, and obviously error was the same:
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, 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 install Eclipse CDT in my Eclipse Luna instance?
PD: Eclipse forums are not accepting my credentials of Eclipse account, I could not post my question there.
Finally I solved the problem. I was using Oracle Java 6 to execute Eclipse. After upgrading to Oracle Java 8, the installation process executed correctly.
Go to Help > Install new software...
Add the following URL: http://download.eclipse.org/tools/cdt/releases/8.4/ and install CDT from there. The current Luna repository for CDT in Marketplace does not function properly, so the manual way is the way to go.

Installing Subclipse 1.8 in Eclipse 3.8

I am trying to install Sublclipse 1.8 under Eclipse Classic 3.8.2 (M20130131-0800) under OS X 10.8.3. This results in the error message:
An error occurred while collecting items to be installed
session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.draw2d,3.9.0.201212170307
No repository found containing: osgi.bundle,org.eclipse.gef,3.9.0.201212170307
How can I obtain the missing plugins?
I have set up http://subclipse.tigris.org/update_1.8.x as an update site, which according to the Subclipse page is compatible with Eclipse 3.8. In the install dialog I have selected all the available plugins in both the "Subclipse" and the "SVNKit" group.
Installing GEF from the update site http://download.eclipse.org/releases/juno does not work either:
An error occurred while collecting items to be installed
session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.draw2d,3.9.0.201212170307
No repository found containing: osgi.bundle,org.eclipse.draw2d.doc.isv,3.8.1.201212170307
No repository found containing: org.eclipse.update.feature,org.eclipse.draw2d,3.9.0.201212170307
No repository found containing: org.eclipse.update.feature,org.eclipse.draw2d.sdk,3.9.0.201212170307
No repository found containing: osgi.bundle,org.eclipse.draw2d.source,3.9.0.201212170307
No repository found containing: org.eclipse.update.feature,org.eclipse.draw2d.source,3.9.0.201212170307
No repository found containing: osgi.bundle,org.eclipse.gef,3.9.0.201212170307
No repository found containing: osgi.bundle,org.eclipse.gef.doc.isv,3.8.1.201212170307
No repository found containing: osgi.bundle,org.eclipse.gef.examples.ui.pde,3.8.1.201212170307
No repository found containing: org.eclipse.update.feature,org.eclipse.gef,3.9.0.201212170307
No repository found containing: org.eclipse.update.feature,org.eclipse.gef.sdk,3.9.0.201212170307
No repository found containing: osgi.bundle,org.eclipse.gef.source,3.9.0.201212170307
No repository found containing: org.eclipse.update.feature,org.eclipse.gef.source,3.9.0.201212170307
The Subversion Revision Graph optional feature needs GEF, so if it is not necessary for you, you can skip installing it. Otherwise, things to try:
Install Subclipse simply from Marketplace, as the Installation Instructions suggest. (If your distribution doesn't contain it, you can install Marketplace itself from the Juno update site.)
The Juno update site http://download.eclipse.org/releases/juno contains GEF, make sure it is among your available software sites. You can also try the GEF milestone update site: http://download.eclipse.org/tools/gef/updates/milestones

How do I install Aptana plugin in Eclipse 3.7?

I'm trying to install the Aptana Studio 3 plugin into Eclipse 3.7 on Ubuntu, but it is failing with the message
An error occurred while collecting items to be installed
session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.jdt.core,3.7.0.dist
No repository found containing: osgi.bundle,org.eclipse.jdt.core.manipulation,1.4.0.dist
No repository found containing: osgi.bundle,org.eclipse.jdt.debug,3.7.0.dist
No repository found containing: osgi.bundle,org.eclipse.jdt.launching,3.6.0.dist
No repository found containing: osgi.bundle,org.eclipse.jdt.ui,3.7.0.dist
No repository found containing: osgi.bundle,org.junit,3.8.2.v3_8_2_v20100427-1100
The package URL I'm using is http://download.aptana.com/studio3/plugin/install. What am I doing wrong?
Update: I followed sgibly's advice below and now the install gets to about 49% before failing with this message:
An error occurred while collecting items to be installed
session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Comparison method violates its general contract!
Comparison method violates its general contract!
Try this:
Open the Eclipse Preferences and look for Install/Update->Available Software and make sure that the Indigo update site is selected.
If it's not selected, add http://download.eclipse.org/eclipse/updates/3.7 and try to install the Studio again.
Hope that helps.

M2Eclipse & Helios - errors

I downloaded the latest Eclipse Helios Java EE package and installed it with success.
Now I want to install m2eclipse and I used the update site http://m2eclipse.sonatype.org/sites/m2e (see here: http://m2eclipse.sonatype.org/installing-m2eclipse.html)
An error occurs:
An error occurred while collecting items to be installed session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.maven.ide.eclipse,0.10.2.20100623-1649
No repository found containing: osgi.bundle,org.maven.ide.eclipse.archetype_common,0.10.2.20100623-1649
No repository found containing: osgi.bundle,org.maven.ide.eclipse.dependency_tree,0.10.2.20100623-1649
No repository found containing: osgi.bundle,org.maven.ide.eclipse.editor,0.10.2.20100623-1649
No repository found containing: osgi.bundle,org.maven.ide.eclipse.editor.xml,0.10.2.20100623-1649
No repository found containing: org.eclipse.update.feature,org.maven.ide.eclipse.feature,0.10.2.20100623-1649
No repository found containing: osgi.bundle,org.maven.ide.eclipse.jdt,0.10.2.20100623-1649
No repository found containing: osgi.bundle,org.maven.ide.eclipse.launching,0.10.2.20100623-1649
No repository found containing: osgi.bundle,org.maven.ide.eclipse.maven_embedder,0.10.2.20100623-1649
No repository found containing: osgi.bundle,org.maven.ide.eclipse.maven_model_edit,0.10.2.20100623-1649
No repository found containing: osgi.bundle,org.maven.ide.eclipse.nexus_indexer,0.10.2.20100623-1649
No repository found containing: osgi.bundle,org.maven.ide.eclipse.pr,0.10.2.20100623-1649
No repository found containing: osgi.bundle,org.maven.ide.eclipse.refactoring,0.10.2.20100623-1649
The other way I found here:
http://www.sonatype.com/books/m2eclipse-book/reference/install-sect-marketplace.html
is to use the new Eclipse Marketplace. I searched for m2eclipse, but there is no install button only "learn more".
What's wrong? How can I install m2eclipse with Helios?
Thank you in advance & Best Regards.
Use http://m2eclipse.sonatype.org/sites/archives/0.10.2.20100623-1649/
instead of: http://m2eclipse.sonatype.org/sites/m2e
I found a solution. I took the latest nightly build bia the update site and it seems to work.