Specify common resources in a multi-module maven project

前端 未结 6 1320
忘掉有多难
忘掉有多难 2020-12-09 15:00

Is there any way to share resources between modules of a parent project in Maven? For example, I would like to specify one log4j.properties file for all the modules in a mul

6条回答
  •  情书的邮戳
    2020-12-09 15:50

    I'd create one additional "base" module (project), packaging "jar", that contains the common resources in src/main/resources. Then I'd make the other modules depend on that project. Now they see the common resources on their classpaths.

提交回复
热议问题