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

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

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

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -