Using the maven-remote-resources-plugin and specifying the resourcesDirectory

后端 未结 2 1849
[愿得一人]
[愿得一人] 2021-01-20 02:16

I\'m trying to override the default resources directory (src/main/resources) when using the maven-remote-resources-plugin. However the specified value in the sample

2条回答
  •  甜味超标
    2021-01-20 02:47

    kly is right about it not copying resources for you (I apologize, I cannot comment yet - not enough reputation).

    With the "bundle" goal, you are only generating a manifest with a list of the included resources. The manifest must be packaged in an artifact along with the resources themselves, which will only happen in your instance if you also use copy-resources to put them in the target/classes directory.

    You then must use the "process" goal, and list your bundle, in any other project you wish to use the resources from.

提交回复
热议问题