Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Deploying over wagon-http does not send checksums #25

Closed
xeqi opened this Issue April 21, 2012 · 4 comments

3 participants

Nelson Morris Chas Emerick Robert Reiz
Nelson Morris
xeqi commented April 21, 2012

While exploring what it would take add standard http deploy ability to clojars I found out that wagon-http fails to send checksum files. A bug report is at http://jira.codehaus.org/browse/WAGON-353, and it was fixed in 2.1.

If wagon-http is bumped to 2.1 then checksums are sent but a spurious println was included http://osdir.com/ml/general/2011-11/msg37110.html

If wagon-http is bumped to 2.2, with or without the shaded classifier, then things fail with

Exception in thread "pool-1-thread-1" java.lang.NoSuchMethodError: org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.getReadTimeout()I

It looks like this version is what is used in maven 3.0.4, so I'll probably spend some more time tracking down what is happening here.

Another possibility is to use aether-connector-async similar to aether-connector-file. This allows removing wagon-http and will send checksums. However, it brings in slf4j and a non-trivial amount of dependencies, and will throw a NPE when creating a transfer-event and there was not an exception.

Nelson Morris
xeqi commented April 22, 2012

I've got http-wagon 2.2 to work. Looks like it was an issue with aether-connector-wagon pulling in an old version of wagon-connector-api. I'll make a pull request with dependency changes to fix this issue soon.

Nelson Morris xeqi referenced this issue from a commit April 22, 2012
Commit has since been removed from the repository and is no longer available.
Chas Emerick cemerick closed this issue from a commit April 21, 2012
Nelson Morris Move to latest versions of dependencies
FIXES #25
Gets fix from http://jira.codehaus.org/browse/WAGON-353 so checksums
can be sent to http repositories
b0f5e87
Chas Emerick cemerick closed this in b0f5e87 April 23, 2012
Nelson Morris xeqi referenced this issue in technomancy/leiningen May 14, 2012
Closed

lein2 deploy doesn't create checksums #581

Robert Reiz
reiz commented July 27, 2013

I am getting the same exception with wagon 2.4.

Chas Emerick
Owner

@reiz Perhaps you have a mismatched set of dependencies? e.g. using Leiningen 2.2.0 deploys checksums as expected.

Robert Reiz
reiz commented July 31, 2013

@cemerick It's fixed. I just updated my Maven and that fixed the problem. Always good to stay up-to-date ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.