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: <groupId>javax.ws.rs</groupId> <artifactId>javax.ws.rs-api</artifactId> <version>2.1</version> <packaging>${packaging.type}</packaging> <name>javax.ws.rs-api</name> (...) <profile> <packaging.type>jar</packaging.type> </properties> 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] https://dtools.ipsoft.com/artifactory/libs-release/javax/ws/rs/javax.ws.rs-api/2.1/javax.ws.rs-api-2.1 .${packaging.type} [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:resolve] :: FAILED DOWNLOADS :: [ivy:resolve] :: ^ see resolution messages for details ^ :: [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:resolve] :: javax.ws.rs#javax.ws.rs-api;2.1!javax.ws.rs-api.${packaging.type} 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, Pedro