Maven Args command line in settings.xml

Good day,

I am trying to find out if it is possible to reassign Command Line Args in the Settings.xml file.

I cannot use the MAVEN_OPTS Env-Var and the .mavenrc file, but I need the settings in each project. It is important that no plugins are used that were not included after installation (settings are necessary to connect to the repository).

Settings:

 -Djavax.net.ssl.trustStore=VALUE
 -Djavax.net.ssl.trustStorePassword=VALUE
 -Djavax.net.ssl.keyStore=VALUE
 -Djavax.net.ssl.keyStorePassword=VALUE
 -Djavax.net.ssl.keyStoreType=VALUE
 -Dmaven.wagon.http.ssl.insecure=VALUE
 -Dmaven.wagon.http.ssl.allowall=VALUE
 -Dmaven.wagon.http.ssl.ignore.validity.dates=VALUE

I hope I haven’t missed anything obvious ... Thanks in advance, LocXar

EDIT-1: Maven Version: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)

EDIT-2: I tried this, but this does not work: <javax.net.ssl.trustStore>VALUE</javax.net.ssl.trustStore>

+4
source share
2 answers

${maven.projectBasedir}/.mvn/maven.config, Maven (: -T3 ..). , JVM ${maven.projectBasedir}/.mvn/jvm.config, , jvm.config :

-Djavax.net.ssl.trustStore=VALUE
-Djavax.net.ssl.trustStorePassword=VALUE
-Djavax.net.ssl.keyStore=VALUE
-Djavax.net.ssl.keyStorePassword=VALUE
-Djavax.net.ssl.keyStoreType=VALUE
-Dmaven.wagon.http.ssl.insecure=VALUE
-Dmaven.wagon.http.ssl.allowall=VALUE
-Dmaven.wagon.http.ssl.ignore.validity.dates=VALUE

, . , .mavenrc MAVEN_OPTS. Maven 3.3.1.

, . , https-, .

+5

All Articles