Matthew Cline
Matthew Cline

Reputation: 2376

Ivy: configuration doesn't exist

When trying to make an Ivy dependency part of configuration, by adding the property conf="widget->default" to a dependency declaration, I get the error:

Problem occurred while parsing ivy file: Cannot add dependency 'com.acme.widget#widget;1.2.3' to configuration 'widget' of module org.foo#bar;[email protected] because this configuration doesn't exist!

Upvotes: 0

Views: 1243

Answers (1)

Matthew Cline
Matthew Cline

Reputation: 2376

Each configuration must be explicitly declared in the configurations section of the same Ivy module file which declares the dependencies. For example:

<configurations>
    <conf name="widget" description="widget JAR files"/>
</configurations>

See the Ivy documetntation and the example ivy.xml file from the Ivy tutorial for more details.

Upvotes: 1

Related Questions