开发者

Where to put property file that is used across different modules in a multi-module maven project?

开发者 https://www.devze.com 2023-03-20 10:14 出处:网络
i have created a nice multi-module project using maven, but now i am wondering what the best place would be to store property files that shared accross modules. To give an example i have 4 modules all

i have created a nice multi-module project using maven, but now i am wondering what the best place would be to store property files that shared accross modules. To give an example i have 4 modules all needing a log4j.properties file, do i need to put it in every mo开发者_高级运维dule or is there a central place in which to put this?


If you have a parent project, this would be the best place.

Otherwise a module that is included by each other module.

Put the log4j.properties into /src/main/resources

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号