I have a Web application in maven that follows this structure:
src
`-- main
|-- java
|-- resources
`-- webapp
Is is better to put it in the main folder and then the maven plug in will try to move it or I should put it inside the webapp folder and why?
If you don’t need to filter CSS and JS files, I would simply put them in
src/main/webapp(if you put them insrc/main/resources, they will end up intarget/classesand inWEB-INF/classesin the WAR which is very unlikely what you want). If you need to filter them, additional resources can be included in the WAR using thewebResourcesparameter. Have a look at Adding and Filtering External Web Resources for more details.