Maven pluginManagement configuration inheritance strange behavior

后端 未结 2 1660
夕颜
夕颜 2021-01-02 14:46

I\'m using pluginManagement element in my parent pom.xml to configure plugins for all its children. For example, I have the following configuration

2条回答
  •  青春惊慌失措
    2021-01-02 15:41

    Maven always copies resources that are inside src/main/resources by default.

    From Maven Getting Started Guide:

    The simple rule employed by Maven is this: any directories or files placed within the ${basedir}/src/main/resources directory are packaged in your JAR with the exact same structure starting at the base of the JAR.

提交回复
热议问题