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

How to configure a Maven to use Java keystores with Windows

PREREQUISITES

indentpanel
11

Before

you

begin,

you

must

have

the

following:

{panel} \\


indent
1
1

* a trusted server Java keystore.
\\ \\ If you do not have a Trusted Server Java keystore, click {color:blue}[here | https://wikis.mit.edu/confluence/display/WSWG/How+to+create+a+Trusted+Server+Java+keystore]{color} for instructions on how to create a trusted server Java keystore.\\ \\ {panel}

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

1.  The MAVEN_OPTS environmental variable

Panel

Starting from the Windows Task Bar goto:

           start->Control

indent
11 {panel} Starting from the *Windows Task Bar* goto:\\ \\            *start->Control

Panel->System->Advanced->Environment

Variables*\\ \\ and a

Variables

and a dialog,

similar

to

the

one

below,

will

be

displayed:\\ \\            !SystemPropertiesForWindows.jpg!\\ \\ Under {color:blue}System variables{color}, click the *New* button and the following dialog will be display:\\ \\            !NewEmptySystemVariableForWindows.jpg!\\ \\ Enter the following:\\ \\           Variable name:  *MAVEN_OPTS*           Variable value:  *

displayed:

           Image Added

Under System variables, click the New button and the following dialog will be display:

           Image Added

Enter the following:

          Variable name:  MAVEN_OPTS
          Variable value:  -Djavax.net.ssl.trustStore=/path/to/the/serverTrustStore.jks

-Djavax.net.ssl.trustStorePassword="XXXXXX"

*           making the appropriate adjustment for *


          making the appropriate adjustment for /path/to/the/serverTrustStore.jks

*

and

the

password

*

"XXXXXX"

*.\\ \\            !NewSystemVariableForWindows.jpg!\\ \\ When satisfied that everything is correct, click the *OK* button.\\ \\ When the *Environmental Variables* dialog re-appears, click the *OK* button.\\ \\ Finally, you must *reboot* your workstation. {panel}

.

           Image Added

When satisfied that everything is correct, click the OK button.

When the Environmental Variables dialog re-appears, click the OK button.

Finally, you must reboot your workstation.

You can now access the Maven repositories using https.