log4j configuration file in a multi-module Maven project

前端 未结 3 1597
生来不讨喜
生来不讨喜 2020-12-28 17:19

I am working on a multi-module Maven project, whose structure is like this:

war-module
jar-module

The war-module depends on the jar-module,

3条回答
  •  误落风尘
    2020-12-28 18:14

    I found the answer via some more searching on the web.

    Generally, there are three ways to share resources in a multi module Maven project:

    • Cut and paste them.
    • Use Assembly and Dependency plugins
    • Use the maven-remote-resources-plugin

    Here's a blog post from Sonatype, the company behind Maven, on sharing resources across projects in Maven, and it is the exact answer I need:

    http://www.sonatype.com/people/2008/04/how-to-share-resources-across-projects-in-maven/

提交回复
热议问题