Maven Wagon HTTP documentation说:
可以通过系统属性配置其他功能:
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.
可以在settings.xml中完成此配置吗?
最佳答案
对于wagon-2.9
:无
它们全部都直接使用System.getProperty(...)
,并且不能在settings.xml
中配置。maven.wagon.rto
(请参阅#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.*
(请参阅#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)