如何抑制Maven程序集插件跳过已添加的文件?还是允许覆盖? [英] How do I suppress maven assembly plugin skipping files that are already added? Or allow overwrite?
问题描述
数周以来,我一直在与maven搏斗,以使其能够正确地"部署我们的项目.
For weeks, I've been wrestling with maven, getting it to deploy our project "properly."
我快完成了,但是我有一个顽固的小问题:
I'm almost done but I have one stubborn little problem:
当我将Maven程序集插件与目录"目标一起使用时,
When I use the maven assembly plugin with the "directory" goal as in
mvn assembly:directory
我得到很多控制台输出,如下所示:
[INFO] tomcat/conf already added, skipping
[INFO] tomcat/conf/Catalina already added, skipping
[INFO] tomcat/conf/Catalina/localhost already added, skipping
[INFO] tomcat/webapps already added, skipping
I get LOTS of console output like the following:
[INFO] tomcat/conf already added, skipping
[INFO] tomcat/conf/Catalina already added, skipping
[INFO] tomcat/conf/Catalina/localhost already added, skipping
[INFO] tomcat/webapps already added, skipping
我已经编写了自己的程序集描述符,该描述符基本上将几个FileSet复制到我们的deploy目录中的各个子目录中.每当将一个FileSet中的文件复制到另一个FileSet已经创建了基本目录结构(以及一些可以覆盖的默认"文件)的位置时,就会出现上述消息.
I've written my own assembly descriptor that basically copies several FileSets into various sub-directories within our deploy directory. Messages like the ones above appear whenever a file from one FileSet is being copied to a location in which another FileSet has already created the basic directory structure (and some "default" files that can be overwritten).
所以,我很难弄清楚:
我该如何1)禁止显示这些消息(但仅已添加"消息)或2)允许覆盖?
How do I either 1) Suppress these messages (but only the "already added" messages) or 2) allow for overwrite?
推荐答案
该信息消息来自Plexus Archiver.有关于此问题的公开错误报告:
The info messages are coming from the Plexus Archiver. There is an open bug report on this issue:
http://jira.codehaus.org/browse/PLXCOMP-129
这篇关于如何抑制Maven程序集插件跳过已添加的文件?还是允许覆盖?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!