Re: Can't resolve dependency on maven2 artifact "jersey-media-multipart"

2019-05-16 Thread Jaikiran Pai
Yes, please do - I or someone else can then verify if this indeed is a
valid circularity exception or some bug in the implementation.

-Jaikiran

On 17/05/19 5:26 AM, Janusz Dalecki wrote:
> 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:
>>
>> > name="jersey-media-multipart" rev="2.28"/>
>>
>> My ivysettings.xml looks like this:
>>
>> 
>>
>>   
>>
>>   
>>
>>   
>>
>>     
>>
>>   > pattern="${ivy.local.default.root}/${ivy.local.default.ivy.pattern}" 
>> />
>>
>>   > pattern="${ivy.local.default.root}/${ivy.local.default.artifact.pattern}"
>> />
>>
>>     
>>
>>     
>>
>>   
>>
>>     
>>
>>   
>>
>> 
>>
>>  
>>
>> My resolve statement extract from build.xml looks like this:
>>
>>     
>>
>>     
>>
>>     
>>
>>     > pattern="${ivy.lib.dir}/[conf]/[artifact]-[type]-[revision].[ext]"/>
>>
>>     
>>
>>  
>>
>> 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%2Fdata=02%7C01%7Cjanusz.dalecki%40jci.com%7C04a20b976a584bd3ae9208d6d54a84b0%7Ca1f1e2147ded45b681a19e8ae3459641%7C0%7C0%7C636930913359084071sdata=Icnp%2Bh0hz7C4Fg75Nfc02KNwWxQukMll6fMnI5C99JE%3Dreserved=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)
>>


RE: Can't resolve dependency on maven2 artifact "jersey-media-multipart"

2019-05-16 Thread Janusz Dalecki
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:
>
>  name="jersey-media-multipart" rev="2.28"/>
>
> My ivysettings.xml looks like this:
>
> 
>
>   
>
>   
>
>   
>
>     
>
>    pattern="${ivy.local.default.root}/${ivy.local.default.ivy.pattern}" 
> />
>
>    pattern="${ivy.local.default.root}/${ivy.local.default.artifact.pattern}"
> />
>
>     
>
>     
>
>   
>
>     
>
>   
>
> 
>
>  
>
> My resolve statement extract from build.xml looks like this:
>
>     
>
>     
>
>     
>
>      pattern="${ivy.lib.dir}/[conf]/[artifact]-[type]-[revision].[ext]"/>
>
>     
>
>  
>
> 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%2Fdata=02%7C01%7Cjanusz.dalecki%40jci.com%7C04a20b976a584bd3ae9208d6d54a84b0%7Ca1f1e2147ded45b681a19e8ae3459641%7C0%7C0%7C636930913359084071sdata=Icnp%2Bh0hz7C4Fg75Nfc02KNwWxQukMll6fMnI5C99JE%3Dreserved=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)
>


Re: Can't resolve dependency on maven2 artifact "jersey-media-multipart"

2019-05-10 Thread Jaikiran Pai
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: 
>
>  name="jersey-media-multipart" rev="2.28"/> 
>
> My ivysettings.xml looks like this:
>
> 
>
>   
>
>   
>
>   
>
>     
>
>    pattern="${ivy.local.default.root}/${ivy.local.default.ivy.pattern}" />
>
>    pattern="${ivy.local.default.root}/${ivy.local.default.artifact.pattern}"
> />
>
>     
>
>     
>
>   
>
>     
>
>   
>
> 
>
>  
>
> My resolve statement extract from build.xml looks like this:
>
>     
>
>     
>
>     
>
>      pattern="${ivy.lib.dir}/[conf]/[artifact]-[type]-[revision].[ext]"/>
>
>     
>
>  
>
> 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://repo1.maven.org/maven2/org/eclipse/ee4j/project/1.0.5/ 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)
>