Troubleshooting Maven-Generated HTTP Traffic: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Maven =Overview= There are situations when remote repository pull request fail, and Maven does not generate sufficient logging information t...") |
|||
Line 5: | Line 5: | ||
=Overview= | =Overview= | ||
There are situations when remote repository pull request fail, and Maven does not generate sufficient logging information to assist with troubleshooting. In those situations, it is useful to intercept the HttpClient- | There are situations when remote repository pull request fail, and Maven does not generate sufficient logging information to assist with troubleshooting. In those situations, it is useful to intercept the HttpClient-generated HTTP request-responses with a proxy like [[Charles]]. | ||
=SSL= | |||
In case the Maven attempts to connect to a HTTPS repository, the underlying HttpClient will have to be configured to trust Charles' root certificate. The procedure is the following: | |||
1. Export Charles root certificate as described here: | |||
{{Internal|Charles#Export_the_Root_Certificate|Export Charles' Root Certificate}} | |||
2. Import the certificate into a truststore and start Maven as described here: | |||
{{Internal|Configure a Java HTTP Client to Accept Self-Signed Certificates|Configure a Java HTTP Client to Accept Self-Signed Certificates}} |
Latest revision as of 08:33, 9 January 2018
Internal
Overview
There are situations when remote repository pull request fail, and Maven does not generate sufficient logging information to assist with troubleshooting. In those situations, it is useful to intercept the HttpClient-generated HTTP request-responses with a proxy like Charles.
SSL
In case the Maven attempts to connect to a HTTPS repository, the underlying HttpClient will have to be configured to trust Charles' root certificate. The procedure is the following:
1. Export Charles root certificate as described here:
2. Import the certificate into a truststore and start Maven as described here: