Usually this exception occurs if you are using HTTPS and the server's SSL
certificate isn't trusted by the client. The solution is to install the
certificate with the Java 'keytool' command.

--
Peter Niederwieser 
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradleware
http://www.gradleware.com
Creator, Spock Framework
http://spockframework.org


Russel Winder wrote:
> 
> On Debian Testing:  If I use OpenJDK 6 then uploading archives works
> fine.  If I use the Sun JDK then I get:
> 
>         Execution failed for task ':extra166y:uploadArchives'.
>         Cause: Could not publish configurations [configuration
> ':extra166y:archives'].
>         Cause: Error deploying artifact
> 'org.codehaus.jsr166-mirror:extra166y:jar': Error retrieving previous
> build number for artifact 'org.codehaus.jsr166-mirror:extra166y:jar':
> repository metadata for: 'snapshot
> org.codehaus.jsr166-mirror:extra166y:0.4.40-SNAPSHOT' could not be
> retrieved from repository: remote due to an error: Error transferring
> file: sun.security.validator.ValidatorException: PKIX path building
> failed: sun.security.provider.certpath.SunCertPathBuilderException: unable
> to find valid certification path to requested target
> 
> Hopefully I am doing something trivially wrong that is even more trivial
> to fix. 
> 
> Thanks.
> 
> 
> -- 
> Russel.
> =============================================================================
> Dr Russel Winder      t: +44 20 7585 2200   voip:
> sip:[email protected]
> 41 Buckmaster Road    m: +44 7770 465 077   xmpp: [email protected]
> London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
> 

--
View this message in context: 
http://gradle.1045684.n5.nabble.com/JREs-and-uploading-archives-tp4259318p4262000.html
Sent from the gradle-user mailing list archive at Nabble.com.

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

    http://xircles.codehaus.org/manage_email


Reply via email to