Niranga Sandaruwan
Niranga Sandaruwan

Reputation: 711

Jenkins how to skip Maven-antrun-plugin to executing build.xml files in maven build with command

I want to skip compiling ant build.xml files in my Jenkins workspace like skipping Java test with the command parameter:

-Dmaven.test.skip=true

This command is not skipping ant build scripts:

-Dmaven.test.skip=true clean install

Can someone help me in this regards?

Upvotes: 4

Views: 2797

Answers (1)

J Fabian Meier
J Fabian Meier

Reputation: 35815

To skip maven-antrun-plugin in your pom.xml, use -Dmaven.antrun.skip=true.

Upvotes: 8

Related Questions