2013-05-29 115 views
0

我有一個maven插件的問題。未找到maven插件

[ERROR] No plugin found for prefix 'exec' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Documents and Settings\MAA1ARN2\.m2\repository), central (http://repo.maven.apache.org/maven2)] -> [Help 1] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 

謝謝。

+1

顯示導致問題的pom文件,並且最好顯示完整的輸出,而不僅僅是摘錄,請正確格式化您的問題。 – khmarbaise

+2

你正在執行的maven命令是什麼。 –

+0

您可能想要使用'maven-exec-plugin',但仍需要提供更多上下文。這是從哪裏來的?你是否嘗試從命令行運行'mvn exec:java'或'mvn exec:exec'? – Zilvinas

回答

1

根據this page,插件中可能存在拼寫錯誤,pom錯誤,settings.xml錯誤或者元數據被破壞。我也發現如果你的插件代碼失敗,你可能會得到這個錯誤。

+0

對我來說'〜/ .m2/settings.xml'是錯誤的(代理參數丟失) – rmv