adding additional resources to a maven pom

前端 未结 4 1642
被撕碎了的回忆
被撕碎了的回忆 2021-01-01 17:00

I have a super pom defined in which I specify a \"resources\" directory for resources. In one of my projects, my pom extends that super pom, and I would like to add an addit

4条回答
  •  失恋的感觉
    2021-01-01 17:42

    The behaviour you've described is expected.

    Remember that your super POM is inheriting from Maven's default POM and pretty much any plugin that you define in your pom effectively overrides the setting in the default POM. As an example, to enable filtering on the default resource, you have to specify the path in your POM. You do this:

    
      
        src/main/resources
        true
      
    
    

    Not this:

    
      
        true
      
    
    

    The default directory does not bubble up for you, even if you've specified it there. There might be a special MOJO to do it for you, but I couldn't find one.

提交回复
热议问题