Hi all,

I have a project with the following dependency that I do not control:

<dependency org="javax.ws.rs" name="javax.ws.rs-api" rev="2.1"/>

This dependecy has a POM file with the following data (summarized). Note
that "packaging" is provided as a property that is later set in the file:


If I execute a resolve task, I get the following error since the property
is not set:

[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve]           [NOT FOUND  ]
javax.ws.rs#javax.ws.rs-api;2.1!javax.ws.rs-api.${packaging.type} (0ms)
[ivy:resolve]   ==== archiva-internal: tried
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]           ::              FAILED DOWNLOADS            ::
[ivy:resolve]           :: ^ see resolution messages for details  ^ ::
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]           ::

I can bypass the error by setting the following property at ivysettings.xml:

<property name="packaging.type" value="jar"/>

Still, the error above apears if the dependency wasn't yet at Ivy cache.
After it's cached, the error disapear.

Question: is it a bug that Ivy does not set the POM property? What about it
not setting the property for the non-cached dependency, even if the
property is set at ivysettings.xml?

Thanks in advance,


Reply via email to