一打開Project冒出下面這樣的錯誤:
ArtifactDescriptorException: Failed to read artifact descriptor for ......
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
接著看到pom.xml冒出一堆錯誤...,
有可能是所處的網路環境會經過Proxy Server,
所以可以試著給Maven設定Proxy可以解決這樣的問題。
編寫一個settings.xml格式如下:
以Eclipse來說,到以下的選單:myproxy true http your proxy server address your proxy server port your proxy account your proxy password localhost,127.0.0.1
Window > Preferences > Maven > User Settings
在這個畫面指定上面的settings.xml
沒有留言:
張貼留言