3

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中完成吗?

4

2 回答 2

4

由于是从系统属性中读取的,所以需要这样设置

export MAVEN_OPTS=-Dmaven.wagon.http.ssl.insecure=false -DsomeOtherSystemProperty=value
于 2015-07-02T17:44:59.387 回答
0

对于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 )

于 2015-07-02T17:46:00.797 回答