Home > Back-end >  How to make Maven fail if a passed flag is invalid?
How to make Maven fail if a passed flag is invalid?

Time:09-27

mvn install -DSkipTests

Will happily run, while running tests (as the correct capitalization is -DskipTests). I'd like to immediately know that -DSkipTests does nothing, alerting me I've made a typo. Is this possible? Why does it not work this way to start?

CodePudding user response:

The problem: With -D, you just specify arbitrary properties.

Maven does not know if any of your Maven plugins consumes them.

  • Related