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

incoherence between "m:classifier" and "source/javadoc-artefacts naming" during ivy:install from ibiblio

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: Maven Compatibility
    • Labels:
      None
    • Environment:

      Java-1.6.0_35, Ant-1.8.3, Ivy-2.2.0, IvyDE-2.2.0.beta1-201203282058-RELEASE

      Description

      When ivy:install-ing the module org.apache.ant#ant#1.8.3, the module is fetched from "repo1.maven.org"

      The following files are downloaded:
      http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.3/ant-1.8.3.pom
      http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.3/ant-1.8.3.jar
      http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.3/ant-1.8.3-sources.jar
      http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.3/ant-1.8.3-javadoc.jar

      The following files are created in target repository
      [ivy:install] published ant to D:[...]\ivysettings/_repository/20120516-180541/org.apache.ant/ant/1.8.3/jars/ant.jar
      [ivy:install] published ant to D:[...]\ivysettings/_repository/20120516-180541/org.apache.ant/ant/1.8.3/javadocs/ant.jar
      [ivy:install] published ant to D:[...]\ivysettings/_repository/20120516-180541/org.apache.ant/ant/1.8.3/sources/ant.jar
      [ivy:install] published ivy to D:[...]\ivysettings/_repository/20120516-180541/org.apache.ant/ant/1.8.3/ivys/ivy.xml

      Noticed all jars have been renamed to "ant.jar" but the ivy file contains artifacts declaration including "m:classifier"
      <artifact name="ant" type="jar" ext="jar" conf="master"/>
      <artifact name="ant" type="source" ext="jar" conf="sources" m:classifier="sources"/>
      <artifact name="ant" type="javadoc" ext="jar" conf="javadoc" m:classifier="javadoc"/>

      The problem also occurs when using IVY from command line ANT.
      The artefact definition using m:classifier="sources" make IVY look for the file named ant-sources.jar while attempting to resolve source-typed artefact.

      Full descrition w/ logfile and testcase setup procedure here:
      http://old.nabble.com/Resolving-source-artefact-altered-by-m%3Aclassifier-td33890292.html

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              efe4dsip Emmanuel FOUCHE
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: