Maven Command Line Options: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(14 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
* [[Maven#Subjects|Maven]] | * [[Maven#Subjects|Maven]] | ||
=-U= | =-e, --errors= | ||
=<span id='-U'></span>-U, --update-snapshots= | |||
Forces a check for missing releases and updated snapshots on remote repositories. | Forces a check for missing releases and updated snapshots on remote repositories. | ||
Line 9: | Line 11: | ||
=-s, --settings= | =-s, --settings= | ||
Alternate path for the user settings file. | Alternate path for the [[Maven_settings.xml#Overview|user settings]] file. | ||
=-ep, --encrypt-password= | |||
The command encrypts the given password with the local master password, stored, also in encrypted format, in ~<''user''>/.m2/[[Maven settings-security.xml|settings-security.xml]]. Note that ~<''user''>/.m2/[[Maven settings-security.xml|settings-security.xml]] must exist and must contain a valid master password when using this command, otherwise we get: | |||
mvn --encrypt-password something | |||
[ERROR] Error executing Maven. | |||
[ERROR] java.io.FileNotFoundException: /Users/ovidiu/.m2/settings-security.xml (No such file or directory) | |||
[ERROR] Caused by: /Users/ovidiu/.m2/settings-security.xml (No such file or directory) | |||
For details on how to use password-protected repositories, see: {{Internal|Maven_Repositories#Password-Protected_Repositories|Password-Protected Repositories}} | |||
=-D= | |||
Provides values for properties specified in the POM. | |||
= | mvn -Dmy.property.name=myValue |
Latest revision as of 01:25, 18 October 2019
Internal
-e, --errors
-U, --update-snapshots
Forces a check for missing releases and updated snapshots on remote repositories.
-s, --settings
Alternate path for the user settings file.
-ep, --encrypt-password
The command encrypts the given password with the local master password, stored, also in encrypted format, in ~<user>/.m2/settings-security.xml. Note that ~<user>/.m2/settings-security.xml must exist and must contain a valid master password when using this command, otherwise we get:
mvn --encrypt-password something [ERROR] Error executing Maven. [ERROR] java.io.FileNotFoundException: /Users/ovidiu/.m2/settings-security.xml (No such file or directory) [ERROR] Caused by: /Users/ovidiu/.m2/settings-security.xml (No such file or directory)
For details on how to use password-protected repositories, see:
-D
Provides values for properties specified in the POM.
mvn -Dmy.property.name=myValue