Yes, there is. I have never tried it, so I can not verify that this actually works, but ...
javac -proc:only
means that only annotation processing is done, without any subsequent compilation.
If that did not work, what is wrong with just using
javac -d /dev/null