Could not transfer artifact from/to Authentication failed for 401 Unauthorized

简介: Could not transfer artifact from/to Authentication failed for 401 Unauthorized

问题:使用maven打包时报了如上的错误。

分析:公司切换了maven仓库的镜像地址,且新的仓库地址需要登录。

解决: 配置settings.xml,给相应的仓库地址配置登录名和密码。

<servers>
  <server>
      <id>test</id>
      <username>admin</username>
      <password>123</password>
    </server>
</servers>
<mirrors> 
  <mirror>
    <id>test</id>
    <name>jar repository</name>
    <url>http://address:ip/repository/maven-public/</url>
    <mirrorOf>central</mirrorOf>
  </mirror>
</mirrors>

image.gif

注意: server的id要和mirror中的id对应。

目录
打赏
0
0
0
0
2
分享
相关文章
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2
4535 0
|
6月前
|
request to https://registry.npm.taobao.org/cnpm failed, reason: certificate has expired
request to https://registry.npm.taobao.org/cnpm failed, reason: certificate has expired
178 2
k8s部署seata 报错 没有提供足够的身份验证信息 [ http-nio-7091-exec-2] [ty.JwtAuthenticationEntryPoint] [ commence] [] : Responding with unauthorized error. Message - Full authentication is required to access this resource
Kubernetes pod 在16:12时出现两次错误,错误信息显示需要完整认证才能访问资源。尽管有此错误,但页面可正常访问。附有yaml配置文件的图片。
571 2
解决noauth authentication required异常
解决noauth authentication required异常
548 0
解决noauth authentication required异常
docker: denied: requested access to the resource is deniedunauthorized: authentication required
docker: denied: requested access to the resource is deniedunauthorized: authentication required
754 0
docker: denied: requested access to the resource is deniedunauthorized: authentication required
configure: error: You requested LIBYUV but not found...die
configure: error: You requested LIBYUV but not found...die
114 0
记录:(error) NOAUTH Authentication required...【亲测有效】
记录:(error) NOAUTH Authentication required...【亲测有效】
747 0

热门文章

最新文章

AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等