顯然,失敗似乎是因爲我在辦公室的代理/防火牆後面。解決方法是在settings.xml中添加代理配置或添加未被防火牆阻止的存儲庫鏡像。
希望這可以幫助別人。
添加代理
<proxies>
<!-- proxy
| Specification for one proxy, to be used in connecting to the network.
|
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>proxyuser</username>
<password>proxypass</password>
<host>proxy.host.net</host>
<port>80</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
-->
</proxies>
或鏡像
<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
<mirrors>
感謝
您能夠創建任何* * Maven原型,或者是特定的一個失敗? – artbristol 2011-06-09 08:16:56
看起來問題是辦公室的防火牆。添加未被防火牆阻止的鏡像解決了問題。 – 2011-06-09 08:35:59