- In your Maven settings.xml file located at \conf, add the following XML snippet under the tag.
8888 is the port Fiddler listens to, which can be located in Fiddler under Tools | Options | Connections > in the textbox labeled "Fiddler listens on port".
<proxy>
<id>Fiddler</id>
<active>true</active>
<protocol>https</protocol>
<host>127.0.0.1</host>
<port>8888</port>
</proxy>
- Export Fiddler's Root Certificate to your desktop: Tools | Options | HTTPS > Click the Actions button > Click Export Root Certificate to Desktop.
- Create truststore file from Fiddler Root Certificate by running the following command from an admin command prompt. You can type any value for the -storepass parameter below.
<JDK-Directory>\bin\keytool.exe -importcert -alias fiddler -file <Fiddler-Root-Certificate-File-Path> -keystore <Trust-Store-File-Path> -storepass <Trust-Store-Password>
- Configure Maven to use the truststore file you generated by setting the MAVEN_OPTS environment variable as follows:
set MAVEN_OPTS=-Djavax.net.ssl.trustStore=<Trust-Store-File-Path> -Djavax.net.ssl.trustStorePassword=<Trust-Store-Password>