【问题标题】:Jenkins how to skip Maven-antrun-plugin to executing build.xml files in maven build with command詹金斯如何跳过 Maven-antrun-plugin 以使用命令在 Maven 构建中执行 build.xml 文件
【发布时间】:2017-10-24 03:47:48
【问题描述】:

我想跳过在我的 Jenkins 工作区中编译 ant build.xml 文件,例如使用命令参数跳过 Java 测试:

-Dmaven.test.skip=true

此命令不会跳过 ant 构建脚本:

-Dmaven.test.skip=true clean install

有人可以在这方面帮助我吗?

【问题讨论】:

  • 请澄清您的问题。为什么 Maven 应该调用build.xml?你使用 Maven-antrun-plugin 吗?标准的 pom.xml 不会调用任何 ant 构建。
  • @JF Meier 是的,我正在使用 Maven-antrun-plugin.which 正在执行 ant build.xml 脚本

标签: maven jenkins ant


【解决方案1】:

要跳过 pom.xml 中的 maven-antrun-plugin,请使用 -Dmaven.antrun.skip=true

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-04-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-08
    相关资源
    最近更新 更多