Why does the eclipse installation of new software failed? - eclipse

I have just download the eclipse and go to Help -> Install new Software, choose the Helios - http://download.eclipse.org/releases/helios
as the repository, then the exception
coms out as ,
org.eclipse.equinox.p2.core.ProvisionException:
Unable to connect to repository
http://download.eclipse.org/releases/helios/compositeContent.jar
at
org.eclipse.equinox.internal.p2.repository.CacheManager.updateCache(CacheManager.java:357)
at
org.eclipse.equinox.internal.p2.repository.CacheManager.createCache(CacheManager.java:205)
at
org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepositoryFactory.getLocalFile(CompositeMetadataRepositoryFactory.java:74)
at
org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepositoryFactory.load(CompositeMetadataRepositoryFactory.java:99)
at
org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57)
at
I am sure I could download the compositeContent.jar file from http://download.eclipse.org/releases/helios/compositeContent.jar for I have downloaded it within the firefox.
So what's wrong?

Since eclipse would typically catch a completely failed connection, your error suggests you are getting part of the update site but not all of it. There's quite a few files in an update site, mainly xml and jars.
If a proxy isn't the issue as Bobby suggested i would first try creating a new workspace and updating then to make sure eclipse hasnt cached anything corrupt. Otherwise you might have to resort to creating a local mirror of the update site.

Related

The project was not built due to "Could not delete ‘project’."

Firstly I take error given below:
An exception has been caught while processing the refactoring 'Delete Source'
After TFS cache is cleared, TFS server mapping is removed, .lock file in eclipse workspace .\metadata file is cleared, then TFS mapping is created, Get latest, Import is applied again and project can be deleted.After this, I pull project from TFS to my local path again in Problems view, error given below is taken:
The project was not built due to "Could not delete ‘project’.". Fix
the problem, then try refreshing this project and building it since it
may be inconsistent
Is my mapping can be incorret( Should I checked "Recursive" while setting mapping path)?
Thanks friends!
This Team Explorer Everywhere plugin enables using Team Foundation Version Control (TFVC) within Eclipse. And it is no longer maintained. It works on the operating system of your choice with Eclipse 4.2 (Juno) - 4.6 (Neon) as described here.
If you are still using this plugin, please follow this doc: Importing Projects from Team Foundation Server to import a project from the server to your Eclipse workspace rather than manually mapping and getting files. Manual mapping and getting is error-prone and can cause unpredictable behavior if you did not choose the correct mappings. Instead, importing can check compatibility issues and prevent Eclipse workspace problems.
In addition, for this particular eclipse issue: “The project was not built due to “Could not delete ‘project’.””, it seems that it is because customer has the workspace in a dropbox sysncing folder like this thread answered.

SonarQube fails to start due to findbugs and fbcontrib

I'm upgrading from Sonar 3.1.1 to SonarQube 4.0. I have the sonar-fb-contrib-plugin-1.2.jar file in my extensions/plugins directory. The startup fails with the following message:
2013.11.12 15:10:17 INFO org.sonar.INFO Install plugins done: 197 ms
2013.11.12 15:10:17 ERROR o.s.s.p.PlatformLifecycleListener Fail to start server
org.sonar.api.utils.SonarException: Fail to extend the plugin findbugs for fbcontrib
My understanding is that findbugs comes bundled with SonarQube (I can see the jar file under bundled-plugins). I'm not sure what the problem is here - it doesn't look like this works out of the box as it did for 3.1.1
I had a similar issue while upgrading from 3.6 to 3.7.3; the fbcontrib-plugin depends on the findbugs-plugin which is part of the sonar java-ecosystem.
In this case it is safe (and documented, point 6) to take a backup of the database and of the extensions directory before updating; then update and restart sonar having moved away any external contribution plugin, so that sonar can manage the update and come up back successfully. Another good tip is to not overwrite new configuration files with the old ones, instead manually editing them to bring over the old settings.
Then, add the plugins back and restart again; happy static analysis.

installation "objectaid" feature for eclipse

