Hi Jaikiran,
Should I raise this a bug in ivy?

Kind Regards,
Janusz

-----Original Message-----
From: Jaikiran Pai [mailto:jaiki...@apache.org] 
Sent: Friday, May 10, 2019 11:22 PM
To: ivy-user@ant.apache.org
Subject: Re: Can't resolve dependency on maven2 artifact 
"jersey-media-multipart"

Hello Janusz,

When run with the -debug option of Ant, I see this exception:

[ivy:retrieve] problem occurred while resolving dependency:
org.glassfish.hk2#hk2-bom;2.5.0 {} with libraries
(org.apache.ivy.plugins.circular.CircularDependencyException:
org.glassfish.jersey.media#project;2.28->org.glassfish.jersey#project;2.28->org.eclipse.ee4j#project;1.0.5)
[ivy:retrieve]
org.apache.ivy.plugins.circular.CircularDependencyException:
org.glassfish.jersey.media#project;2.28->org.glassfish.jersey#project;2.28->org.eclipse.ee4j#project;1.0.5
[ivy:retrieve]     at
org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:183)


So it looks like there's a circular dependency exception being triggered while 
parsing the hk2-bom:2.5.0. I haven't yet had a chance to verify if it's a 
genuine circular dependency issue or some bug in Ivy.

-Jaikiran

On 09/05/19 5:32 AM, Janusz Dalecki wrote:
>
> Hi,
>
> I have an ivy.xml file that includes just one dependency like this:
>
> <dependency org="org.glassfish.jersey.media"
> name="jersey-media-multipart" rev="2.28"/>
>
> My ivysettings.xml looks like this:
>
> <ivysettings>
>
>   <properties file="${ivy.settings.dir}/ivysettings.properties"/>
>
>   <settings defaultResolver="maven-repos"/>
>
>   <resolvers>
>
>     <filesystem name="local">
>
>       <ivy
> pattern="${ivy.local.default.root}/${ivy.local.default.ivy.pattern}" 
> />
>
>       <artifact
> pattern="${ivy.local.default.root}/${ivy.local.default.artifact.pattern}"
> />
>
>     </filesystem>
>
>     <chain name="maven-repos">
>
>       <ibiblio name="libraries" m2compatible="true"/>
>
>     </chain>
>
>   </resolvers>
>
> </ivysettings>
>
>  
>
> My resolve statement extract from build.xml looks like this:
>
>     <!-- =================================
>
>           target: resolve
>
>          ================================= -->
>
>     <target name="resolve" description="--> retrieve dependencies with 
> ivy">
>
>         <!-- conf="*" will copie artifacts defined for each conf in a 
> dir matching conf name -->
>
>         <ivy:retrieve
> pattern="${ivy.lib.dir}/[conf]/[artifact]-[type]-[revision].[ext]"/>
>
>     </target>
>
>  
>
> When I try to resolve that dependency I get an error during resolve:
>
> [ivy:retrieve]
>
> [ivy:retrieve] :: problems summary ::
>
> [ivy:retrieve] :::: WARNINGS
>
> [ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
>
> [ivy:retrieve]          ::          UNRESOLVED DEPENDENCIES         ::
>
> [ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
>
> [ivy:retrieve]          ::
> org.glassfish.jersey.media#jersey-media-multipart;2.28:
> org.glassfish.jersey.media#project;2.28->org.glassfish.jersey#project;
> 2.28->org.eclipse.ee4j#project;1.0.5
>
> [ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
>
> [ivy:retrieve]
>
> [ivy:retrieve]
>
> [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
>
> I have checked that in the central repository there is a pom.xml in 
> https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Frepo
> 1.maven.org%2Fmaven2%2Forg%2Feclipse%2Fee4j%2Fproject%2F1.0.5%2F&amp;data=02%7C01%7Cjanusz.dalecki%40jci.com%7C04a20b976a584bd3ae9208d6d54a84b0%7Ca1f1e2147ded45b681a19e8ae3459641%7C0%7C0%7C636930913359084071&amp;sdata=Icnp%2Bh0hz7C4Fg75Nfc02KNwWxQukMll6fMnI5C99JE%3D&amp;reserved=0
>  repository called project-1.0.5.pom . Why am I getting this error then?
>
>  
>
> Kind Regards,
>
> Janusz
>
> PS
>
> I have included all my ivy/ant build files (I was experimenting with 
> multi-projects example from ivy)
>

Reply via email to