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
Java 通用Eclipse Maven错误?_Java_Eclipse_Maven - Fatal编程技术网

Java 通用Eclipse Maven错误?

Java 通用Eclipse Maven错误?,java,eclipse,maven,Java,Eclipse,Maven,每当我尝试使用eclipse开普勒进行任何操作时,都会出现以下错误: Errors occurred during the build. Errors running builder 'Maven Project Builder' on project 'PcsOne-Persistence'. Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one o

每当我尝试使用eclipse开普勒进行任何操作时,都会出现以下错误:

  Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'PcsOne-Persistence'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
为了解决这个问题,我尝试了天底下的一切,但没有成功:

示例:

  • 我已尝试卸载并重新安装eclipse
  • 清理和安装项目
  • 炸毁.m2 repo并重新更新所有依赖项
  • 为eclipse安装Maven插件(未显示开普勒的更新)
  • 无论我做什么,我都会得到这个错误,这在几天前的相同设置中是不存在的。不知从哪里冒出来的

    这里可能出了什么问题

    更新: 这是我的Pom.xml

    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
              <modelVersion>4.0.0</modelVersion>
              <groupId>com.mycomp.groupid</groupId>
              <artifactId>MyProject-1.0</artifactId>
              <version>1.0-SNAPSHOT</version>
    </project>
    
    
    4.0.0
    com.mycop.groupid
    MyProject-1.0
    1.0-快照
    
    我时常会遇到这些问题,原因包括:

  • 缺少对存储库的网络访问
  • 插件上的版本/组/工件id错误
  • Eclipse maven设置错误(与maven的系统设置相比)
  • 添加了一个私有回购协议,该协议包含一个或多个工件/插件的坏拷贝
  • 重构pom以将内容移动到父pom中有时会无意中中断与该父pom的链接或继承

  • 我建议您尝试从命令行开始构建(删除一些可能出错的内容)。尝试构建一个非常简单的maven项目。再次检查插件标识符。

    好,我解决了问题。为了其他观众的利益,问题在于maven m2e连接器。这里有一个插件列表,包括类似“生命周期映射”的插件。在做了一些改变之后——不幸的是我不记得我做了什么,错误的性质改变了


    新的异常提示我列出了eclipse marketplace中的这些插件。安装它们解决了这个问题。Eclipse版本是开普勒,我使用了外部maven(不是嵌入式版本)

    @chrylis肯定这对其中一个项目来说很简单。将更新我的问题。敬请期待!