Maven Wagon HTTP文档中写道:
其他功能可以通过系统属性进行配置:
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中完成吗?
由于它是从系统属性中读取的,因此需要像这样设置
export MAVEN_OPTS=-Dmaven.wagon.http.ssl.insecure=false -DsomeOtherSystemProperty=value
- https://maven.apache.org/guides/mini/guide-configuring-maven.html
对于wagon-2.9
:NO
它们都直接使用System.getProperty(...)
,并且在settings.xml
中不可配置。
maven.wagon.rto
(参见#43https://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.*
(参见#235ffhttps://github.com/apache/maven-wagon/blob/wagon-2.9/wagon-providers/wagon-http/src/main/java/org/apache/maven/wagon/providers/http/AbstractHttpClientWagon.java)