This could be a Java program (along with a launch configuration for common IDEs like Eclipse) or a Maven goal (which enforces Maven as build orchestrator and probably requires further adaption of the user pom.xml).
In any case, coupling the approval with IDEs should not be a problem as approval on remote build system without user interaction is probably not a good idea.