Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.5.0-rc1
-
None
-
None
-
Define an Ivy project with the following resolver:
<ibiblio name="Jcenter" namespace="canonize" m2compatible="true" usepoms="true" root="http://jcenter.bintray.com/" />
Create ivy.xml with the following dependency:
<dependency org="org.jboss" name="jboss-retro" rev="1.1.0"/>
After the running a first resolve task (and thus creating the cache), add the following namespace rules:
<namespaces> <namespace name="canonize"> <rule> <tosystem> <src org="jboss" module="javassist"/> <src org="org.jboss" module="javassist"/> <src org="javassist" module="javassist"/> <dest org="org.javassist" module="javassist"/> </tosystem> </namespace> </namespaces>
Define an Ivy project with the following resolver: <ibiblio name="Jcenter" namespace="canonize" m2compatible="true" usepoms="true" root="http://jcenter.bintray.com/" /> Create ivy.xml with the following dependency: <dependency org="org.jboss" name="jboss-retro" rev="1.1.0"/> After the running a first resolve task (and thus creating the cache), add the following namespace rules: <namespaces> <namespace name="canonize"> <rule> <tosystem> <src org="jboss" module="javassist"/> <src org="org.jboss" module="javassist"/> <src org="javassist" module="javassist"/> <dest org="org.javassist" module="javassist"/> </tosystem> </namespace> </namespaces>
Description
Ivy does not apply namespace rules to cached dependencies. Thus, making such rules "invisible", and potentially breaking builds and/or downloading duplicated dependencies.
The issue is created by the cached the ivy file at ${HOME}/.ivy2/cache/org_def/name_def/ivy-rev_def.xml. This file is created by converting from the original POM. It contains transitive dependencies with the wrong definitions that should be fixed with namespaces.
After, the namespace definition is added. However Ivy won't recreate the ivy-rev_def.xml, and will resolve the transitive dependency with the wrong namespace.
Attachments
Issue Links
- relates to
-
IVY-877 Error using namespace
-
- Open
-