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

Packaging Data Parsed Incorrectly in Maven 2 POM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha-2
    • 2.0-RC1
    • Maven Compatibility
    • None

    Description

      There is still an issue with some dependencies whose extension is not specified in the default manner. The example case is when trying to fetch some camel JARs.

      When trying to get the camel-script-1.2.0 JAR, you see:

      [ivy:retrieve] ==== public: tried
      [ivy:retrieve] http://repo1.maven.org/maven2/org/apache/camel/camel-script/1.2.0/camel-script-1.2.0.bundle

      Ivy is trying to use the extension "bundle" and not JAR. This is due to the code fetching the extension from the <packaging> element of the POM. The relevant portion of the POM is here:

      <parent>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-parent</artifactId>
      <version>1.2.0</version>
      </parent>
      <artifactId>camel-script</artifactId>
      <packaging>bundle</packaging>
      <name>Camel :: Script</name>
      <description>Camel Script support</description>

      Notice the <packaging>bundle</packaging>. Looking at the POM XSD it seems like this is a valid POM.

      Attachments

        Issue Links

          Activity

            People

              maartenc Maarten Coene
              lmajewski Luke Majewski
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: