[
https://issues.apache.org/jira/browse/WAGON-568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16982388#comment-16982388
]
Michael Osipov commented on WAGON-568:
--------------------------------------
That is confusing. The tests should fail right away with:
{noformat}
[ERROR] Tests run: 58, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 64.971
s <<< FAILURE! - in org.apache.maven.wagon.providers.http.HttpWagonTest
[ERROR]
testRedirectPutFromStreamWithFullUrl(org.apache.maven.wagon.providers.http.HttpWagonTest)
Time elapsed: 30.056 s <<< ERROR!
org.apache.maven.wagon.TransferFailedException: Transfer failed for
http://localhost:40540/test-secured-put-resource 500
java.util.concurrent.TimeoutException: Idle timeout expired: 30021/30000 ms
[ERROR]
testRedirectPutFromStreamRelativeUrl(org.apache.maven.wagon.providers.http.HttpWagonTest)
Time elapsed: 0.018 s <<< ERROR!
org.apache.maven.wagon.TransferFailedException: Transfer failed for
http://localhost:40939//redirectRequest/foo/test-secured-put-resource
Caused by: org.apache.http.client.ClientProtocolException
Caused by: org.apache.http.client.NonRepeatableRequestException: Cannot retry
request with a non-repeatable request entity
Caused by: java.nio.channels.ClosedChannelException
{noformat}
I have tried on
{noformat}
$ mvn -v
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe;
2018-06-17T20:33:14+02:00)
Maven home: /usr/local/apache-maven-3.5.4
Java version: 1.8.0_232, vendor: Oracle Corporation, runtime:
/usr/local/openjdk8/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "freebsd", version: "12.1-stable", arch: "amd64", family: "unix"
C:\Users\osipovmi>mvn -v
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe;
2018-06-17T20:33:14+02:00)
Maven home: D:\Programme\apache-maven-3.5.4\bin\..
Java version: 1.8.0_212, vendor: Oracle Corporation, runtime: C:\Program
Files\Java\jdk1.8.0_212\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
$ ~/apache-maven-3.6.3-SNAPSHOT/bin/mvn -v
Apache Maven 3.6.3-SNAPSHOT (38efe8444c91e7c1dbf489bc672841c9458ae9ec;
2019-09-18T10:14:34+02:00)
Maven home: /net/home/osipovmi/apache-maven-3.6.3-SNAPSHOT
Java version: 1.8.0_232, vendor: Oracle Corporation, runtime:
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.x86_64/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-1062.4.3.el7.x86_64", arch: "amd64", family:
"unix"
{noformat}
Can you please share failure you see?
> Fail to deploy on Sonatype OSS since maven 3.5.4
> ------------------------------------------------
>
> Key: WAGON-568
> URL: https://issues.apache.org/jira/browse/WAGON-568
> Project: Maven Wagon
> Issue Type: Bug
> Components: wagon-http
> Affects Versions: 3.3.3
> Environment: 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14
> PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64
> openjdk version "1.8.0_202"
> OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_202-b08)
> OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.202-b08, mixed mode)
> Reporter: Stephane Landelle
> Priority: Major
>
> I've been trying to release AsyncHttpClient for days and deployment was
> always super slow until it ultimately failed or completely stalled.
> The issue seems to be that maven-deploy-plugin wants to upload checksum
> files. I have no idea where those would come from, as far as I know, those
> are generated by the maven repository.
>
> {code:java}
> [INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @
> async-http-client-project ---
> Uploading to sonatype-nexus-staging:
> http://oss.sonatype.org/service/local/staging/deploy/maven2/org/asynchttpclient/async-http-client-project/2.0.40/async-http-client-project-2.0.40.pom
> [WARNING] Failed to upload checksum
> org/asynchttpclient/async-http-client-project/2.0.40/async-http-client-project-2.0.40.pom.sha1:
> null{code}
>
>
> For each actual file, maven-deploy-plugin tries to upload a sha1 and a md5
> files and this takes forever to ultimately fail.
> I tried upgrading plugins but nothing worked.
> I finally found [this
> ticket|[https://issues.sonatype.org/browse/OSSRH-43371?focusedCommentId=610865&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-610865]]
> against Sonatype OSS describing the exact same behavior and stating
> downgrading to maven 3.5.3 fixed the issue.
> Indeed, downgrading did the trick!
> I'm opening an issue here and not against OSS Sonatype as it looks like a
> maven regression to me.
> * maven 3.6.2: fails
> * maven 3.5.4: fails
> * maven 3.5.3: works like a charm
--
This message was sent by Atlassian Jira
(v8.3.4#803005)