i try to install the feature of diagram - "objectaid" for eclipe ..
i do all the instruction in the mannual in http://www.objectaid.com/installation and during the installation i get the error -
Unable to read repository at http://www.objectaid.com.
Unable to read repository at http://www.objectaid.com.
http://www.objectaid.com is not a valid repository location.
i checked all the prerequisites needed like GEF (Graphical Editor Framework) and it was ok .
thanks in advance .
It looks like the update site is a legacy update site. I do not know if they are still supported by Eclipse.
Your best bet is to download the zip of the feature, which you can find here:
http://www.objectaid.com/update/
And then unzip it into your eclipse/dropins directory.
The ObjectAid update site does work. I recently added ObjectAid successfully to my Eclipse Mars. I compiled the steps here. You can try it out. Also, make sure there's no firewall or network issue when you try it.

Running an Eclipse plugin/update mirror

I'm trying to run a full Eclipse mirror for all the plugins / updates our development team might want or need. This is because our network is impeded by a WebSense proxy filter, which very often blocks plugins from downloading.
This has been exceptionally frustrating for all the devs concerned.
I finally got approval to run an Eclipse mirror on a dedicated server, which has unfettered access to the internet, and which all internal machines can access.
I've done a lot of reading up and learning about the Equinox P2 update mechanism, and about update site publishing.
I selected a test plugin to act as a touchstone, to see if it all works. It appears to, except for one thing:
The plugin itself has dependencies, which Eclipse then tries to get from the internet, and I cannot find anyway to override this so that it comes back to our own mirror instead.
How can I force Eclipse to always use our mirror, or how can I publish / chain dependencies so that Eclipse gets them from the mirror?
Thanks
I'm not sure 100% understanding your question.
I think you can add your mirror server as a repository when installing plug-ins from Eclipse's wizard. And disable all the built-in servers that have problem to be accessed in your Intranet.
If you don't modify it on GUI, you can modify the prefs files of p2.
<your eclipse>/p2/org.eclipse.equinox.p2.engine/.settings/org.eclipse.equinox.p2.artifact.repository.prefs
<your eclipse>/p2/org.eclipse.equinox.p2.engine/.settings/org.eclipse.equinox.p2.metadata.repository.prefs

Caching the repository index in m2eclipse

everytime i start with a fresh new workspace, m2eclipse downloads nexus-maven-repository-index.gz from the maven central repository.
this is good.
but,
some times, i just want to start a new workspace, and not wait for it to download,
it tried copying the whole .metadata directory from an old workspace to the new one,
but the list of maven artifacts are still empty.
is there a way i can cache it?
or at least download the file once, and the copy/extract/repackage it so that m2eclipse thinks it has already downloaded it and allows me to search for maven artifacts.
or a short version of the question
where and in what format is the "nexus-maven-repository-index.gz" file stored in the workspace?
The index is stored in the plugin's metadata location, i.e.
[workspace root]/.metadata/.plugins/org.maven.ide.eclipse/nexus
There will be one folder for each remote repository index in use.
You can configure the plugin to not download the index at startup too. Got to Window->Preferences->Maven and uncheck Download repository indexes at startup, you'll have to remember to reactivate it to get any updates though
Update:
I just verified that copying the metadata works. M2Eclipse will still contact the repository to download the deltas (assuming the above option is checked), but that only takes a few moments as it is only downloading the deltas.
Depending on your situation, you may want to try running a managed repository such as artifactory or nexus.
Configure it as the one-true-source-of-everything in maven, that way the initial download should only be from a local location and hence fast.
There is similar problem in my company, due to the network/security restrictions, the index file can't be downloaded by m2eclipse.
I have tried to use apache, to direct maven.org to my localhost to provide the index.(it should work, you can try). But again, network restriction disables local pc level ds resolution.
Last solution is try to downlaod nexus-maven-repository-index.zip, extract everything inside this zip, except the timestamp file, and extract and replace everything into the corresponding index folder for central repository.
It works. :-D