gpt4 book ai didi

java - Eclipse 中的 Maven 插件错误

转载 作者:太空宇宙 更新时间:2023-11-04 12:21:58 27 4
gpt4 key购买 nike

我安装了eclipse的maven插件m2e。无法更新中央索引| http://repo1.maven.org/maven2

我在 eclipse indigo 中尝试了很多解决方案,但对我不起作用。没有settings.xml 文件。我手动创建并尝试编辑代理设置。我有单独的 Maven 插件安装。请问有人可以帮忙解决问题吗?非常感谢。

设置.xml:

enter image description here.plugin文件夹结构:

enter image description here

错误:

!SESSION 2016-08-05 08:05:16.128 -----------------------------------------------
eclipse.buildId=M20120208-0800
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.core.net 1 0 2016-08-05 08:16:30.768
!MESSAGE System property https.proxyHost is set to 172.16.0.9 but should not be set.

!ENTRY org.eclipse.core.net 1 0 2016-08-05 08:16:30.783
!MESSAGE System property https.proxyPort is set to 8080 but should not be set.

!ENTRY org.eclipse.core.net 1 0 2016-08-05 08:16:36.130
!MESSAGE System property https.proxyHost is set to 172.16.0.9 but should not be set.

!ENTRY org.eclipse.core.net 1 0 2016-08-05 08:16:36.131
!MESSAGE System property https.proxyPort is set to 8080 but should not be set.

!ENTRY org.eclipse.core.net 1 0 2016-08-05 08:16:36.142
!MESSAGE System property https.proxyHost is set to 172.16.0.9 but should not be set.

!ENTRY org.eclipse.core.net 1 0 2016-08-05 08:16:36.143
!MESSAGE System property https.proxyPort is set to 8080 but should not be set.

!ENTRY org.eclipse.m2e.logback.appender 2 0 2016-08-05 08:19:47.894
!MESSAGE Failed to dispatch repository event to org.eclipse.m2e.core.internal.embedder.EclipseRepositoryListener: null

!ENTRY org.eclipse.m2e.logback.appender 2 0 2016-08-05 08:19:57.900
!MESSAGE AsyncHttpClient.close() hasn't been invoked, which may produce file descriptor leaks

!ENTRY org.eclipse.m2e.logback.appender 2 0 2016-08-05 08:19:57.901
!MESSAGE AsyncHttpClient.close() hasn't been invoked, which may produce file descriptor leaks

!ENTRY org.eclipse.m2e.logback.appender 2 0 2016-08-05 08:19:57.902
!MESSAGE AsyncHttpClient.close() hasn't been invoked, which may produce file descriptor leaks

!ENTRY org.eclipse.m2e.logback.appender 2 0 2016-08-05 08:19:57.902
!MESSAGE AsyncHttpClient.close() hasn't been invoked, which may produce file descriptor leaks

!ENTRY org.eclipse.m2e.logback.appender 2 0 2016-08-05 08:19:57.903
!MESSAGE AsyncHttpClient.close() hasn't been invoked, which may produce file descriptor leaks

!ENTRY org.eclipse.m2e.logback.appender 2 0 2016-08-05 08:19:57.903
!MESSAGE AsyncHttpClient.close() hasn't been invoked, which may produce file descriptor leaks

!ENTRY org.eclipse.m2e.logback.appender 2 0 2016-08-05 08:19:57.904
!MESSAGE AsyncHttpClient.close() hasn't been invoked, which may produce file descriptor leaks

!ENTRY org.eclipse.m2e.logback.appender 2 0 2016-08-05 08:20:23.211
!MESSAGE Failed to dispatch repository event to org.eclipse.m2e.core.internal.embedder.EclipseRepositoryListener: null

!ENTRY org.eclipse.ui 4 4 2016-08-05 08:23:20.101
!MESSAGE Invalid preference page path: XML Syntax

!ENTRY org.eclipse.core.jobs 2 2 2016-08-05 08:23:20.832
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.m2e.core.internal.index.nexus.IndexUpdaterJob

!ENTRY org.eclipse.m2e.logback.appender 4 0 2016-08-05 08:23:21.171
!MESSAGE Unable to update index for central|http://repo1.maven.org/maven2
!SESSION 2016-08-05 08:23:49.999 -----------------------------------------------
eclipse.buildId=M20120208-0800
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.ui 4 4 2016-08-05 08:27:39.836
!MESSAGE Invalid preference page path: XML Syntax

!ENTRY org.eclipse.m2e.logback.appender 4 0 2016-08-05 08:27:39.920
!MESSAGE Can't write workspace state

!ENTRY org.eclipse.m2e.logback.appender 4 0 2016-08-05 08:27:40.571
!MESSAGE Unable to update index for central|http://repo1.maven.org/maven2
!SESSION 2016-08-05 08:27:41.724 -----------------------------------------------
eclipse.buildId=M20120208-0800
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.ui 4 4 2016-08-05 08:29:06.544
!MESSAGE Invalid preference page path: XML Syntax

!ENTRY org.eclipse.core.jobs 2 2 2016-08-05 08:29:07.516
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.m2e.core.internal.index.nexus.IndexUpdaterJob
!SESSION 2016-08-05 08:29:07.960 -----------------------------------------------
eclipse.buildId=M20120208-0800
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.ui 4 4 2016-08-05 08:38:15.731
!MESSAGE Invalid preference page path: XML Syntax

!ENTRY org.eclipse.core.jobs 2 2 2016-08-05 08:38:16.709
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.m2e.core.internal.repository.RepositoryRegistryUpdateJob

!ENTRY org.eclipse.core.jobs 2 2 2016-08-05 08:38:16.710
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.m2e.core.internal.index.nexus.IndexUpdaterJob
!SESSION 2016-08-05 08:38:17.176 -----------------------------------------------
eclipse.buildId=M20120208-0800
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.ui 4 4 2016-08-05 09:22:02.863
!MESSAGE Invalid preference page path: XML Syntax

!ENTRY org.eclipse.core.jobs 2 2 2016-08-05 09:22:03.842
!MESSAGE Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.m2e.core.internal.index.nexus.IndexUpdaterJob

更新

我使用 eclipse 安装了 m2e 插件。

enter image description here

enter image description here

最佳答案

解决方案是在 Eclipse 中指向本地 Maven 安装,转到首选项 > Maven > 安装并在右侧面板中“添加”

enter image description here

然后在 Maven > usersettings 中指向您的 settings.xml。更新设置

enter image description here

关于java - Eclipse 中的 Maven 插件错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38782602/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com