Is there a way to force maven to copy resource folder changes incrementally?

后端 未结 5 2101
春和景丽
春和景丽 2021-02-20 17:38

I\'m using Maven 2.2.1 and m2eclipse.

I have two resource folders.

When I save a change to any file in any of the resource folders, the Maven incremental build k

5条回答
  •  有刺的猬
    2021-02-20 17:55

    Assuming you don't want to update, it appears that you'd need to write your own version of the resources plugin.

    This doesn't look like it would be too hard (some incomplete source code is here: http://maven.apache.org/plugins/maven-resources-plugin/xref/index.html) and you could include your own custom configuration parameter to modify the overwrite behaviour of the MavenResourcesExecution class.

    If you were feeling community minded, you could submit the patch back into the plugin repository to allow others to take advantage of the update.

提交回复
热议问题