This is a snippet from my pom.xml. I tried the following, but the profile was not activated.
mvn clean install -Pdev1 mvn clean install -P dev1
Just remove activation section, I don't know why -Pdev1 doesn't override default false activation. But if you omit this:
false
then your profile will be activated only after explicit declaration as -Pdev1