Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Standard maven layout for a web application, do my .properties files go?

Tags:

maven-2

maven

Assuming I have a .properties file and hibernate.cfg.xml in a standard maven web application layout where should they be placed so that they are included in my .war file when I run package?

src/main/resources

src/main/java

src/main/webapp

src/main/config

?

like image 856
benstpierre Avatar asked Dec 23 '22 00:12

benstpierre


1 Answers

Application/Library resources go in src/main/resources (they will end up in target/classes first after compilation and then in WEB-INF/classes in the war after packaging).

See also

  • Introduction to the Standard Directory Layout
like image 152
Pascal Thivent Avatar answered Dec 27 '22 09:12

Pascal Thivent