gpt4 book ai didi

maven - Jenkins 如何跳过 Maven-antrun-plugin 以使用命令在 Maven 构建中执行 build.xml 文件

转载 作者:行者123 更新时间:2023-12-05 02:17:50 55 4
gpt4 key购买 nike

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

-Dmaven.test.skip=true

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

-Dmaven.test.skip=true clean install

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

最佳答案

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

关于maven - Jenkins 如何跳过 Maven-antrun-plugin 以使用命令在 Maven 构建中执行 build.xml 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46901870/

55 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com