Maven profile properties are not “overriding”

后端 未结 5 1273
忘了有多久
忘了有多久 2021-02-19 10:09

I have Maven multi-module project with such structure:

parent-pom-project

-- module1

-- module2

At the paren

5条回答
  •  不知归路
    2021-02-19 10:55

    Add a ${basedir} in front of your resource directories:

    ${basedir}/src/main/resources

    This should fix your problem. My explanation would be that in a multi-module project it's not picking up the path correctly (for within the child module), if you're building from the top-level. Thus when trying to filter, it applies it to a different directory (the actual root-level aggregator), instead of the child.

    I hope it helps.

提交回复
热议问题