Issue
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?
Solution
You can use Maven Enforcer Plugin. It provides the Require Property rule which enables you to check if a property is set, and evaluate its value againsts a set of values or regular expressions.
Answered By - usuario