Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 831
kevin cline Avatar asked Oct 20 '25 14:10

kevin cline


1 Answers

Since it is reading it from system properties, it needs to be set like this

export MAVEN_OPTS=-Dmaven.wagon.http.ssl.insecure=false -DsomeOtherSystemProperty=value
  • https://maven.apache.org/guides/mini/guide-configuring-maven.html
like image 138
jmj Avatar answered Oct 22 '25 04:10

jmj



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!