I have a Java Maven project. I have some script A stored under src/main/resources
folder.
I found that after mvn
install, everything under resource folder will be copied to target folder. So here comes my question:
Let's say my script A (a Windows .bat
file), when run, will access file B, which is also under src/main/resources
, and generate result file C
, which I intend to put also under src/main/resources
.
And my script A looks like this:
some command `c:\project\...\src\main\resource\B`
How will Maven run?
will it
run everything (A, B, create C) under
src/main/resources
, and copy the result to target folder? orwill it copy A, B to target folder and run from there?
If it is 2), should I change my script A to change path of B to target folder?