If you add a property in your pom like so:
And use it in your pom somewhere like this:
${db.password}
Then you can set the property from command line:
$ mvn -Ddb.password="DonaldDuck" install
But it is not interactive like a command prompt.