My situation:
- I have a Maven project, I have java classes in / app / src / main / java , my resources in / app / src / main / resources and my webapp files in / app / src / main / webapp
- I have a javascript file in /common/script.js
Now I want to include (copy) the javascript file into the war file during the maven build phase. To be precise, I want script.js to land in the / js / directory of the military archive, just like it was placed in the / app / src / main / webapp / js folder before starting the build.
I need this to share one version of resource files among many web applications.
Regards, Question.
source share