今日もシュクシュクと!

ソフトウェア・エンジニアを目指して修行中の日々。学習もコツコツと。そして粛々と。

EclipseにEGitをインストールする際のエラー

EclipseにEGitをインストールする際のエラーの対応方法のメモ。

 

エラーメッセージ:

An error occurred during the org.eclipse.equinox.internal.p2.engine.phases.CheckTrust phase.
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.CheckTrust, operand=, action=).
Error reading signed content.
Exception in opening zip file: /Applications/Eclipse_neon.app/Contents/Eclipse/configuration/org.eclipse.osgi/338/data/-999689430/plugins/javaewah_1.1.6.v20160919-1400.jar

 

原因と対応方法:

その1:ワークスペースディレクトリ・パスにブランクが含まれている

 

その2:インストール対象を http://download.eclipse.org/egit/updates

➝ http://download.eclipse.org/egit/updates-nightly

 に変更する

参考URL:

Eclipse Community Forums: EGit / JGit » Cannot Install EGit on Eclipse 4.4 M7

 

その3:Eclipseディレクトリパスにある"artifacts.xml"を一旦Renameして、インストール後に元のファイル名に戻す。

"artifacts.xml"はプラグインの導入履歴を管理しているファイル

<手順>

1.Eclipseのrootディレクトリに移動する

/Applications/Eclipse_Neon.app/ 

2."artifacts.xml"を検索し、Renameする

$ find . -name 'artifacts.xml'
./Contents/Eclipse/artifacts.xml
./Contents/Eclipse/configuration/org.eclipse.osgi/338/data/1665290236/artifacts.xml
./Contents/Eclipse/configuration/org.eclipse.osgi/358/data/-1540143266/artifacts.xml
./Contents/Eclipse/p2/org.eclipse.equinox.p2.core/cache/artifacts.xml

※上記のうち1番目と4番目をRenameしてインストールに成功したが、4番目のみをRenameしてもうまくいくかもしれない。

 

参考URL:

stackoverflow.com