[ https://issues.apache.org/jira/browse/IVY-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17284084#comment-17284084 ]
Jaikiran Pai commented on IVY-1614: ----------------------------------- Hello Björn, I forgot to reply to this the other day: >But my second example which is what I originally reported here is still valid. >The produced ivy file does not use Ivy ranges syntax. Ivy infact understands and supports the Maven version range syntax. So what you are seeing in that generated Ivy file is indeed valid Ivy syntax that it will honour. The only reason why you see the issue that you are currently seeing is because of the difference in version number comparison algorithm of Ivy and Maven (which I explained in my previous comment). In short, Ivy considers "[2.3.0,3.0.0)" and "[2.3.0,3.0.0[" one and the same. i.e. version greater than or equal to 2.3.0 and lesser than 3.0.0. I just added a testcase in the Ivy project to prove/verify this exact version range https://github.com/apache/ant-ivy/commit/2cf83cc35ab1bd8b2fa9d968e879f7b488072642/ > Ivy needs to translate Maven version ranges > ------------------------------------------- > > Key: IVY-1614 > URL: https://issues.apache.org/jira/browse/IVY-1614 > Project: Ivy > Issue Type: Bug > Affects Versions: 2.4.0 > Reporter: Björn Kautler > Assignee: Jaikiran Pai > Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > Syntax for version ranges is differing between Maven and Ivy. > If a dependency is installed from a Maven repository and installed to an Ivy > repository using the install task, the version ranges need to be translated. > For example if you install from Maven Central to some Ivy repository the > library {{org.eclipse.emf:ecore:2.3.0-v200706262000}}, then you end up with > this in your Ivy file: > {code:xml} > <dependency org="org.eclipse.emf" name="common" rev="[2.3.0,3.0.0)" > force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/> > {code} > while in Ivy syntax this should be > {code:xml} > <dependency org="org.eclipse.emf" name="common" rev="[2.3.0,3.0.0[" > force="true" conf="compile->compile(*),master(*);runtime->runtime(*)"/> > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)