On 14 Sep 2014, at 11:58, Fedor Belov <[email protected]> wrote: > Hello. I've got repository protected by SSL located on subdomain: > https://abc.mysite.com/ > When I try to upload my artifact (`mvn deploy`) mvn rises an exception: > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on > project test: Failed to retrieve remote metadata > abc.com:test:1.0-SNAPSHOT/maven-metadata.xml: Could not transfer metadata > abc.com:test:1.0-SNAPSHOT/maven-metadata.xml from/to myMavenRepo.write > (https://abc.mysite.com/efg/): hostname in certificate didn't match: > <abc.mysite.com> != <mysite.com> OR <mysite.com> OR <www.mysite.com> -> [Help > 1] > > Why does it check main domain instead of subdomain? How can I fix this > problem?
Either there is a server side problem where the cert on the server doesn't match the DNS name you're using, or more likely the server requires SNI, which doesn't seem to work with the httpclient wagon. We use the lightweight http wagon instead, which works with SSL+SNI. Regards, Graham -- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
