[ 
https://issues.apache.org/jira/browse/IVY-1605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16979883#comment-16979883
 ] 

Gintas Grigelionis commented on IVY-1605:
-----------------------------------------

[~emilles] What kind of problem are you observing? Could you reproduce the 
issue by resolving a dependency from CLI? Then please add a {{-cache 
<directory>}} option to create a fresh cache and compare it to the old one.

By the looks of Janusz logs, Ivy is recursively resolving parent POMs and 
throwing a CircularDependencyException. What I see (apart from lots of 
ExtraInfo) is that common parents at the root of the dependency tree have no 
explicit dependencies at all, and resolve fails to produce a circular 
dependency.

> Ivy can't resolve dependency on maven2 artifact "jersey-media-multipart"
> ------------------------------------------------------------------------
>
>                 Key: IVY-1605
>                 URL: https://issues.apache.org/jira/browse/IVY-1605
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core, Maven Compatibility
>    Affects Versions: 2.5.0-rc1
>         Environment: OS: Windows 10
> Java : Java 1.8
> Apache Ant(TM) version 1.9.14 compiled on March 12 2019
> Apache Ivy 2.5.0-rc1 - 20180412005306
>            Reporter: Janusz Dalecki
>            Priority: Major
>
> Hi,
> I am reprting this as a bug as I have published the problem on ivy forum and 
> I was asked to submit it as a possible problem in ivy.
> It is reproducible as I desribe it below:
>  
> I have an ivy.xml file that includes just one dependency like this:
> {code:java}
> <dependency org="org.glassfish.jersey.media" name="jersey-media-multipart" 
> rev="2.28"/>
> {code}
> My ivysettings.xml looks like this:
> {code:java}
> <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>
> {code}
> After I run the build.xml (below is my resolve statement extract from 
> build.xml that looks like this):
> {code:java}
> <!-- =================================
> 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>
> {code}
> ... I get this error:
> {code:java}
> [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
> {code}
> 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 .
> Kind Regards,
> Janusz



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to