maven在nexus中上传新的jar,下载出现404

今天项目需要,上传了一个新的jar,然后maven重新build发现下载文件都不行了。
找了大半天终于知道原因了,原来是用了代理然后没有权限。

<proxies>
<proxy>
<id>normal</id>
<active>true</active>
<protocol>http</protocol>
<username>deployment</username>
<password>deploy</password>
<!--
<host>http://svn.ocjweb:6789/nexus</host>
<port>80</port>
-->
<nonProxyHosts>http://svn.ocjweb:6789/nexus</nonProxyHosts>
</proxy>
</proxies>

猜你喜欢

转载自zyhui98.iteye.com/blog/1858757