We have a bamboo build which has 4 tasks running on a windows server 2016 VM.
Each task has cd command to go to repository and then mvn compile .......command
Once the maven compilation is done, we see this error on all the four tasks
All my PATH variables in window server are correctly (JAVA_HOME,MAVEN_HOME) and also "C:\Windows\system32" and "C:\Windows\system32\cmd.exe"
To avoid confusion, i appended path variables of user admin to system PATH and deleted the user path.
Nothing seem to work, i have spent enough time debugging and ran out of options now.
Any help is highly appreciated.