Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

PREREQUISITES

Panel

Before you begin, you must have the following:

How to configure Maven to use SSL

Enabling Maven for SSL

Panel

The following properties must be set at start of maven to be accessible when HttpClient starts up.

indent
1
1

* a trusted server Java keystore.

Need a Trusted Server Java keystore?  Here are instructions on how to create a trusted server Java keystore.

Enabling Maven to use Java keystores

*

- This is the path to the trusted server keystore.
      javax.net.ssl.trustStorePassword

*

Maven 2.0

- This is the password protecting the trusted server keystore.

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 =/path/to/serverTrustStore.jks and the password XXXXXX as needed):

Panel

Set the following properties:

      javax.net.ssl.trustStore

*
indent
22
the path to the trusted server keystore
indent
11
indent
22
the password protecting the trusted server keystore
Code Block

indent
11
They may be set either on maven's command-line, in .mavenrc file or in MAVEN_OPTS environment variable. For the setting defined in this document, here is an example .mavenrc file:
indent
22
MAVEN_OPTS="-Djavax.net.ssl.keyStore=/homepath/directoryto/myTrustedServerKeystoreserverTrustStore.jks -Djavax.net.ssl.keyStorePasswordtrustStorePassword=XXXXXX"


You can now access the Maven repositories using httpsClick here for instructions on how to create a Java trusted server key store.