How to configure Maven to use Java keystores
...
PREREQUISITES
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
Before you begin, you must have the following:The following properties must be set at start of maven to be accessible when HttpClient starts up.
The following properties must be set at start of maven to be accessible when HttpClient starts up. Need a Trusted Server Java keystore? Here are instructions on how to create a trusted server Java keystore. |
Enabling Maven to use Java keystores
Panel | ||||
---|---|---|---|---|
indent | Set the following properties: javax.net.ssl.trustStore *indent | | 2 | 2 |
the path to the trusted server keystore | ||||
indent | 1 | 1 | *||
indent | 2 | 2 | the password protecting the trusted server keystore
Code Block |
---|
MAVEN_OPTS="-Djavax.net.ssl.keyStore=/path/to/serverTrustStore.jks -Djavax.net.ssl.keyStorePasswordtrustStorePassword=XXXXXX" |
Adjust the =/path/to/serverTrustStore.jks and the password XXXXXX as needed.
Here are instructions on how to create a Java trusted server key store You can now access the Maven repositories using https.