You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Yu Zhang (Jira)" <ji...@apache.org> on 2022/09/20 22:06:00 UTC

[jira] [Updated] (IVY-1639) ivy 2.5.0 throws false positive CircularDependencyException

     [ https://issues.apache.org/jira/browse/IVY-1639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yu Zhang updated IVY-1639:
--------------------------
    Description: 
When I try to use ivy 2.5.0 ivy:convertpom to convert hadoop-annotations pom file to ivy, see [https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-annotations/pom.xml]

I got CircularDependencyException, see stacktrace. There is no circular dependencies and maven can successfully built the project. ivy should handle these cases as well. 
{code:java}
at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:216)
	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:123)
	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:843)
	at org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68)
	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:860)
	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:1364)
	at org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:541)
	at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:278)
	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseOtherPom(PomModuleDescriptorParser.java:492)
	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:221)
	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:123)
	at org.apache.ivy.ant.IvyConvertPom.doExecute(IvyConvertPom.java:62)
	... 18 more
{code}

  was:
When I try to use ivy 2.5.0 ivy:convertpom to convert pom file to ivy, see [https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-annotations/pom.xml]

I got CircularDependencyException, see stacktrace. There is no circular dependencies and maven can successfully built the project. ivy should handle these cases as well. 
{code:java}
at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:216)
	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:123)
	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:843)
	at org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68)
	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:860)
	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:1364)
	at org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:541)
	at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:278)
	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseOtherPom(PomModuleDescriptorParser.java:492)
	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:221)
	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:123)
	at org.apache.ivy.ant.IvyConvertPom.doExecute(IvyConvertPom.java:62)
	... 18 more
{code}


> ivy 2.5.0 throws false positive CircularDependencyException
> -----------------------------------------------------------
>
>                 Key: IVY-1639
>                 URL: https://issues.apache.org/jira/browse/IVY-1639
>             Project: Ivy
>          Issue Type: Bug
>          Components: Maven Compatibility
>    Affects Versions: 2.5.0
>            Reporter: Yu Zhang
>            Priority: Major
>
> When I try to use ivy 2.5.0 ivy:convertpom to convert hadoop-annotations pom file to ivy, see [https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-annotations/pom.xml]
> I got CircularDependencyException, see stacktrace. There is no circular dependencies and maven can successfully built the project. ivy should handle these cases as well. 
> {code:java}
> at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:216)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:123)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:843)
> 	at org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:860)
> 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:1364)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:541)
> 	at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:278)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseOtherPom(PomModuleDescriptorParser.java:492)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:221)
> 	at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:123)
> 	at org.apache.ivy.ant.IvyConvertPom.doExecute(IvyConvertPom.java:62)
> 	... 18 more
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)