Ivy
  1. Ivy
  2. IVY-1186

Rules not properly applied to parent projects

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.2.0-RC1
    • Component/s: Core
    • Labels:
      None

      Description

      It seems that rules are not properly applied to parent projects when rules are applied to them. If the parent project is explicitly installed first, then there are no problems, but if they are not then something breaks.

      e.g. I have to do the following:

      <ivy:install organisation="org.apache.ws" module="xmlrpc" revision="3.0"  from="installerChain" to="local" transitive="true" overwrite="true" />
      

      Before

      <ivy:install organisation="org.apache.ws" module="xmlrpc-common" revision="3.0"  from="installerChain" to="local" transitive="true" overwrite="true" />
      

      Otherwise it fails with an error similar to

      public: bad organisation found in
      http://repo1.maven.org/maven2/org/apache/xmlrpc/xmlrpc/3.0/xmlrpc-3.0.pom:
      expected='org.apache.xmlrpc found='org.apache.ws'
      

      Given that I have the following rule:

      <rule>
      	<fromsystem>
      		<src org="(org\.apache).ws" module="xmlrpc.*" />
      		<dest org="$o1.xmlrpc" module="$m0" />
      	</fromsystem>
      	<tosystem>
      		<src org="(org\.apache)\.xmlrpc" module="xmlrpc.*" />
      		<dest org="$o1.ws" module="$m0" />
      	</tosystem>
      </rule>
      

        Activity

        Andrew created issue -
        Maarten Coene made changes -
        Field Original Value New Value
        Assignee Maarten Coene [ maartenc ]
        Maarten Coene made changes -
        Fix Version/s 2.2.0-RC1 [ 12315013 ]
        Maarten Coene made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Maarten Coene
            Reporter:
            Andrew
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development