战争档案打包之前执行目标 [英] Exec goals before war archive package

查看:104
本文介绍了战争档案打包之前执行目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在包装大战之前运行maven-replacer-plugin.我已经找到了准备打包"阶段,但是它在战争组装和所有资源复制之前触发,但是在复制所有资源时以及在创建存档之前,我需要进行更改.这可能在行家中吗?

I want to run maven-replacer-plugin just before packaging war. I have find "prepare-package" phase but it triggered before war assembled and all resources copied, but I need to make changes when all resources copied and just before archive create. Is this possible in maven?

顺便说一句,我使用的是maven-2.2.1.

BTW, I use maven-2.2.1.

谢谢.

推荐答案

我在中找到了答案Maven替换插件WIKI .诀窍是在war:爆炸后制作所有东西,然后在war插件配置中使用<useCache>true</useCache>属性.而且war:war将使用现有文件,并且不会重写它们.

I have found answer in maven replacer plugin WIKI. The trick is to make all things after war:exploded but then use <useCache>true</useCache> property in war plugin configuration. And war:war will use existing files and don't rewrite them.

这篇关于战争档案打包之前执行目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