mavenwagonmaven-wagon-plugin

How to configure Maven Wagon


Maven Wagon HTTP documentation says:

Other features can be configured through system properties:

maven.wagon.http.ssl.insecure = true/false (default false), enable/disable use of relaxed ssl check for user generated certificates.
maven.wagon.http.ssl.allowall = true/false (default false), enable/disable match of the server's X.509 certificate with hostname. If disabled, a browser like check will be used.
maven.wagon.http.ssl.ignore.validity.dates = true/false (default false), ignore issues with certificate dates.
maven.wagon.rto = time in ms (default 1800000), read time out.

Can this configuration also be done in settings.xml?


Solution

  • For wagon-2.9: NO

    All of them are using the System.getProperty(...) direct and are not configurable in settings.xml.

    maven.wagon.rto (see #43 https://github.com/apache/maven-wagon/blob/wagon-2.9/wagon-providers/wagon-http/src/main/java/org/apache/maven/wagon/providers/http/HttpMethodConfiguration.java)

    maven.wagon.http.ssl.* (see #235ff https://github.com/apache/maven-wagon/blob/wagon-2.9/wagon-providers/wagon-http/src/main/java/org/apache/maven/wagon/providers/http/AbstractHttpClientWagon.java)