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:19:11 UTC

[I] [MDEPLOY-262] Fail on HTTP-Statuscode 409 on Upload instead of warn [maven-deploy-plugin]

jira-importer opened a new issue, #568:
URL: https://github.com/apache/maven-deploy-plugin/issues/568

   **[Andreas Wirooks](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=nudgegoonies)** opened **[MDEPLOY-262](https://issues.apache.org/jira/browse/MDEPLOY-262?redirect=false)** and commented
   
   We have the situation that an upload fails with HTTP-Statuscode 409. Here the maven-deploy-plugin should stop with an error. But it only warns and continues. This results in missing files or in case of overwriting different contents when overwriting did not succeed.
   
   
   ---
   
   **Affects:** 3.0.0-M1
   


-- 
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-262] Fail on HTTP-Statuscode 409 on Upload instead of warn [maven-deploy-plugin]

Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #568:
URL: https://github.com/apache/maven-deploy-plugin/issues/568#issuecomment-2771552353

   **[Michael Osipov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=michael-o)** commented
   
   Can you provide more log? Debug log. Please also enable wire log on Apache HttpClient.
   
   Why does Artifactory give you a conflict?
   


-- 
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-262] Fail on HTTP-Statuscode 409 on Upload instead of warn [maven-deploy-plugin]

Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #568:
URL: https://github.com/apache/maven-deploy-plugin/issues/568#issuecomment-2771552357

   **[Andreas Wirooks](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=nudgegoonies)** commented
   
   We had two conditions. One was the example above. This was caused by a Replication error between active and inactive Artifactory instances and a switch from active to inactive instance. We don't know the cause yet but the only the md5 checksum file differs from both instances.
   
   The second reason for a 409 from Artifactory is the pom check that disallow non-conform poms. For details see here:
   
   https://www.jfrog.com/confluence/display/RTF/Local+Repositories
   
   Both Artifacts were fixed so i can't retry the ci-job to give more verbose logs.
   


-- 
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-262] Fail on HTTP-Statuscode 409 on Upload instead of warn [maven-deploy-plugin]

Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #568:
URL: https://github.com/apache/maven-deploy-plugin/issues/568#issuecomment-2771552361

   **[Michael Osipov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=michael-o)** commented
   
   Works for me:
   
   {format}
   [DEBUG] Executing request PUT /bb/test/net/sf/michael-o/michael-o-parent/14-SNAPSHOT/michael-o-parent-14-20200818.091013-1-site-resources.zip HTTP/1.1
   [DEBUG] Target auth state: UNCHALLENGED
   [DEBUG] Proxy auth state: UNCHALLENGED
   [DEBUG] http-outgoing-2 >> PUT /bb/test/net/sf/michael-o/michael-o-parent/14-SNAPSHOT/michael-o-parent-14-20200818.091013-1-site-resources.zip HTTP/1.1
   [DEBUG] http-outgoing-2 >> Cache-control: no-cache
   [DEBUG] http-outgoing-2 >> Cache-store: no-store
   [DEBUG] http-outgoing-2 >> Pragma: no-cache
   [DEBUG] http-outgoing-2 >> Expires: 0
   [DEBUG] http-outgoing-2 >> Accept-Encoding: gzip
   [DEBUG] http-outgoing-2 >> User-Agent: Apache-Maven/3.5.4 (Java 1.8.0_265; Windows 10 10.0)
   [DEBUG] http-outgoing-2 >> Content-Length: 3875
   [DEBUG] http-outgoing-2 >> Host: localhost:8080
   [DEBUG] http-outgoing-2 >> Connection: Keep-Alive
   [DEBUG] http-outgoing-2 >> Expect: 100-continue
   [DEBUG] http-outgoing-2 >> Authorization: Basic ...
   [DEBUG] http-outgoing-2 << HTTP/1.1 100
   [DEBUG] http-outgoing-2 << HTTP/1.1 409
   [DEBUG] http-outgoing-2 << Content-Length: 0
   [DEBUG] http-outgoing-2 << Date: Tue, 18 Aug 2020 09:10:13 GMT
   [DEBUG] http-outgoing-2 << Connection: close
   [DEBUG] http-outgoing-2: Close connection
   [DEBUG] Connection discarded
   [DEBUG] Connection released: [id: 2][route: {}->http://localhost:8080][total kept alive: 0; route allocated: 0 of 20; total allocated: 0 of 40]
   [INFO] ------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time: 2.956 s
   [INFO] Finished at: 2020-08-18T11:10:14+02:00
   [INFO] ------------------------------------------------------------------------
   [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy (default-deploy) on project michael-o-parent: ArtifactDeployerException: Failed to deploy artifacts: Could not transfer artifact net.sf.michael-o:michael-o-parent:pom:14-20200818.091013-1 from/to sonatype-nexus-snapshots (http://localhost:8080/bb/test/): Failed to transfer file: http://localhost:8080/bb/test/net/sf/michael-o/michael-o-parent/14-SNAPSHOT/michael-o-parent-14-20200818.091013-1.pom. Return code is: 409, ReasonPhrase: . -> [Help 1]
   
   ```
   ```
   
   


-- 
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-262] Fail on HTTP-Statuscode 409 on Upload instead of warn [maven-deploy-plugin]

Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #568:
URL: https://github.com/apache/maven-deploy-plugin/issues/568#issuecomment-2771552348

   **[Andreas Wirooks](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=nudgegoonies)** commented
   
   See also this logline:
   
   ```
   930333 [WARNING] Failed to upload checksum REPLACED-sources.jar.md5: Failed to transfer file https://REPLACED-sources.jar.md5 with status code 409
   ```
   
    
   


-- 
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