What I want to do is: I have pom.xml, which depends on some property that the user will have to enter when he calls mvn the -D property.
The problem is that if the user did not provide me this option, mvn should fail with a special error message: "This program will not compile because you must define this property ..."
Does anyone know the easiest way to do this? I do not want to create a plugin that throws an exception just for this.
source
share