Answer to SO question 48693420
Demonstrates substitution in properties file with system variables.
Execute with
username=user1 password=pass1 mvn resources:resources && cat target/classes/development.properties
Expected output:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building question-48693420 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-cli) @ question-48693420 ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.555 s
[INFO] Finished at: 2018-02-15T08:48:50+01:00
[INFO] Final Memory: 10M/619M
[INFO] ------------------------------------------------------------------------
username=user1
password=pass1