2015-01-16 52 views
0

嗨我在創建Maven項目時遇到此錯誤,請任何人幫忙。無法構建Maven項目

步驟 - >創建一個Java項目 - >右鍵單擊並選擇配置 - >轉換爲Maven項目

Errors occurred during the build. 
Errors running builder 'Maven Project Builder' on project 'Test'. 
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 

在此先感謝

回答

0

這是在Eclipse?如果是這樣,請檢查「窗口 - 首選項 - Maven - 安裝」下的Maven安裝首選項。爲了匹配命令行中運行maven的行爲,你應該在這裏添加你的外部maven安裝。