Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Enabling Maven to use Java keystores

Panel
Wiki Markup

Set the following
properties:
     
 properties:\\
\\
      *javax.net.ssl.trustStore* - This is the path to the trusted server keystore.

     
\\
      *javax.net.ssl.trustStorePassword* - This is the password protecting the trusted server keystore.

These two properties may be set either by
\\
\\
These two properties may be set either by maven's command-line (found in the *.mvenrc* file) or by the *MAVEN_OPTS* environment variable.

Here is an example for the .mavenrc file setting (Adjust the
\\
\\
Here is an example for the .mavenrc file setting (Adjust the *=/path/to/serverTrustStore.jks* and the password *XXXXXX* as needed):

Code Block
\\
{code}
MAVEN_OPTS="-Djavax.net.ssl.keyStore=/path/to/serverTrustStore.jks -Djavax.net.ssl.trustStorePassword=XXXXXX"
{code}
\\
You can now access the Maven repositories using *https*.\\
\\