开发者

Running the same plugin multiple times in Maven

开发者 https://www.devze.com 2023-01-22 06:00 出处:网络
I\'m us开发者_运维技巧ing maven-minify-plugin. It can produce only one output file. I need to produce two minified js files. One from one set of files, the other from another set of files.

I'm us开发者_运维技巧ing maven-minify-plugin. It can produce only one output file. I need to produce two minified js files. One from one set of files, the other from another set of files.

Can I somehow trick Maven into running two different configurations for the same plugin?

Thanks for help, Yuri.


Turned out to be pretty easy. Use different executions, like explained here: http://maven.apache.org/guides/mini/guide-configuring-plugins.html#Using_the_executions_Tag

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号