adding additional resources to a maven pom

前端 未结 4 1661
被撕碎了的回忆
被撕碎了的回忆 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:36

    Yes, maven overrides the parent POM's resources when redefining new resource section.

    However, a simple way to add resources is to

    1. Remove the resources section from your POM
    2. Show The effective POM
    3. Copy the resources from your effective POM into your project
    4. Replace absolute paths with relative ones
    5. Add your additional resources

提交回复
热议问题