Reports showing double dependencies in certain cases
----------------------------------------------------
Key: IVY-578
URL: https://issues.apache.org/jira/browse/IVY-578
Project: Ivy
Issue Type: Bug
Components: Core
Affects Versions: 2.0.0-alpha-2
Reporter: Robert Macaulay
Just updated to ivy 2.0 alpha2. Suddenly, reports seem to be deciding to double
dependencies(and labeling them conflicts). The actual behaviour of jar
retrieval is still working well.
Here are 3 modules, 2 dependencies and our module.
Hibernate-annotations
<configurations>
<conf name="default" visibility="public"/>
<conf name="src" extends="default" visibility="public"/>
</configurations>
<dependencies>
<dependency org="extern" name="hibernate" rev="[3.2.1,)"/>
</dependencies>
Hibernate
<configurations>
<conf name="default" visibility="public"/>
<conf name="src" extends="default" visibility="public"/>
</configurations>
And finally, ours
<configurations>
<conf name="main"/>
<conf name="test" extends="main"/>
</configurations>
<dependencies>
<dependency org="extern" name="hibernate" rev="3.2.4.SP1"
conf="main->src"/>
<dependency org="extern" name="hibernate-annotations"
rev="3.3.0" conf="main->src"/>
</dependencies>
In the resulting graph and ivy reports, I'm getting hibernate-annotations
getting two dependencies on the exact same hibernate version. The resolve is
using the test config. We also have a spring dependency in our module, which
also has a hibernate depedency. It too has two dependencies on the same
hibernate version. And finally, in the report in the hibernate section, there
are 3 tables(all same version), one "required by" hibernate-annotations, one
with spring, and one with hibernate-annotations, spring, and our module. I've
included a text copy at the bottom
Will attach a html report showing this better.
--- snip from the html report
hibernate-annotations by extern resolved by 3textern-repository
Revision: 3.3.0
Status integration
Publication 20070308162010
Resolver 3textern-repository
Configurations default, src
Artifacts size 539 kB (0 kB downloaded, 539 kB in cache)
Required by
Organisation Name In Configurations Asked Revision
laredo common main 3.3.0
Dependencies
Module Revision Status Resolver Default Licenses Size
hibernate by extern 3.2.4.SP1 integration 3textern-repository
true 3655 kB
hibernate by extern 3.2.4.SP1 integration 3textern-repository
true 3655 kB searched
And here is the debug log from the section on its resolving of
hibernate-annotations
== resolving dependencies [ laredo | common | [EMAIL PROTECTED] ]->[ extern |
hibernate-annotations | 3.3.0 ] [main->src]
3textern-repository: revision in cache: [ extern |
hibernate-annotations | 3.3.0 ]
found [ extern | hibernate-annotations | 3.3.0 ] in 3textern-repository
== resolving dependencies [ laredo | common | [EMAIL PROTECTED] ]->[ extern |
hibernate-annotations | 3.3.0 ] [main->default]
== resolving dependencies [ extern | hibernate-annotations | 3.3.0 ]->[ extern
| hibernate | [3.2.1,) ] [default->*]
tried
\\yipee\tttdev\extern\ivy-repo/extern/hibernate/[3.2.1,)/ivy.xml
tried
\\yipee\tttdev\extern\ivy-repo/extern/hibernate/[revision]/ivy.xml
3textern-repository: found md file for [ extern | hibernate | [3.2.1,) ]
=>
\\yipee\tttdev\extern\ivy-repo\extern\hibernate\3.2.4.SP1\ivy.xml (3.2.4.SP1)
3textern-repository: found already resolved revision: [ extern |
hibernate | 3.2.4.SP1 ]: but it's a default one, maybe we can find a better one
3textern-repository: revision in cache: [ extern | hibernate | [3.2.1,)
]
found [ extern | hibernate | 3.2.4.SP1 ] in 3textern-repository
[3.2.4.SP1] [ extern | hibernate | [3.2.1,) ]
== resolving dependencies [ extern | hibernate-annotations | 3.3.0 ]->[ extern
| hibernate | 3.2.4.SP1 ] [default->default]
== resolving dependencies [ extern | hibernate-annotations | 3.3.0 ]->[ extern
| hibernate | 3.2.4.SP1 ] [src->default]
== resolving dependencies [ extern | hibernate-annotations | 3.3.0 ]->[ extern
| hibernate | 3.2.4.SP1 ] [src->src]
== resolving dependencies [ extern | hibernate-annotations | 3.3.0 ]->[ extern
| hibernate | 3.2.4.SP1 ] [src->default]
Finally, the report secion showing its actions for hibernate(with the artifacts
and dependencies sections trimmed)
hibernate by extern resolved by 3textern-repository
Revision: 3.2.4.SP1
Status integration
Publication 20070409183756
Resolver 3textern-repository
Configurations default, src
Artifacts size 3655 kB (0 kB downloaded, 3655 kB in cache)
Required by
Organisation Name In Configurations Asked Revision
extern hibernate-annotations default, src [3.2.1,)
Dependencies
Artifacts
Revision: 3.2.4.SP1 (icon showing the search was required)
Status integration
Publication 20070409183756
Resolver 3textern-repository
Configurations default, src
Artifacts size 3655 kB (0 kB downloaded, 3655 kB in cache)
Required by
Organisation Name In Configurations Asked Revision
extern spring-framework default, src [3.2.3,)
extern hibernate-annotations default, src [3.2.1,)
laredo common main 3.2.4.SP1
Dependencies
Artifacts
Revision: 3.2.4.SP1
Status integration
Publication 20070409183756
Resolver 3textern-repository
Configurations default, src
Artifacts size 3655 kB (0 kB downloaded, 3655 kB in cache)
Required by
Organisation Name In Configurations Asked Revision
extern spring-framework default, src [3.2.3,)
Dependencies
Artifacts
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.