1

Maven 项目不能在 Eclipse Indigo 下运行(我有很多 Indigo,Maven 可以在任何地方工作,除了一个 Indigo 实例)。

如果创建新的 quickstart maven 项目,则 POM 文件会导致错误

Multiple annotations found at this line:
    - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources (execution: default-resources, phase: process-resources)
    - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin:2.4.3:testResources (execution: default-testResources, phase: process-test-
     resources)

这标志着线

<packaging>jar</packaging>

没有建议修复。

如果尝试更新 maven,则会出现以下错误:

Cannot complete the install because one or more required items could not be found.
  Software being installed: m2e - Maven Integration for Eclipse 1.4.0.20130601-0317 (org.eclipse.m2e.feature.feature.group 1.4.0.20130601-0317)
  Missing requirement: Embedded Maven Runtime Bundle 1.4.0.20130531-2315 (org.eclipse.m2e.maven.runtime 1.4.0.20130531-2315) requires 'bundle org.slf4j.api 1.6.2' but it could not be found
  Cannot satisfy dependency:
    From: m2e - Maven Integration for Eclipse 1.4.0.20130601-0317 (org.eclipse.m2e.feature.feature.group 1.4.0.20130601-0317)
    To: org.eclipse.m2e.maven.indexer [1.4.0.20130531-2315]
  Cannot satisfy dependency:
    From: Maven / Nexus Indexer Bundle 1.4.0.20130531-2315 (org.eclipse.m2e.maven.indexer 1.4.0.20130531-2315)
    To: bundle org.eclipse.m2e.maven.runtime [1.4.0,1.5.0)

如何克服地狱?

4

0 回答 0