Eclipse Juno build error with "Maven Project Builder"
Asked Answered
H

3

15

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?

Hohenlohe answered 4/2, 2013 at 17:22 Comment(2)
Are you able to run mvn compile from the command line?Keto
here you can find your answer #12534385Flee
C
13

If you are using external maven check if that is selected enter image description here

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

Charentemaritime answered 23/4, 2015 at 7:28 Comment(1)
Up vote for being the only person to reply to this in 3 years! I think that deserved a badge.Hohenlohe
A
0

Along with the Maven installation point, check for 'User Settings' of the Maven too. Mine was pointing to a default location but i had settings.xml somewhere that causes the problem too.

Avocation answered 17/1, 2020 at 16:57 Comment(0)
H
0

I fix mine by correcting the JDK for eclipse (eclipse.ini) vm value.

Holierthanthou answered 2/3, 2020 at 19:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.