Hi,

In my project I encounter a problem when I try to retrieve dependencies. The
message is:

[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve]          module not found:
bundle#org.eclipse.ui.workbench;[3.112.0,4.0.0)
[ivy:retrieve]  ==== eclipse: tried
[ivy:retrieve]    [3.112.0.v20180906-1121]

If I run in debug mode (with "-debug" flag as argument) I see the below
message:

Non matching revision detected when sorting.  Dependency
bundle#org.eclipse.ui.workbench;[3.112.0,4.0.0) doesn't match
bundle#org.eclipse.ui.workbench;3.112.0.v20180906-1121

In documentation
(http://ant.apache.org/ivy/history/master/ivyfile/dependency.html) we have
this:
"[1.0,) matches all versions greater or equal to 1.0"

My question is why 3.112.0.v20180906-1121 is not matched with
[3.112.0,4.0.0), what can I do to resolve the problem?

Other useful information:
- Ivy version 2.4.0
- "org.eclipse.ui.workbench" is a transitive dependency, my ivy.xml
(fragment) looks like:


<dependency org="bundle" name="org.eclipse.core.resources"
rev="latest.integration" conf="eclipse-runtime" transitive="false"/>
<dependency org="bundle" name="org.eclipse.core.jobs"
rev="latest.integration" conf="eclipse-runtime" transitive="false"/>
<dependency org="bundle" name="org.eclipse.equinox.common"
rev="latest.integration" conf="eclipse-runtime" transitive="false"/>


<dependency org="bundle" name="org.eclipse.team.cvs.core"
rev="latest.integration" conf="eclipse"/>
<dependency org="bundle" name="org.eclipse.compare" rev="latest.integration"
conf="eclipse"/>
<dependency org="bundle" name="org.eclipse.swt.win32.win32.x86_64"
rev="latest.integration" conf="eclipse"/>

My ivysettings (fragment) looks like:

<chain name="main" returnFirst="true">
    <obr name="eclipse"
repoXmlFile="${ivy.settings.dir}/ivy/repo-eclipse.xml"/>
    <ibiblio name="acme" root="${ivy.base.url}/libs" m2compatible="true" />
</chain>

where "${ivy.base.url}" is a property with value
http://acme.com/artifactory.

My build.xml (fragment) looks like:

<target name="ivy.update" depends="ivy.install, ivy.buildobr"
description="Download project dependencies">
    <ivy:settings file="ivysettings.xml" />
    <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]" type="jar"
sync="true"/>
</target>

<target name="ivy.buildobr" depends="ivy.install">
    
    <ivy:buildobr baseDir="${eclipse.home}"
out="${ivy.dir}/repo-eclipse.xml" indent="true"/>
</target>

The build script is used to build an Eclipse plugin.

If you need more information please let me know.

Thanks in advance,
Decebal




--
Sent from: http://apache-ivy.996301.n3.nabble.com/ivy-user-f3.html

Reply via email to