carlspring
carlspring

Reputation: 32639

How do you override the artifact output directory for Ivy (standalone)?

I am running Ivy as a standalone (therefore, no Ant). I need to override the property for the directory in which Ivy expect to find the produced artifacts. I ran Ivy with -debug and saw it has the following property ivy.distrib.dir=${ivy.project.dir}/distrib. I tried passing in -Divy.distrib.dir=target as well as -args -Divy.distrib.dir=target, but none of that worked. I've also tried overriding it in both the ivysettings.xml and the ivy.xml. Clearly, there must be a way to do it...?

Upvotes: 0

Views: 598

Answers (1)

Mark O'Connor
Mark O'Connor

Reputation: 77991

Use the "publishpattern" command-line parameter to specify the location of the artifacts. This is combined with the "publications" section of the ivy file to determine what is published by the module.

See the following answer for a working example:

Upvotes: 2

Related Questions