When I try to clean & build my Maven project I get the following error:
当我尝试清理并构建我的Maven项目时,我得到以下错误:
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:
与clean all流程类似,它抛出如下内容:
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 个解决方案
#1
13
If you are using external maven check if that is selected
如果您正在使用外部maven检查它是否被选中
Also try deleting .m2 and check settings file over there if it is pointing to correct place in localRepository tag
还可以尝试删除.m2并检查那里的设置文件,如果它指向localRepository标记中的正确位置
C:\Users\sunny.m2\repository
C:\Users\sunny.m2\repository
#1
13
If you are using external maven check if that is selected
如果您正在使用外部maven检查它是否被选中
Also try deleting .m2 and check settings file over there if it is pointing to correct place in localRepository tag
还可以尝试删除.m2并检查那里的设置文件,如果它指向localRepository标记中的正确位置
C:\Users\sunny.m2\repository
C:\Users\sunny.m2\repository