Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
EclipseMars在Maven项目导入时陷入困境_Eclipse_Maven_Import - Fatal编程技术网

EclipseMars在Maven项目导入时陷入困境

EclipseMars在Maven项目导入时陷入困境,eclipse,maven,import,Eclipse,Maven,Import,我正试图使用现有的Maven项目在本地EclipseMars中创建一个新的工作区。问题是,在导入它之后,由于Eclipse没有完成“导入Maven项目”的操作,我无法以任何方式修改它,该操作将永远挂起40%: 这似乎阻止我保存任何新的代码。我能绕开这件事吗?提前谢谢 编辑: 多亏有人提醒我该项目的.metadata目录,在.log文件中,最后出现了以下内容: !ENTRY org.eclipse.oomph.setup.core 2 0 2019-12-10 16:28:18.763 !MES

我正试图使用现有的Maven项目在本地EclipseMars中创建一个新的工作区。问题是,在导入它之后,由于Eclipse没有完成“导入Maven项目”的操作,我无法以任何方式修改它,该操作将永远挂起40%:

这似乎阻止我保存任何新的代码。我能绕开这件事吗?提前谢谢

编辑:

多亏有人提醒我该项目的.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文件。经过处理,导入成功完成。谢谢大家的关注。

Eclipse已经4年了,发布了8个版本,也许使用最新的Eclipse会有所帮助。否则,请查看workspace.metadata目录中的.log文件,查看是否有错误消息。感谢提供.metadata目录中的信息。有点像Eclipse的新手。你能用Eclipse2019-09(4.13)代替已经过时几年的EclipseMars重现这个问题吗?如果是,请显示以
开头的日志!会话
格式为代码片段(而不是引号),以防止换行。我强烈建议您第一次在普通命令行上构建项目,因为它的速度要快得多…@howlger遗憾的是,我不能。由于严格的软件安装政策,我的公司目前只提供一些旧版本。如果不是这样,我可能会使用最新版本。但正如我在编辑中所说,我仍在努力获得适当的代理权限,因为每当我尝试访问Eclipse Marketplace时,都会收到相同的错误消息,其中提到“需要代理身份验证”。我会随时更新帖子。