[英]Spring and Maven plugin installation issue; mvn; spring
我有一個基於maven的項目,我正在嘗試將其導入Spring源工具套件。 我收到以下錯誤。
Description Resource Path Location Type
Could not calculate build plan: Missing:
----------
1) org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-resources-plugin -Dversion=2.4.2 -Dpackaging=maven-plugin -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-resources-plugin -Dversion=2.4.2 -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
----------
1 required artifact is missing.
for artifact:
org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.4.2
from the specified remote repositories:
central (http://repo1.maven.org/maven2, releases=true, snapshots=false)
Gamex Unknown Maven Problem
看起來它要求我安裝maven resourource插件2.4.2,但我不確定要下載的文件是什么。 我嘗試下載maven-plugin-plugin-2.4.2-source.jar並將其提供給命令; 但它不起作用。 然后我訪問了http://svn.apache.org/viewvc/maven/plugins/tags/maven-resources-plugin-2.4.2/中的maven存儲庫並下載了pof.xml; 這也行不通。 如果您在使用之前已經看過這個問題,請幫助我了解缺少的內容/或錯誤消息是什么。
謝謝,
你可能在防火牆后面。 您可以嘗試設置HTTP
代理以繞過防火牆。
在Windows中,此文件位於: C:\\Documents and Settings\\<windows Login>\\.m2\\settings.xml
您需要根據組織中網絡的設置方式為<proxy>
提供有效參數。
<settings
...
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>put-ur-proxy-servername</host>
<port>80</port>
</proxy>
...
</settings>
從http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/maven-resources-下載maven resourource插件2.4.2 [maven-resources-plugin-2.4.2.jar] 插件/ 2.4.2 /並做一個
mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-resources-plugin -Dversion=2.4.2 -Dpackaging=maven-plugin -Dfile=/path/to/file
然后是清理eclipse:eclipse,在Eclipse中清理項目並刷新並嘗試。 它應該工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.