大部分bug其实都是自己一不小心造的
遇到问题,首先冷静,拿纸笔,写下来,你在干什么,你要达成什么样的目标,期间需要哪些条件(配置),逐一审查,要和目标保持一致性,不要只是去看各种各样的博主PO出来的解决方法,耗费了很多时间
首先检查你的配置,参数,代码
你在nexus里申请的项目名称是否和你setting.xml的私服名称一致,地址是否正确
<!-- 配置访问私服的权限 -->
<server>
<id>xxxrelease</id>
<username>admin</username>
<password>xxx</password>
</server>
<server>
<id>xxx-snapshot</id>
<username>admin</username>
<password>xxx</password>
</server>
</servers>
pom文件配置:
<distributionManagement>
<snapshotRepository>
<id>xxx-snapshot</id>
<url>http://localhostxxx/</url>
</snapshotRepository>
</distributionManagement>
你的idea里的settings是否是你项目所用的本地仓库,有时自建仓库太多,忘记改也是一个原因
当你将问题仔细检查一遍之后,会发现自己把自己的问题解决了。