I have a maven project, in which, I am trying to execute a script (written in R). I put this script file in the source code directory as well. I found this script is not exe
You will need to extract the script from the jar file:
jar -xvf my.jar com/foo/my.script.sh