I have a Maven pom.xml with a plugin that I want to be able to control on the command line. Everything works otherwise fine, except even after searching the net a while I ca
This might work for you:
default true Foo ... notdefault ... ${myProperty} ...
That way,
mvn clean will use "foo" as your default param. In cases when you need to override, use mvn -P notdefault -DmyProperty=something
mvn clean
mvn -P notdefault -DmyProperty=something