0

I am trying to debug a maven task from IntelliJ. which involves executing system command to start a service using ProcessBuilder.

e.g. I want to install package to my android device

installApk(String package){ ProcessBuilder pb=new ProcessBuilder("adb install",package); Util.execute(pb); //Utility method to execute ProcessBuilder commands }

It starts executing but gets stuck at point of execution of system command.

system command is not getting executed from IntelliJ (both Run and Debug mode). But it works fine when I run the same task from terminal.

mvn exec:java -Dexec.mainClass="com.my.Main"

I tried running it directly as main class and as well as mvn task configuration unsing intelliJ

I tried configuring IntelliJ to use my system's maven, instead of packaged one. It also didn't worked

xrs
  • 144
  • 11

0 Answers0