我搭建了一个maven私有仓库,maven的settings.xml里已经配置了用户名、密码和镜像
# settings.xml
<server>
<id>abc</id>
<username>xx</username>
<password>xxxx</password>
</server>
<mirror>
<id>abc</id>
<mirrorOf>*</mirrorOf>
<name>abc Public</name>
<url>URL</url>
</mirror>
idea里也选中了当前这个maven配置
可是我在pom.xml里添加
# pom.XML
<repositories>
<repository>
<id>abc</id>
<url>URL</url>
</repository>
</repositories>
还是不能用,用idea里的test connect 发现无法连接URL
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
走同样的路,发现不同的人生