Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1187

Support Maven Relocations or ability to override dependencies when using install task

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1.0
    • None
    • Ant, Core
    • None

    Description

      Support relocations or the ability to override versions. e.g. xml-apis#xml-apis;2.0.2 has been relocated to xml-apis#xml-apis;1.0.b2, but Ivy fails, telling me to depend directly on the new version. Well, if I could, that would be awesome, but I can't because I have no choice about what revision a transitive dependency uses. So, I have to use the following rule instead:

      <rule>
      	<fromsystem>
      		<src org="org.apache.xml" module="xml-apis"/>
      		<dest org="$m0" />
      	</fromsystem>
      	<tosystem>
      		<src org="xml-apis" module="xml-apis" rev="2.0.2" />
      		<dest org="org.apache.xml" module="$m0" rev="1.0.b2" />
      	</tosystem>
      </rule>
      

      Which works, despite issue #1185 not working.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ipsi Andrew
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: