【发布时间】: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 脚本