【问题标题】:Run Makefile + Ant Buildfile inside Maven pom.xml在 Maven pom.xml 中运行 Makefile + Ant Buildfile
【发布时间】:2012-03-19 10:42:07
【问题描述】:

我已从 GitHub 将 jquery + jquery-ui 检出到我的 src/main/webapp/resources/js 文件夹中。

现在我想通过 pom.xml 做一些缩小的事情 (jquery uses a Makefile - jquery-ui uses an Ant buildfile)

可以这样做吗? 我刚想到一个Groovy Script inside pom.xml

这是干净/流行的方式吗? 还有谁能举个例子 因为我对 Groovy 完全陌生。

【问题讨论】:

    标签: maven ant groovy makefile maven-plugin


    【解决方案1】:

    对于运行 Ant 目标,请考虑使用 maven-antrun-plugin。对于调用make 命令,我建议查看exec-maven-plugin

    【讨论】:

    • 是否可以为maven-antrun-plugin 设置工作目录以及从指定路径中运行build.xml 以避免错误行为?
    • 我不知道。可能这是另一个问题的主题。
    猜你喜欢
    • 2011-03-20
    • 2019-05-21
    • 2011-02-20
    • 1970-01-01
    • 2011-06-19
    • 1970-01-01
    • 1970-01-01
    • 2012-06-02
    • 2018-08-09
    相关资源
    最近更新 更多