How can I make maven fail on Windows if it is not running as Administrator -


i have maven project builds installer, part of process needs running in administrator cmd shell. bad thing run 15 minutes , happily produce wrong output if not running admin. make maven exit error if not running admin. easy way this?

i approach problem executing batch @ start of build, , fail build if batch not detect admin mode (and returns specific failure code).

to more precise:


Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -