views:

143

answers:

1

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?

+6  A: 

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

Rich Seller