views:

99

answers:

2

I am trying to create a Confluence plugin. I have been following theses instructions.

However when I run the atlas-create-confluence-plugin command maven throws SSL errors trying to get resource from https://m2proxy.atlassian.com/repository/public/.

alt text

Do I need to change a setting in my configuration?

System setup: Windows Vista, with Apache Maven 2.1.0 (r755702; 2009-03-18 19:10:27+0000)

A: 

OK this looks like I got the question wrong.

For some reason maven was not downloading the maven-confluence-plugin-3.0.5.jar file. I had to manually download this file from the URL and add it in the correct location .m2 directory.

After that the whole process worked fine.

Michael Edwards
But maven should be able to download that file via SSL. Manually installing it into your local repository does always work, but to avoid future problems you may want to check your sll configuration.Regards
Nils Schmidt
+3  A: 

Accessing a repository over SSL is not really a Maven issue (which uses HttpClient under the hood and at the end classes from the java.net package), this is a pure Java issue: the certificate of the remote repository has to be trusted i.e. the CA root certificate for this certificate has to be in the cacerts file bundled in the JRE or you need to establish a chain of trust manually.

In the particular case of https://m2proxy.atlassian.com/, the certificate has been issued by DigiCert CA.

The odd part is that recent JDKs (Java 5u15 or later or Java 6u5 or later, see Bug ID:6647251) have a CA root certificate for DigiCert. So, with a recent JDK, things should just work (unless you have a proxy doing some black magic like in this issue).

If you are using an older JDK and can't upgrade, export the certificate from your browser, use keytool to add it to a trust store and setup Java to use this trust store (using the javax.net.ssl.trustStore and javax.net.ssl.trustStorePassword system properties). See the Maven mini guide and/or this blog post for more details on how to do this.

But the easiest way would be to use a recent JDK.

Pascal Thivent