这是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报错