Hi all, I managed to fix the error completely by setting the property at ivysettings.xml and upgrading Ivy from 2.4 to 2.5.0-rc1.
Still I think it is a bug that the property at the POM file isn't set at Ivy automatically. Can anyone confirm that? Regards, Pedro On Mon, Jan 14, 2019 at 12:11 PM Pedro de Carvalho Gomes < pedrogome...@gmail.com> wrote: > 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} > <http://javax.ws.rs#javax.ws.rs-api;2.1!javax.ws.rs-api.$%7Bpackaging.type%7D> > (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} > <http://javax.ws.rs#javax.ws.rs-api;2.1!javax.ws.rs-api.$%7Bpackaging.type%7D> > > 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 >