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

Rules not properly applied to parent projects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0-RC1
    • Core
    • 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>
      

      Attachments

        Activity

          People

            maartenc Maarten Coene
            ipsi Andrew
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: