Search code examples
mavenmaven-3maven-antrun-plugin

How do I get maven to die gracefully if expected parameters aren't supplied?


I'm using Maven 3.0.3 on Solaris 10. How do I get Maven to fail gracefully if the parameters "env" and "label" are not supplied on the command line ? They would normally be passed in as "-Denv=QA", for example.

These parameters get used in the antrun plugin, where I am exec'ing a few commands under .

Thanks, - Dave


Solution

  • May be the maven-enforcer-plugin would help you.