2013-02-04 73 views
14

建立自己的錯誤當我試圖清理&建立我的Maven的項目中,我得到以下錯誤:的Eclipse朱諾與「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 
用乾淨的所有過程

同樣,它拋出如下:

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 

任何想法是什麼原因造成的?

+0

你能夠從命令行運行mvn編譯嗎? –

+0

@ChetterHummin,Yup。 – BanksySan

+1

在這裏你可以找到你的答案 http://stackoverflow.com/questions/12533885/could-not-calculate-build-plan-plugin-org-apache-maven-pluginsmaven-resources –

回答

13

如果您如果選擇 enter image description here

也可以嘗試刪除和的.m2檢查設置文件在那裏,如果它指向正確位置,在localRepository標籤

下使用外部行家檢查:\用戶\ sunny.m2 \ repository

+5

投票是唯一的人在3年內回覆此問題!我認爲應該得到一個徽章。 – BanksySan