簡體   English   中英

Eclipse Mars 卡在 Maven 項目導入中

[英]Eclipse Mars gets stuck at Maven project import

我正在嘗試使用現有的 Maven 項目在我的本地 Eclipse Mars 中創建一個新工作區。 問題是,導入后,我無法以任何方式修改它,這要歸功於 Eclipse 沒有完成“導入 Maven 項目”的操作,它永遠掛在 40% 處:

在此處輸入圖片說明

這似乎阻止了我將任何新內容保存到代碼中。 有什么辦法可以解決這個問題嗎? 提前致謝。

編輯:

所以感謝greg我想起了項目的 .metadata 目錄,在 .log 文件中,最后出現了這個:

!ENTRY org.eclipse.oomph.setup.core 2 0 2019-12-10 16:28:18.763
!MESSAGE Proxy Authentication Required
!STACK 0
org.eclipse.oomph.util.IOExceptionWithCause: Proxy Authentication Required
    at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.java:295)
    at org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:360)
    at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.handleArchiveRedirection(SetupCoreUtil.java:383)
    at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.configureResourceSet(SetupCoreUtil.java:365)
    at org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.createResourceSet(SetupCoreUtil.java:133)
    at org.eclipse.oomph.setup.internal.core.SetupContext.associate(SetupContext.java:359)
    at org.eclipse.oomph.setup.internal.core.SetupContext.createSelf(SetupContext.java:238)
    at org.eclipse.oomph.setup.ui.SetupUIPlugin.performStartup(SetupUIPlugin.java:563)
    at org.eclipse.oomph.setup.ui.SetupUIPlugin.access$3(SetupUIPlugin.java:346)
    at org.eclipse.oomph.setup.ui.SetupUIPlugin$1$1.run(SetupUIPlugin.java:243)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.ecf.filetransfer.IncomingFileTransferException: Proxy Authentication Required
    at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.openStreams(HttpClientRetrieveFileTransfer.java:658)
    at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:885)
    at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:576)
    at org.eclipse.ecf.provider.filetransfer.retrieve.MultiProtocolRetrieveAdapter.sendRetrieveRequest(MultiProtocolRetrieveAdapter.java:106)
    at org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.java:232)
    ... 10 more

!ENTRY org.eclipse.m2e.logback.appender 2 0 2019-12-10 16:28:48.305
!MESSAGE Failure to transfer com.alexnederlof:jasperreports-plugin/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer metadata com.alexnederlof:jasperreports-plugin/maven-metadata.xml from/to central (http://repo1.maven.org/maven2): Not authorized by proxy, ReasonPhrase:Proxy Authentication Required.

!ENTRY org.eclipse.m2e.logback.appender 2 0 2019-12-10 16:28:48.329
!MESSAGE Failure to transfer com.alexnederlof:jasperreports-plugin/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer metadata com.alexnederlof:jasperreports-plugin/maven-metadata.xml from/to central (http://repo1.maven.org/maven2): Not authorized by proxy, ReasonPhrase:Proxy Authentication Required.

!ENTRY org.eclipse.m2e.logback.appender 2 0 2019-12-10 16:28:48.352
!MESSAGE Failure to transfer com.alexnederlof:jasperreports-plugin/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer metadata com.alexnederlof:jasperreports-plugin/maven-metadata.xml from/to central (http://repo1.maven.org/maven2): Not authorized by proxy, ReasonPhrase:Proxy Authentication Required.

!ENTRY org.eclipse.m2e.logback.appender 2 0 2019-12-10 16:28:48.585
!MESSAGE Failure to transfer com.alexnederlof:jasperreports-plugin/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer metadata com.alexnederlof:jasperreports-plugin/maven-metadata.xml from/to central (http://repo1.maven.org/maven2): Not authorized by proxy, ReasonPhrase:Proxy Authentication Required.

!ENTRY org.eclipse.m2e.logback.appender 2 0 2019-12-10 16:28:48.634
!MESSAGE Failure to transfer com.alexnederlof:jasperreports-plugin/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer metadata com.alexnederlof:jasperreports-plugin/maven-metadata.xml from/to central (http://repo1.maven.org/maven2): Not authorized by proxy, ReasonPhrase:Proxy Authentication Required.

!ENTRY org.eclipse.m2e.logback.appender 2 0 2019-12-10 16:28:48.675
!MESSAGE Failure to transfer com.alexnederlof:jasperreports-plugin/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer metadata com.alexnederlof:jasperreports-plugin/maven-metadata.xml from/to central (http://repo1.maven.org/maven2): Not authorized by proxy, ReasonPhrase:Proxy Authentication Required.

!ENTRY org.eclipse.m2e.logback.appender 2 0 2019-12-10 16:28:50.840
!MESSAGE Failure to transfer com.alexnederlof:jasperreports-plugin/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer metadata com.alexnederlof:jasperreports-plugin/maven-metadata.xml from/to central (http://repo1.maven.org/maven2): Not authorized by proxy, ReasonPhrase:Proxy Authentication Required.

!ENTRY org.eclipse.m2e.logback.appender 2 0 2019-12-10 16:28:50.870
!MESSAGE Failure to transfer com.alexnederlof:jasperreports-plugin/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer metadata com.alexnederlof:jasperreports-plugin/maven-metadata.xml from/to central (http://repo1.maven.org/maven2): Not authorized by proxy, ReasonPhrase:Proxy Authentication Required.

!ENTRY org.eclipse.m2e.logback.appender 2 0 2019-12-10 16:28:50.893
!MESSAGE Failure to transfer com.alexnederlof:jasperreports-plugin/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer metadata com.alexnederlof:jasperreports-plugin/maven-metadata.xml from/to central (http://repo1.maven.org/maven2): Not authorized by proxy, ReasonPhrase:Proxy Authentication Required.

我知道代理身份驗證阻止我為 Eclipse 下載新插件,但不知道在某些情況下它可能不允許我導入現有項目。 對於其他項目,它工作正常。 無論如何,我會看看我是否可以與我的網絡管理員一起解決這個問題,然后再回來。

所以,我的錯誤。 結果發現丟失了一些東西,它是應該存在於 C:\\Users\\.m2 中的 settings.xml 文件。 處理完這些后,導入成功完成。 謝謝小伙伴們的關注。

暫無
暫無

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

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