On Wed, Dec 9, 2009 at 09:19, Russel Winder
<[email protected]> wrote:
> Has anyone managed to do uploading to a Maven archive using WebDAV?  I
> am trying to upload snapshot Gant jars to the Codehaus snapshot
> repository and I keep getting 401 responses:
>
> Error deploying artifact 'org.codehaus.gant:gant_groovy1.7:jar': Error 
> retrieving previous build number for artifact 
> 'org.codehaus.gant:gant_groovy1.7:jar': repository metadata for: 'snapshot 
> org.codehaus.gant:gant_groovy1.7:1.9.0-SNAPSHOT' could not be retrieved from 
> repository: remote due to an error: Error transferring file
> Server returned HTTP response code: 401 for URL: 
> https://dav.codehaus.org/snapshots.repository/gant/org/codehaus/gant/gant_groovy1.7/1.9.0-SNAPSHOT/maven-metadata.xml
>
> I have my authentication tokens in ~/.m2/settings.xml and uploading with
> Gant and Slide works fine.
>
> --
> Russel.
> =============================================================================
> Dr Russel Winder      Partner
>                                            xmpp: [email protected]
> Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
> 41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:[email protected]
> London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder
>

According to GRADLE-729:

Adam suggested the following on the mailing list:

This looks like a jar versioning problem. Could you try replacing
$gradleHome/lib/commons-httpclient-3.0.jar with
commons-httpclient-2.0.2.jar, and removing
$gradleHome/lib/webdavlib-2.0.jar, and see if it works.

This resolved the problem.

-- 
Jason Porter
Real Programmers think better when playing Adventure or Rogue.

PGP key id: 926CCFF5
PGP fingerprint: 64C2 C078 13A9 5B23 7738 F7E5 1046 C39B 926C CFF5
PGP key available at: keyserver.net, pgp.mit.edu

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to