[ERROR] Failed to execute goal on project service-bill: Could not resolve dependencies for project com.java110:service-bill:jar:1.0-SNAPSHOT: Failed to collect dependencies at com.123.iot-community:component-hsb:jar:1.0.0: Failed to read artifact descriptor for com.123.iot-community:component-hsb:jar:1.0.0: Could not transfer artifact com.123.iot-community:component-hsb:pom:1.0.0 from/to dev ( http://dev.123.com:8081/repository/maven-public/): Authentication failed for http://dev.123.com:8081/repository/maven-public/com/123/iot-community/component-hsb/1.0.0/component-hsb-1.0.0.pom 401 Unauthorized -> [Help 1]
从上面看 登录不了仓库,而mvn的setting.xml文件配置的内容也是正确的,也是复制过来的完全正确,旧的依然可以打包 新的就包上面错误
解决一:mvn -s
"C:\apache-maven-3.3.3\conf\settingsXXX.xml" install
命令行里添加,可是我用的是mvn风格的编译用的是解决二方法。
解决二: