Maven copy resources in multi module project

左心房为你撑大大i 提交于 2019-12-01 02:54:43

you could use the assembly and the dependency plugins.. did you stumble over that link? http://www.sonatype.com/people/2008/04/how-to-share-resources-across-projects-in-maven/

it describes that option ..its from 2008, but maven is around for quite some time.. so I guess its more or less up to date

edit regarding comment
Another option is the maven-remote-resources-plugin. For a more detailed example see:
http://maven.apache.org/plugins/maven-remote-resources-plugin/examples/sharing-resources.html

Since their intro speaks actually for itself, I quote (maven.apache.org)

This plugin is used to retrieve JARs of resources from remote repositories, process those resources, and incorporate them into JARs you build with Maven. A very common use-case is the need to package certain resources in a consistent way across your organization: at Apache it is required that every JAR produced contains a copy of the Apache license and a notice file that references all used software in a given project.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!