Eclipse Juno build error with “Maven Project Builder”

两盒软妹~` 提交于 2020-01-02 00:43:05

问题


When I try to clean & build my Maven project I get the following error:

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project '(Hid Project Name)'.
org/apache/maven/project/MavenProject
Errors running builder 'Maven Project Builder' on project '(Hid Project Name)'.
org/apache/maven/project/MavenProject

similarly with the clean all process, it throws the following:

Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project '(Hid Project Name)'.
loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "org/apache/maven/plugin/MojoExecution"
Errors running builder 'Maven Project Builder' on project '(Hid Project Name)'.
org/apache/maven/plugin/MojoExecution
Errors running builder 'Maven Project Builder' on project '(Hid Project Name)'.
org/apache/maven/plugin/MojoExecution
Errors running builder 'Maven Project Builder' on project '(Hid Project Name)'.
org/apache/maven/plugin/MojoExecution
Errors running builder 'Maven Project Builder' on project '(Hid Project Name)'.
org/apache/maven/plugin/MojoExecution
Errors running builder 'Maven Project Builder' on project '(Hid Project Name)'.
org/apache/maven/plugin/MojoExecution
Errors running builder 'Maven Project Builder' on project '(Hid Project Name)'.
org/apache/maven/plugin/MojoExecution
Errors running builder 'Maven Project Builder' on project '(Hid Project Name)'.
org/apache/maven/plugin/MojoExecution
Errors running builder 'Maven Project Builder' on project '(Hid Project Name)'.
org/apache/maven/plugin/MojoExecution
Errors running builder 'Maven Project Builder' on project '(Hid Project Name)'.
org/apache/maven/plugin/MojoExecution
Errors running builder 'Maven Project Builder' on project '(Hid Project Name)'.
org/apache/maven/plugin/MojoExecution

Any ideas what causes this?


回答1:


If you are using external maven check if that is selected

Also try deleting .m2 and check settings file over there if it is pointing to correct place in localRepository tag

C:\Users\sunny.m2\repository



来源:https://stackoverflow.com/questions/14691964/eclipse-juno-build-error-with-maven-project-builder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!