I have one property file shown below
testdb.username=AA
testdb.password=AA
testdb.port=1521
testdb.host=localhost
now, I want to pass all these 4 key value pairs as env variable in maven command.
One way is to place each key value pair in maven command shown below
mvn clean package -Dtestdb.username=A -Dtestdb.password=AA ....
I want to know is there any way in Maven to pass whole properties file to Maven and Maven read property file and set all key value pairs dynamically as env variable in maven command.