65

I'm trying to install a plugin in Eclipse Luna. I installed Papyrus and am trying to install SWT designer, but before the download/installation is completed I get an error:

An error occurred during the
org.eclipse.equinox.internal.p2.engine.phases.CheckTrust phase.
session context was:(profile=epp.package.standard,
phase=org.eclipse.equinox.internal.p2.engine.phases.CheckTrust,
operand=, action=). Error reading signed content. error in opening zip
file

After this error I can't install anything and the install manager does not work anymore and shows me the same error all the time only one way I delete the current Eclipse directory and extract it again.

This time I install Papyrus, SWT designer and some other, but I get the error between install another plugin again. This is wrong if I get an error on install any of plugin reinstalling Eclipse and the other plugin again.

Is this a bug or a problem?

12 Answers 12

136

OK finally i found the solution for solve this problem. I don't know why Eclipse is showing me this error and i don't know if this is the best solution. I solve my problem with delete the artifacts.xml file in Eclipse root directory.

After deleting this file try to install that plugin again but this time after few second everything completes and works perfectly.

UPDATE: If you get that error again then just go to Eclipses' root directory and search for "artifacts.xml" and delete all the files is in the result ;)

6
  • 2
    This works! I was trying to install GWT plugin for Eclipse Luna and this solved my issue. Many thanks!
    – Paul
    Nov 10, 2014 at 14:13
  • 2
    I was getting this error trying to update Luna and simply renaming the file to artifacts.xml.old did it. Eclipse is indeed a strange beast... Apr 6, 2015 at 10:43
  • 2
    You can even search for the violating artifacts in the artifacts.xml and delete only what's necessary.
    – Markus
    Apr 15, 2016 at 8:00
  • while installing plugin ,eclipse Luna automatically keeps creating those artifacts.xml files, so while plugin installation i kept deleting them and installation become successful.After installation finished those files again appeared but causing any harm. Dec 29, 2016 at 8:18
  • I had to remove/rename the artifacts.xml from the .p2folder in my user-dir
    – Robert P
    Sep 30, 2017 at 7:32
23
  1. Remove the artifacts.xml from the folder.

  2. Keep a copy of it in some other location (preferably external devices such as pendrive or hard disks etc).

  3. Restart Eclipse.

  4. Install the software plugin you want to install (it will ask for permission again).

  5. After installation paste the artifacts.xml file back into the eclipse folder.

  6. Restart eclipse and set the SDK location.

  7. Code to death!!! ;p

7

Run Eclipse as an administrator, then try to install the plugin again via help->Install New Software. it worked for me

4
  • How do you run eclipse as an administrator? Jun 11, 2020 at 9:34
  • 1
    I use windows and there you can simply right-click on the eclipse executable and select "Run as administrator". I am not sure about macOS and linux
    – The Prince
    Jun 17, 2020 at 9:35
  • 1
    ok yeah I use manjaro kde linux, I found a solution on how to run eclipse as admin/sudo here. From this I found out if you use ubuntu you should use: gksu eclipse and in my case (manjaro KDE) or other KDE distributions use: kdesu eclipse. From there I was then able to install new software again Jun 17, 2020 at 21:20
  • I forgot to note but you need to run those commands in the command line Jun 17, 2020 at 21:33
1

I installed E4 RCP Patch(bugzillas 445122)(Install new software -> Eclipse 4.4.1 Patches for bug 445122) and this helped me.

0

I ran across this problem while updating eclipse's internal software. I discovered that the jar file org.eclipse.epp.mpc.help.ui_1.5.2.v20161004-1655.jar (found in the error details) in the eclipse plugins directory was corrupted (7-Zip was unable to inspect its contents). I redownloaded and manually replaced this file with one downloaded from their site, and I was then able to install the software without an issue. Hope this helps :)

(If it was a different JAR file for you, you can click "show directory contents" on this page and download the one you need.)

0

The reason for this error is typically a damaged jar in the bundle pool. You can fix this without manually editing files:

  • run the Eclipse installer ("Oomph")
  • select "Bundle pools" from the menu
  • hit the "Analyze agent" button
  • wait until the column "Damaged Artifacts" doesn't show a percent number anymore (scanning has finished)

You can now filter the bottom view to show only damaged artifacts, and choose to either delete or repair them (repair means to download them again from the Internet).

-1

Recently i had this issue & i did a few workaround to make things right,

Drag and dropped from official page, normally eclipse restarts after the download, and a pop-up will ask us to select the svn connectors from list. but that didn't happened to me.

  1. Install svn Plugin. (By drag and drop or install new software or any)

  2. After this goto window->preferences->Team->svn

  3. select Connector Tab and click Get connectors Button then the prompt will appear select any one connector to get it done (i use NativeHL 1.8).

-1

I solved this problem by editing the artifacts.xml.

  1. Close Eclipse.
  2. Edit the artifacts.xml.
  3. Find and delete previous entries related to the plugin you are trying to install.
  4. Save artifacts.xml.

After this you should be able to start Eclipse normally and install your plugin.

-1

I tried many solution from here including the one which says removing artifacts.xml and try installing with opening software with Run as Administrator also tried to install from the Help option "Install new software" none of this worked for me.

Then I updated to the latest version of JDK and it worked perfectly. I hope this help you.

Thanks. Vijay P.

-2

org.aspectj.weaver_1.8.10.201704242114.jar
File will be downloaded for google, and it can be placed in eclipse/plugin/org.aspectj.weaver_1.8.10.201704242114.jar
can be replaced with older jar file.........it can be solved for your problem...........

-3

Try this from the Eclipse marketplace 1. Click Help>Eclipse marketPlace (Eclipse marketPlace dialog box will open) 2. Type the name of your plugin (ex: type SWT Designer) in the find edit box, make sure to keep default values for All markets and all categories, and click go button. 3. The page will refresh and display all plugins that have swt designer in their name. 4. Click intsall or update button on the one that fits your needs. 5. The installation or update will be done successfully. 6. Restart your eclipse 7. The installation will be fine.

-4

It's a failure in Eclipse.

Try to uninstall it then download it from: https://www.eclipse.org/downloads/

and install it.

5
  • i download eclipse 2 days ago, also i check update before going to install plugin AND i do the uninstall and reinstall it before not the absolute and good solution if get error again, i can't do anything (the plugin installer doesn't work anymore !!!) Aug 2, 2014 at 11:58
  • You need to remove everything related to eclipse in your computer.
    – Alex L
    Aug 2, 2014 at 12:09
  • I do this before, delete the eclipse and all other thing with/for it before coming here for ask but nothing change, this is not the first time I get this error in this 2 days Aug 2, 2014 at 12:22
  • ,no just on that plugin i was trying to install in the past Aug 2, 2014 at 12:39
  • Then there is a problem in the plugin, try to download it from somewhere else.
    – Alex L
    Aug 2, 2014 at 15:10

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.