You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by decebal <de...@gmail.com> on 2018/12/18 18:45:59 UTC
Dependency with a dynamic revision
Hi,
I encounter a problem when a try to retrieve all dependencies in my project.
The error looks like:
[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 (via "-debug" flag) I see 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
The theory (see
https://ant.apache.org/ivy/history/2.3.0/ivyfile/dependency.html) says that:
"[1.0,) matches all versions greater or equal to 1.0". In my case I have
[3.112.0,4.0.0) and 3.112.0.v20180906-1121.
What is it wrong?
Other useful (probably) information:
- I use Apache Ivy version 2.4.0
- my ivi.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"/>
So, org.eclipse.ui.workbench is not declared implicit.
My ivysettings.xml (frgment) look like:
<resolvers>
<chain name="main" returnFirst="true">
<obr name="eclipse"
repoXmlFile="${ivy.settings.dir}/ivy/repo-eclipse.xml"/>
<ibiblio name="acm" root="${ivy.base.url}/libs" m2compatible="true" />
</chain>
</resolvers>
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>
If you need more information please tell me.
Thanks in advance,
Decebal
--
Sent from: http://apache-ivy.996301.n3.nabble.com/ivy-user-f3.html