如何配置Maven Wagon

时间:2015-07-02 17:29:52

标签: maven wagon maven-wagon-plugin

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

2 个答案:

答案 0 :(得分:4)

Since it is reading it from system properties,需要像这样设置

export MAVEN_OPTS=-Dmaven.wagon.http.ssl.insecure=false -DsomeOtherSystemProperty=value

答案 1 :(得分:0)