I was in contact with a project in a company before, and the framework engineer used maven. As a code farmer in a small company, new things are always fascinating. Just in time for the weekend, I saw an article in iteye. Personal practice, the original author's blog address: http://jackycheng2007.iteye.com/
Conventions are greater than configuration usage conventions, and there are many advantages: 1. Can save a lot of configuration 2. You can use best practice 3. Newcomers can quickly familiarize themselves with the project and feel at home Maven's conventions
quote
src/main/java Application/Library sources
src/main/resources Application/Library resources
src/main/filters Resource filter files
src/main/assembly Assembly descriptors
src/main/config Configuration files
src/main/webapp Web application sources
src/test/java Test sources
src/test/resources Test resources
src/test/filters Test resource filter files
src/site Site
LICENSE.txt Project's license
NOTICE.txt Notices and attributions required by libraries that the project depends on
README.txt Project's readme
从上面看出,src下面分3大类,main里面包含production的内容,test包含QA的内容,site就包含项目的info。
其实和src平级的目录还有一个target。你应该可以猜到,build以后的文件比如class都会放到target里面去。
注意,resources里面的东东在build之后会放到classes的目录下面,所以你的log4
j还有其他的配置文件就可以放到这里了。