Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
115
rated 0 times [  117] [ 2]  / answers: 1 / hits: 27996  / 15 Years ago, wed, february 10, 2010, 12:00:00

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?


More From » java

 Answers
26

If you don't need to filter CSS and JS files, I would simply put them in src/main/webapp (if you put them in src/main/resources, they will end up in target/classes and in WEB-INF/classes in the WAR which is very unlikely what you want). If you need to filter them, additional resources can be included in the WAR using the webResources parameter. Have a look at Adding and Filtering External Web Resources for more details.


[#97609] Monday, February 8, 2010, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
stacie

Total Points: 476
Total Questions: 92
Total Answers: 102

Location: Bosnia and Herzegovina
Member since Tue, Mar 29, 2022
2 Years ago
;