Your gui client does not provide a tty or any other way of getting input from the user during hooks. So this is not possible. I see two solutions to this problem:
- Let the commit pass and output a warning. Getting back to the previous state is as simple as
git reset HEAD^
. - Use a git config option to either toggle the check or configure a list of valid pom files.