Maven deploy报错:Failed to deploy artifacts: Could not transfer artifact from/to snapshots 401 Unauthorized
2023-09-14 09:11:43 时间
Maven deploy报错:
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:deploy (default-deploy) on project : Failed to deploy artifacts: Could not transfer artifact from/to snapshots 401 Unauthorized
错误原因:
401 Unauthorized,一般是身份验证凭证没通过。
解决方法:
查看maven的conf目录下的 settings.xml 配置,检查账号密码是否正确。
<servers>
<server>
<username>账号</username>
<password>密码</password>
<id>central</id>
</server>
<server>
<username>账号</username>
<password>密码</password>
<id>snapshots</id>
</server>
</servers>
相关文章
- Maven 错误:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project appservice-common: Fatal error compiling: 无效的目标发行版: 1.8
- Docker打包错误:Failed to execute goal com.spotify:docker-maven-plugin:1.2.0:build (default-cli) on project security
- 【maven】IDEA:存在jar包,pom.xml文件没报错,但是Maven-Project-Dependencies有红线报错
- maven 完整的settings.xml
- 【Maven】Maven之使用maven快照版本机制进行多项目依赖开发
- Maven系列--"maven-compiler-plugin"的使用
- spring boot:创建一个简单的web(maven web project)
- maven项目打包时生成dependency-reduced-pom.xml
- the exception "Failure to transfer org.apache.maven:maven-parent" about Maven
- 执行 Maven 编译的 jar,找不到相关的 依赖的类--使用 maven-assembly-plugin 解决
- eclipse中导入maven项目:org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.Maven
- Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile 解决办法
- 使用Maven编译项目遇到——“maven编码gbk的不可映射字符”解决办法
- 【项目实战】使用Maven插件(maven-antrun-plugin),实现微服务打包时复制jar包到指定文件目录
- 【项目实战】使用Maven插件(maven-antrun-plugin),实现通过调用ant-contrib中的if任务来进行条件判断
- android 解决报错 installation failed with message Failed to finalize session : INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed parse during installPackageLI: Failed to read manifest from /xx/xx/xx.apk
- Maven插件系列之spring-boot-maven-plugin
- Maven小结
- Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container..
- Maven deploy 报错: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:deploy (default-deploy) on project Failed to retrieve remote metadata /maven-metadata.xml
- Maven 自动化构建