The
Job Terminated in error: IOException parsing XML document from Class Path Resource c:/directory/job-definition.xml
In POM.XML:
CodePudding user response:
The problem is with the path separators used, in cdm the interpreter is treating this path as an absolute path starting from the root of the drive you are running this.
Git bash however, mangles the provided paths and translates it, adding the current git execution path to the provided path arguments, that's why you see the temp directory in front of your provided path.
If you specify command-line options starting with a slash, POSIX-to-Windows path conversion will kick in converting e.g. "/usr/bin/bash.exe" to "C:\Program Files\Git\usr\bin\bash.exe".
What you could do is add //
at the beginning of your path for the bash - //spring/batch/...