【问题标题】:Running the same plugin multiple times in Maven在 Maven 中多次运行同一个插件
【发布时间】:2010-10-28 20:06:20
【问题描述】:

我正在使用 maven-minify-plugin。它只能产生一个输出文件。我需要生成两个缩小的 js 文件。一个来自一组文件,另一个来自另一组文件。

我可以欺骗 Maven 为同一个插件运行两种不同的配置吗?

谢谢你的帮助,尤里。

【问题讨论】:

    标签: maven minify


    【解决方案1】:

    结果很容易。使用不同的执行方式,如下所述:http://maven.apache.org/guides/mini/guide-configuring-plugins.html#Using_the_executions_Tag

    【讨论】:

    • 如果在一个插件的执行之间需要运行另一个插件执行怎么办?这可以在 pom 文件中多次定义同一个插件吗?
    • @Yannis 没有内置通用方式,it depends on what exactly you want to do
    猜你喜欢
    • 1970-01-01
    • 2016-09-22
    • 1970-01-01
    • 1970-01-01
    • 2012-03-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-03
    相关资源
    最近更新 更多