Mauli
Mauli

Reputation: 17203

How to fail a Maven build on a missing parameter?

I have a environment variable or jvm parameter which must be present. How do I get Maven to fail if this parameter does not exist?

Upvotes: 5

Views: 691

Answers (1)

Rich Seller
Rich Seller

Reputation: 84038

Yes, use the requireProperty goal of the maven-enforcer-plugin.

Upvotes: 7

Related Questions