Dave
Dave

Reputation: 8897

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

Upvotes: 1

Views: 63

Answers (1)

khmarbaise
khmarbaise

Reputation: 97399

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

Upvotes: 1

Related Questions