动力节点首页 全国咨询热线:400-8080-105

绑定手机号,登录
手机号

验证码

微信登录
手机号登录
手机号

验证码

微信登录与注册
微信扫码登录与注册

扫码关注微信公众号完成登录与注册
手机号登录

使用cargo插件远程部署一直报用户名和密码错误?

E-Head

2021.07.18

这是tomcat配置

<cargo.tomcat.manager.url>http://url:8080/manager</cargo.tomcat.manager.url>
<cargo.remote.username>tomcat_user</cargo.remote.username>
<cargo.remote.password>123456</cargo.remote.password>
<cargo.servlet.port>8080</cargo.servlet.port>
<cargo.hostname>url</cargo.hostname>
<cargo.tomcat.ajp.port>8009</cargo.tomcat.ajp.port>

这是pom文件配置

[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.15:deploy (default-cli) on project maven-10-deploy-remote: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.15:deploy failed: Failed to deploy [E:\class\maven\project\maven-workspace\maven-10-deploy-remote\target\maven-10-deploy-remote.war]: The username and password you provided are not correct (error 401): Server rejected operation -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

进程已结束,退出代码为 1

这是deploy报错

添加回答

回答(1)

军哥

老师参与

你看错误提示的是这个:
The username and password you provided are not correct (error 401):

提示的是你的用户名和密码不正确。

时间:07-19 16:26 查看回复 (0) 回复 0 0 举报

回复