Maven Command Line Options: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 12: Line 12:


Alternate path for the [[Maven_settings.xml#Overview|user settings]] file.
Alternate path for the [[Maven_settings.xml#Overview|user settings]] file.
=--encrypt-password=
Note that [[Maven settings-security.xml|settings-security.xml]] must exist 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)

Revision as of 02:37, 9 January 2018

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.

--encrypt-password

Note that settings-security.xml must exist 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)