Is there a way in maven to assure that a property is set

Viewed 2201

I just tracked down a difficult maven issue that was caused by a bad property value.

The property is a path to an alternate JVM that is used a run-time by a test. I would like to make maven fail early by detecting if the path is valid or not. What might be a way to accomplish this?

I plan to dig into antrun to see if there is a way to make it run first so that it can check, but that seems like overkill.

Question: How can I do this cleanly and simply?

3 Answers
Related