You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "jira-importer (via GitHub)" <gi...@apache.org> on 2025/04/02 07:15:38 UTC
[I] [MDEPLOY-144] retry failed deploy does not work on wagon authentication errors [maven-deploy-plugin]
jira-importer opened a new issue, #503:
URL: https://github.com/apache/maven-deploy-plugin/issues/503
**[Ben Tatham](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=bentatham)** opened **[MDEPLOY-144](https://issues.apache.org/jira/browse/MDEPLOY-144?redirect=false)** and commented
I have increased the retryFailedDeploymentCount to 10, which does work when I have seen the upload timeout.
But when webdav wagon returns 401, it does not retry. I can understand why it wouldn't do that (in most cases, it would just fail again, like if you get a 400 due to the artifact already existing in Nexus, and even most authentication failures), but allow me to explain the scenario.
Why I want it to retry:
Oddly, our Nexus installation occasionally fails to properly authenticate (our IT people say its due to some difference in ActiveDirectory on WindowsServer 2008 from 2000, and Nexus LDAP does it the 2000 way).
This is very annoying, because it will fail almost always on the 2nd or 3rd artifact to upload during deployment, which means to properly deploy the release, we have to either delete the already uploaded artifacts for that release from Nexus, or do manual deploy-file/via nexus ui of the remaining artifacts.
I have looked at the code to try and create a patch, but its been hard to piece together the code paths, as it looks like it depends on the maven installation, not the dependency hierarchy of maven-deploy-plugin. Specifically, my guess it is handled inside artifact-manager.
org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.put
[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project events: Failed to deploy artifacts: Could not transfer artifact ca.nanometrics:events:jar:1.1.7 from/to releases (http://{removed}/nexus/content/repositories/releases): Failed to transfer file: http://{removed}/nexus/content/repositories/releases/ca/nanometrics/events/1.1.7/events-1.1.7.jar. Return code is: 401, ReasonPhrase:Unauthorized. -> [Help 1]
---
**Affects:** 2.7
1 votes, 3 watchers
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [MDEPLOY-144] retry failed deploy does not work on wagon authentication errors [maven-deploy-plugin]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #503:
URL: https://github.com/apache/maven-deploy-plugin/issues/503#issuecomment-2771547096
**[Ben Tatham](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=bentatham)** commented
Note that one solution to this issue at a higher level would be to do a single authentication with Nexus for all the artifacts to be deployed (all-or-nothing upload of that version). I'm not sure if that's even possible though, without changes to Nexus itself.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [MDEPLOY-144] retry failed deploy does not work on wagon authentication errors [maven-deploy-plugin]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #503:
URL: https://github.com/apache/maven-deploy-plugin/issues/503#issuecomment-2771547099
**[Robert Scholte](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rfscholte)** commented
As you already said it yourself: retrying a 401 doesn't make sense. In your case I would contact Sonatype to ask for a solution. This issue was open for almost 2 years, there might be a chance it's already fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [MDEPLOY-144] retry failed deploy does not work on wagon authentication errors [maven-deploy-plugin]
Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer closed issue #503: [MDEPLOY-144] retry failed deploy does not work on wagon authentication errors
URL: https://github.com/apache/maven-deploy-plugin/issues/503
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org