My settings.xml contains proxies with nonProxyHosts.
One of nonProxyHosts is my tomcat server.
My proxy do not allows me to connect to my app server. It returns "503 Service Unavailable" when I try to use it to access the server.
When I run deployment using "mvn deploy" all works fine!
But when I run "mvn -U deploy" undeploy fails because it try to connect via proxy!
The combination that breaks the execution is deployment of artifacts to local file based repository and man with -U switch.
I will add my pom files for references.
This is the error I'm getting:
ERROR Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.1.2:deployer-undeploy (clean-undeploy) on project mco2-server: Execution clean-undeploy of goal org.codehaus.cargo:cargo-maven2-plugin:1.1.2:deployer-undeploy failed: Failed to undeploy D:\build\work\mco2\mco2-runner\mco2-server\target\mco2.war: Server returned HTTP response code: 503 for URL: http://torvspocapp:9040/manager/text/list -> Help 1