Troubleshooting Maven-Generated HTTP Traffic

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

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:

Export Charles' Root Certificate

2. Import the certificate into a truststore and start Maven as described here:

Configure a Java HTTP Client to Accept Self-Signed Certificates