簡體   English   中英

為Eclipse Neon安裝Checkstyle-Plugin(7.2.0)失敗

[英]Installing Checkstyle-Plugin (7.2.0) for Eclipse Neon fails

我嘗試通過將提供的鏈接從http://eclipse-cs.sourceforge.net/#!/拖到我的Eclipse窗口中,來為我的Eclipse for Java Developers捆綁包Eclipse for Java Developers安裝checkstyle-Plugin。

不幸的是,這導致以下錯誤:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,net.sf.eclipsecs.branding,7.2.0.201611072237
No repository found containing: osgi.bundle,net.sf.eclipsecs.checkstyle,7.2.0.201611072237
No repository found containing: osgi.bundle,net.sf.eclipsecs.core,7.2.0.201611082201
No repository found containing: osgi.bundle,net.sf.eclipsecs.doc,7.2.0.201611082205
No repository found containing: org.eclipse.update.feature,net.sf.eclipsecs,7.2.0.201611082205
No repository found containing: osgi.bundle,net.sf.eclipsecs.ui,7.2.0.201611072237

知道我該如何解決嗎?

使用Marketplace安裝它也不起作用。 它失敗了:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Unable to read repository at https://sourceforge.net/projects/eclipse-cs/files/updatesite/7.2.0/plugins/net.sf.eclipsecs.doc_7.2.0.201611082205.jar.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Unable to read repository at https://sourceforge.net/projects/eclipse-cs/files/updatesite/7.2.0/features/net.sf.eclipsecs_7.2.0.201611082205.jar.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

您需要將網絡根SSL證書安裝到JRE CACERTS中。 對於任何JAVA PKIX SSL認證,您都可以遵循本指南。

如何獲得根證書?

  1. 打開谷歌瀏覽器並導航到https://sourceforge.net/
  2. 單擊網址旁邊的圖標。 見下圖。

在此處輸入圖片說明

  1. 單擊查看證書。您可以查看層次結構並選擇層次結構中最上面的證書
  2. 確認證書名稱中包含ROOT詞。
  3. 現在,在該層次結構部分下面,您可以看到證書的矩形圖像。 只需將該圖像拖放到桌面上即可。

現在您已經有了根證書!

如何將此證書安裝到JRE CACERTS中?

在繼續進行之前,請確認您已完全找到給出此錯誤的jre。 很多時候,IDE使用與它捆綁在一起的jre而不是系統jre。 就我而言,我將所有IDE都指向了系統Java安裝。

  1. 在jre bin文件夾中使用keytool.exe。
  2. 觸發以下命令將您的證書放入cacerts文件中

keytool-導入-noprompt -trustcacerts-別名別名-文件
/ PATH / TO /您的/DESKTOP/CertificateName.cer-密鑰庫/ PATH / TO /您的/ JDK / jre / lib / security / cacerts -storepass changeit

現在,您的問題已解決! 重新啟動您的IDE並檢查結果。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM