Sorry it's "-pl" as in "project list", not "-p". I also forgot the "-am" option. This will work:
mvn clean install -pl mongodb -am -s settings-example.xml