gpt4 book ai didi

eclipse - eclipse(开普勒):maven插件(m2e,1.4.0):

转载 作者:行者123 更新时间:2023-12-03 13:38:10 26 4
gpt4 key购买 nike

我刚刚下载并安装了“Eclipse Eclipse for Java EE Developers”,这是一个软件包解决方案,其中包括m2e插件以及其他插件。

尝试在Eclipse中重建Maven中央存储库的索引时,出现以下错误:

"Unable to update index for central|http: //repo.maven.apache.org/maven2: [...]/.m2/repository/.cache/[...]/nexus-maven-repository-index.zip (Datei oder Verzeichnis nicht gefunden)"



检查该缓存,我发现文件“nexus-maven-repository-index.gz”,但没有zip文件。

我是否错过了Maven插件的某些配置选项?
如果没有,那是怎么回事?
(在central.maven.org/maven2/.index/处只有一个gz文件。那么为什么m2e搜索zip文件?)

非常感谢您的帮助。

更多细节:
  • 平台

    [alqais @ kroete〜] $ uname --all
    Linux kroete 3.14.1-1-ARCH#1 SMP PREEMPT Mon Apr 14 21:01:08 CEST 2014 i686 GNU / Linux
  • Eclipse版本

    www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/keplersr2
    linux 32位:eclipse-jee-kepler-SR2-linux-gtk.tar.gz
  • JRE

    www.java.com/en/download/linux_manual.jsp
    linux 32位:jre-7u55-linux-i586.tar.gz
  • Eclipse日志(控制台)

  • [alqais@kroete eclipse]$ ./eclipse -consoleLog
    [...]
    2014-04-25 00:39:42,681 [Worker-1] INFO o.e.m.c.i.i.nexus.NexusIndexManager - Updating index for repository: central|http: //repo.maven.apache.org/maven2
    2014-04-25 00:39:42,889 [Worker-1] INFO c.n.h.c.p.n.NettyAsyncHttpProvider - Number of application's worked threads is 2
    2014-04-25 00:41:48,619 [Worker-1] ERROR o.e.m.c.i.i.nexus.NexusIndexManager - Unable to update index for central|http: //repo.maven.apache.org/maven2: /home/alqais/.m2/repository/.cache/m2e/1.4.0/26522e0d83a422eed93329ece7565cfc/nexus-maven-repository-index.zip (Datei oder Verzeichnis nicht gefunden)
    java.io.FileNotFoundException: /home/alqais/.m2/repository/.cache/m2e/1.4.0/26522e0d83a422eed93329ece7565cfc/nexus-maven-repository-index.zip (Datei oder Verzeichnis nicht gefunden)
    at java.io.FileInputStream.open(Native Method) ~[na:1.7.0_55]
    at java.io.FileInputStream.(Unknown Source) ~[na:1.7.0_55]
    at org.apache.maven.index.updater.DefaultIndexUpdater$FileFetcher.retrieve(DefaultIndexUpdater.java:568) ~[indexer-core-3.1.0.jar:3.1.0]
    at org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:206) ~[indexer-core-3.1.0.jar:3.1.0]
    at org.apache.maven.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:75) ~[indexer-core-3.1.0.jar:3.1.0]
    at org.apache.maven.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:645) ~[indexer-core-3.1.0.jar:3.1.0]
    at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:844) ~[indexer-core-3.1.0.jar:3.1.0]
    at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:156) ~[indexer-core-3.1.0.jar:3.1.0]
    at org.eclipse.m2e.core.internal.index.nexus.NexusIndexManager.updateRemoteIndex(NexusIndexManager.java:1139) [org.eclipse.m2e.core_1.4.0.20130601-0317.jar:na]
    at org.eclipse.m2e.core.internal.index.nexus.NexusIndexManager.updateIndex(NexusIndexManager.java:1086) [org.eclipse.m2e.core_1.4.0.20130601-0317.jar:na]
    at org.eclipse.m2e.core.internal.index.nexus.NexusIndex.updateIndex(NexusIndex.java:145) [org.eclipse.m2e.core_1.4.0.20130601-0317.jar:na]
    at org.eclipse.m2e.core.ui.internal.views.MavenRepositoryView$8$1.run(MavenRepositoryView.java:391) [org.eclipse.m2e.core.ui_1.4.0.20130601-0317.jar:na]
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) [org.eclipse.core.jobs_3.5.300.v20130429-1813.jar:na]
    !SESSION 2014-04-25 00:36:18.506 -----------------------------------------------
    eclipse.buildId=4.3.2.M20140221-1700
    java.version=1.7.0_55
    java.vendor=Oracle Corporation
    BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=de_DE
    Framework arguments: -product org.eclipse.epp.package.jee.product
    Command-line arguments: -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.jee.product -consoleLog
    !ENTRY org.eclipse.m2e.logback.appender 4 0 2014-04-25 00:41:48.640
    !MESSAGE Unable to update index for central|http: //repo.maven.apache.org/maven2: /home/alqais/.m2/repository/.cache/m2e/1.4.0/26522e0d83a422eed93329ece7565cfc/nexus-maven-repository-index.zip (Datei oder Verzeichnis nicht gefunden)


  • Eclipse进程

  • [alqais@kroete ~]$ ps ax | grep jre
    4337 pts/1 Sl+ 1:40 /home/alqais/programs/jre1.7.0_55/bin/java -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar /home/alqais/programs/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar -os linux -ws gtk -arch x86 -showsplash /home/alqais/programs/eclipse//plugins/org.eclipse.platform_4.3.2.v20140221-1700/splash.bmp -launcher /home/alqais/programs/eclipse/eclipse -name Eclipse --launcher.library /home/alqais/programs/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20140116-2212/eclipse_1508.so -startup /home/alqais/programs/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar --launcher.appendVmargs -exitdata 4e0008 -product org.eclipse.epp.package.jee.product -consoleLog -vm /home/alqais/programs/jre1.7.0_55/bin/java -vmargs -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms40m -Xmx512m -jar /home/alqais/programs/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar


  • 本地Maven缓存内容

  • [alqais@kroete ~]$ ls -alt .m2/repository/.cache/m2e/1.4.0/26522e0d83a422eed93329ece7565cfc/
    insgesamt 116896
    drwxr-xr-x 2 alqais alqais 4096 25. Apr 00:40 min
    drwxr-xr-x 3 alqais alqais 4096 25. Apr 00:40 .
    -rw-r--r-- 1 alqais alqais 1131 25. Apr 00:40 nexus-maven-repository-index.properties
    -rw-r--r-- 1 alqais alqais 0 25. Apr 00:40 chunks.lst
    -rw-r--r-- 1 alqais alqais 119684538 25. Apr 00:40 nexus-maven-repository-index.gz
    -rw-r--r-- 1 alqais alqais 0 24. Apr 23:51 .lock
    drwxr-xr-x 3 alqais alqais 4096 24. Apr 23:51 ..

    最佳答案

    为了将潜在的Eclipse问题与Maven问题分开,您可以尝试安装最新版本的Maven并将其设置为Eclipse(Windows>首选项> Maven)。

    关于eclipse - eclipse(开普勒):maven插件(m2e,1.4.0):,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23282250/

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