Reputation: 17203
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
Reputation: 84038
Yes, use the requireProperty goal of the maven-enforcer-plugin.
Upvotes: 7