Forcing a user to enter a property using Maven

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.

+2
source share
1 answer

Source: https://habr.com/ru/post/1713772/


All Articles