You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Archie Cobbs (JIRA)" <ji...@apache.org> on 2010/09/22 22:53:33 UTC
[jira] Created: (IVY-1231) Ivy reports a bogus unresolved
dependency
Ivy reports a bogus unresolved dependency
-----------------------------------------
Key: IVY-1231
URL: https://issues.apache.org/jira/browse/IVY-1231
Project: Ivy
Issue Type: Bug
Components: Core
Affects Versions: 2.2.0-RC1
Environment: openSUSE 11.3, ant 1.7.1
Reporter: Archie Cobbs
Attachments: ivybug.zip
Ivy is complaining about an unresolved dependency which does not exist:
{noformat}
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: net.sourceforge.itext#itext;5.0.4: configuration not found in net.sourceforge.itext#itext;5.0.4: 'rtf'.
It was required from org.jaspersoft#jasperreports;3.5.3 core
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
{noformat}
There is no dependency on the "rtf" configuration in jasperreports 3.5.3 (view it's ivy.xml file [here|http://ivyroundup.googlecode.com/svn/!svn/bc/1331/trunk/repo/modules/org.jaspersoft/jasperreports/3.5.3/ivy.xml]). In fact, there is no dependency on any "rtf" configuration by any module in the whole repository.
To reproduce this bug:
# Unpack the attached ZIP file to get IVYBUG directory
# Copy {{ivy-2.2.0-rc1.jar}} into the IVYBUG directory
# From within IVYBUG, run {{ant}}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IVY-1231) Ivy reports a bogus unresolved
dependency
Posted by "Archie Cobbs (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913796#action_12913796 ]
Archie Cobbs commented on IVY-1231:
-----------------------------------
That sounds like it might have something to do with what's happening... except why would 2.1.x be evicted when it is specified explicitly in the ivy.xml dependency list?
{noformat}
<dependencies>
<dependency org="net.sourceforge.itext" name="itext" rev="2.1.7" conf="default->default"/>
<dependency org="org.jaspersoft" name="jasperreports" rev="3.5.3" conf="default->core"/>
</dependencies>
{noformat}
The itext-2.1.7 modules has no dependencies, while the jasperreports module has several, but only this one for itext:
{noformat}
<dependency org="net.sourceforge.itext" name="itext" rev="[1.3.1,)" conf="core->default"/>
{noformat}
And, jasperreports is the only module in the entire repository that depends on itext at all, so it's not the problem that one of jasperreports' other dependencies is specifying a conflict with respect to itext...
Here is the complete output:
{noformat}
bug:
[ivy:resolve] :: Ivy 2.2.0-rc1 - 20100629224905 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file = /home/archie/svn/eng/proj/e911/trunk/IVYBUG/settings.xml
[ivy:resolve] :: resolving dependencies :: foo#foo;working@ecx.dellroad.org
[ivy:resolve] confs: [default]
[ivy:resolve] found net.sourceforge.itext#itext;2.1.7 in ivyroundup
[ivy:resolve] found org.jaspersoft#jasperreports;3.5.3 in ivyroundup
[ivy:resolve] found org.apache.commons#commons-beanutils;1.8.0 in ivyroundup
[ivy:resolve] [1.8.0] org.apache.commons#commons-beanutils;1.+
[ivy:resolve] found org.apache.commons#commons-logging;1.1.1 in ivyroundup
[ivy:resolve] [1.1.1] org.apache.commons#commons-logging;[1.0,2.0[
[ivy:resolve] found org.apache.commons#commons-collections;3.2.1 in ivyroundup
[ivy:resolve] [3.2.1] org.apache.commons#commons-collections;3.+
[ivy:resolve] found org.apache.commons#commons-collections;3.2.1 in ivyroundup
[ivy:resolve] [3.2.1] org.apache.commons#commons-collections;[2.1,)
[ivy:resolve] found org.apache.commons#commons-digester;2.0 in ivyroundup
[ivy:resolve] [2.0] org.apache.commons#commons-digester;[1.7,)
[ivy:resolve] found org.apache.commons#commons-logging;1.1.1 in ivyroundup
[ivy:resolve] [1.1.1] org.apache.commons#commons-logging;1.1+
[ivy:resolve] found org.apache.commons#commons-beanutils;1.8.0 in ivyroundup
[ivy:resolve] [1.8.0] org.apache.commons#commons-beanutils;[1.7,2.0]
[ivy:resolve] found org.apache.commons#commons-logging;1.1.1 in ivyroundup
[ivy:resolve] [1.1.1] org.apache.commons#commons-logging;[1.0,)
[ivy:resolve] found net.sourceforge.itext#itext;5.0.4 in ivyroundup
[ivy:resolve] [5.0.4] net.sourceforge.itext#itext;[1.3.1,)
[ivy:resolve] :: resolution report :: resolve 603ms :: artifacts dl 6ms
[ivy:resolve] :: evicted modules:
[ivy:resolve] net.sourceforge.itext#itext;2.1.7 by [net.sourceforge.itext#itext;5.0.4] in [default]
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 7 | 5 | 0 | 1 || 6 | 0 |
---------------------------------------------------------------------
[ivy:resolve]
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: net.sourceforge.itext#itext;5.0.4: configuration not found in net.sourceforge.itext#itext;5.0.4: 'rtf'. It was required from org.jaspersoft#jasperreports;3.5.3 core
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
BUILD FAILED
/home/archie/svn/eng/proj/e911/trunk/IVYBUG/build.xml:15: impossible to resolve dependencies:
resolve failed - see output for details
{noformat}
> Ivy reports a bogus unresolved dependency
> -----------------------------------------
>
> Key: IVY-1231
> URL: https://issues.apache.org/jira/browse/IVY-1231
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.2.0-RC1
> Environment: openSUSE 11.3, ant 1.7.1
> Reporter: Archie Cobbs
> Attachments: ivybug.zip
>
>
> Ivy is complaining about an unresolved dependency which does not exist:
> {noformat}
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] :: net.sourceforge.itext#itext;5.0.4: configuration not found in net.sourceforge.itext#itext;5.0.4: 'rtf'.
> It was required from org.jaspersoft#jasperreports;3.5.3 core
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> {noformat}
> There is no dependency on the "rtf" configuration in jasperreports 3.5.3 (view it's ivy.xml file [here|http://ivyroundup.googlecode.com/svn/!svn/bc/1331/trunk/repo/modules/org.jaspersoft/jasperreports/3.5.3/ivy.xml]). In fact, there is no dependency on any "rtf" configuration by any module in the whole repository.
> To reproduce this bug:
> # Unpack the attached ZIP file to get IVYBUG directory
> # Copy {{ivy-2.2.0-rc1.jar}} into the IVYBUG directory
> # From within IVYBUG, run {{ant}}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (IVY-1231) Ivy reports a bogus unresolved
dependency
Posted by "Archie Cobbs (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Archie Cobbs updated IVY-1231:
------------------------------
Attachment: ivybug.zip
> Ivy reports a bogus unresolved dependency
> -----------------------------------------
>
> Key: IVY-1231
> URL: https://issues.apache.org/jira/browse/IVY-1231
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.2.0-RC1
> Environment: openSUSE 11.3, ant 1.7.1
> Reporter: Archie Cobbs
> Attachments: ivybug.zip
>
>
> Ivy is complaining about an unresolved dependency which does not exist:
> {noformat}
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] :: net.sourceforge.itext#itext;5.0.4: configuration not found in net.sourceforge.itext#itext;5.0.4: 'rtf'.
> It was required from org.jaspersoft#jasperreports;3.5.3 core
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> {noformat}
> There is no dependency on the "rtf" configuration in jasperreports 3.5.3 (view it's ivy.xml file [here|http://ivyroundup.googlecode.com/svn/!svn/bc/1331/trunk/repo/modules/org.jaspersoft/jasperreports/3.5.3/ivy.xml]). In fact, there is no dependency on any "rtf" configuration by any module in the whole repository.
> To reproduce this bug:
> # Unpack the attached ZIP file to get IVYBUG directory
> # Copy {{ivy-2.2.0-rc1.jar}} into the IVYBUG directory
> # From within IVYBUG, run {{ant}}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IVY-1231) Ivy reports a bogus unresolved
dependency
Posted by "Archie Cobbs (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913828#action_12913828 ]
Archie Cobbs commented on IVY-1231:
-----------------------------------
Thank you, now I understand. Sorry for the noise.
But am I the only one who thinks this behavior is insane? :-)
In other words:
# Dependency #1 says "use anything later than 1.3.1".
# Dependency #2 says "use 2.1.17".
# So ivy's answer is... 5.0.4 ??
This to me makes absolutely no sense as the _default_ behavior of ivy. It violates the [POLA|http://en.wikipedia.org/wiki/Principle_of_least_astonishment] (principle of least astonishment) in a big way.
First of all, where is the "conflict" ?... 2.1.7 is certainly greater than 1.3.1. But I see now ivy defines a conflict as any time there are two dependencies on the same module. OK, whatever.
I guess all of this can be summed up as: latest-compatible should be the default conflict manager for ivy, not latest-revision. And if that's not possible, then there should be a way to change the default conflict manager globally.. I don't see how so far from reading the docs, it just says "The current default conflict manager is the 'latest-revision' conflict manager."
> Ivy reports a bogus unresolved dependency
> -----------------------------------------
>
> Key: IVY-1231
> URL: https://issues.apache.org/jira/browse/IVY-1231
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.2.0-RC1
> Environment: openSUSE 11.3, ant 1.7.1
> Reporter: Archie Cobbs
> Attachments: ivybug.zip
>
>
> Ivy is complaining about an unresolved dependency which does not exist:
> {noformat}
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] :: net.sourceforge.itext#itext;5.0.4: configuration not found in net.sourceforge.itext#itext;5.0.4: 'rtf'.
> It was required from org.jaspersoft#jasperreports;3.5.3 core
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> {noformat}
> There is no dependency on the "rtf" configuration in jasperreports 3.5.3 (view it's ivy.xml file [here|http://ivyroundup.googlecode.com/svn/!svn/bc/1331/trunk/repo/modules/org.jaspersoft/jasperreports/3.5.3/ivy.xml]). In fact, there is no dependency on any "rtf" configuration by any module in the whole repository.
> To reproduce this bug:
> # Unpack the attached ZIP file to get IVYBUG directory
> # Copy {{ivy-2.2.0-rc1.jar}} into the IVYBUG directory
> # From within IVYBUG, run {{ant}}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IVY-1231) Ivy reports a bogus unresolved
dependency
Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913803#action_12913803 ]
Maarten Coene commented on IVY-1231:
------------------------------------
Version 2.1.7 gets evicted by the dynamic "[1.3.1,)" version, which basically says: take the latest version which is greater or equal than 1.3.1. In your repository version 5.0.4 is the latest version.
If you want to use 2.1.7 you could specify the force attribute in your ivy.xml:
{code}
<dependencies>
<dependency org="net.sourceforge.itext" name="itext" rev="2.1.7" force="true" conf="default->default"/>
<dependency org="org.jaspersoft" name="jasperreports" rev="3.5.3" conf="default->core"/>
</dependencies>
{code}
Another approach could try to use the "latest-compatible" conflictmanager instead of the "latest-revision" (which is the default).
> Ivy reports a bogus unresolved dependency
> -----------------------------------------
>
> Key: IVY-1231
> URL: https://issues.apache.org/jira/browse/IVY-1231
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.2.0-RC1
> Environment: openSUSE 11.3, ant 1.7.1
> Reporter: Archie Cobbs
> Attachments: ivybug.zip
>
>
> Ivy is complaining about an unresolved dependency which does not exist:
> {noformat}
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] :: net.sourceforge.itext#itext;5.0.4: configuration not found in net.sourceforge.itext#itext;5.0.4: 'rtf'.
> It was required from org.jaspersoft#jasperreports;3.5.3 core
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> {noformat}
> There is no dependency on the "rtf" configuration in jasperreports 3.5.3 (view it's ivy.xml file [here|http://ivyroundup.googlecode.com/svn/!svn/bc/1331/trunk/repo/modules/org.jaspersoft/jasperreports/3.5.3/ivy.xml]). In fact, there is no dependency on any "rtf" configuration by any module in the whole repository.
> To reproduce this bug:
> # Unpack the attached ZIP file to get IVYBUG directory
> # Copy {{ivy-2.2.0-rc1.jar}} into the IVYBUG directory
> # From within IVYBUG, run {{ant}}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IVY-1231) Ivy reports a bogus unresolved
dependency
Posted by "Archie Cobbs (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12914052#action_12914052 ]
Archie Cobbs commented on IVY-1231:
-----------------------------------
Yesterday I didn't know how to "change the default conflict manager globally" but digging into the docs more now I see it.
Suggestion: add this sentence to the [conflict page|http://ant.apache.org/ivy/history/trunk/ivyfile/conflict.html]:
{quote}
If no specific conflict manager is defined, a default conflict manager is used for all modules.
The current default conflict manager is the "latest-revision" conflict manager. You can change the default conflict manager in your settings file.
{quote}
OK, back to the original point... I think it would be better if the default conflict manager is changed. But that's only my opinion. It's worthwhile getting other people's opinions. I will ask on the mailing list...
In the mean time you can close this bug. If there seems to be overwhelming interest on the mailing list, I'll create a new one requesting the change and link it to this one.
Thanks.
> Ivy reports a bogus unresolved dependency
> -----------------------------------------
>
> Key: IVY-1231
> URL: https://issues.apache.org/jira/browse/IVY-1231
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.2.0-RC1
> Environment: openSUSE 11.3, ant 1.7.1
> Reporter: Archie Cobbs
> Attachments: ivybug.zip
>
>
> Ivy is complaining about an unresolved dependency which does not exist:
> {noformat}
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] :: net.sourceforge.itext#itext;5.0.4: configuration not found in net.sourceforge.itext#itext;5.0.4: 'rtf'.
> It was required from org.jaspersoft#jasperreports;3.5.3 core
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> {noformat}
> There is no dependency on the "rtf" configuration in jasperreports 3.5.3 (view it's ivy.xml file [here|http://ivyroundup.googlecode.com/svn/!svn/bc/1331/trunk/repo/modules/org.jaspersoft/jasperreports/3.5.3/ivy.xml]). In fact, there is no dependency on any "rtf" configuration by any module in the whole repository.
> To reproduce this bug:
> # Unpack the attached ZIP file to get IVYBUG directory
> # Copy {{ivy-2.2.0-rc1.jar}} into the IVYBUG directory
> # From within IVYBUG, run {{ant}}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IVY-1231) Ivy reports a bogus unresolved
dependency
Posted by "Nicolas Lalevée (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913945#action_12913945 ]
Nicolas Lalevée commented on IVY-1231:
--------------------------------------
Archie, what do you mean by "change the default conflict manager globally" ? The ivysettings.xml is not enough ?
I kind of agree of your point but we have to keep backward compatibility. Changing the default may break a lot of user environment.
> Ivy reports a bogus unresolved dependency
> -----------------------------------------
>
> Key: IVY-1231
> URL: https://issues.apache.org/jira/browse/IVY-1231
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.2.0-RC1
> Environment: openSUSE 11.3, ant 1.7.1
> Reporter: Archie Cobbs
> Attachments: ivybug.zip
>
>
> Ivy is complaining about an unresolved dependency which does not exist:
> {noformat}
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] :: net.sourceforge.itext#itext;5.0.4: configuration not found in net.sourceforge.itext#itext;5.0.4: 'rtf'.
> It was required from org.jaspersoft#jasperreports;3.5.3 core
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> {noformat}
> There is no dependency on the "rtf" configuration in jasperreports 3.5.3 (view it's ivy.xml file [here|http://ivyroundup.googlecode.com/svn/!svn/bc/1331/trunk/repo/modules/org.jaspersoft/jasperreports/3.5.3/ivy.xml]). In fact, there is no dependency on any "rtf" configuration by any module in the whole repository.
> To reproduce this bug:
> # Unpack the attached ZIP file to get IVYBUG directory
> # Copy {{ivy-2.2.0-rc1.jar}} into the IVYBUG directory
> # From within IVYBUG, run {{ant}}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IVY-1231) Ivy reports a bogus unresolved
dependency
Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-1231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913789#action_12913789 ]
Maarten Coene commented on IVY-1231:
------------------------------------
Without trying your example I guess the problem is that somewhere you have a dependency on the 'rtf'-configuration in itext-2.1.x.
This 2.1.x version is later evicted by itext-5.0.4 which doesn't contain the 'rtf' configuration.
Is this assumption correct?
> Ivy reports a bogus unresolved dependency
> -----------------------------------------
>
> Key: IVY-1231
> URL: https://issues.apache.org/jira/browse/IVY-1231
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.2.0-RC1
> Environment: openSUSE 11.3, ant 1.7.1
> Reporter: Archie Cobbs
> Attachments: ivybug.zip
>
>
> Ivy is complaining about an unresolved dependency which does not exist:
> {noformat}
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] :: UNRESOLVED DEPENDENCIES ::
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> [ivy:resolve] :: net.sourceforge.itext#itext;5.0.4: configuration not found in net.sourceforge.itext#itext;5.0.4: 'rtf'.
> It was required from org.jaspersoft#jasperreports;3.5.3 core
> [ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
> {noformat}
> There is no dependency on the "rtf" configuration in jasperreports 3.5.3 (view it's ivy.xml file [here|http://ivyroundup.googlecode.com/svn/!svn/bc/1331/trunk/repo/modules/org.jaspersoft/jasperreports/3.5.3/ivy.xml]). In fact, there is no dependency on any "rtf" configuration by any module in the whole repository.
> To reproduce this bug:
> # Unpack the attached ZIP file to get IVYBUG directory
> # Copy {{ivy-2.2.0-rc1.jar}} into the IVYBUG directory
> # From within IVYBUG, run {{ant}}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.