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

Create maven-metadata.xml in Maven repository (Nexus)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5.0
    • None
    • Maven Compatibility
    • None
      • ivy 2.4.0 or 2.5.0
      • Sonatype Nexus 3.x repo manager
      • ant 1.10

    Description

      Goal:

      Use ivy dependency management where dependency has revision "latest.integration"

       

      Problems:

      Ivy cannot find the artifact with revision "latest.integration".

       

      Cause:

      Ivy uses 2 methods to find the revision "latest.integration" depending on setting "useMavenMetadata":

      true

      ivy attempts to load the file "maven-metadata.xml" which was supposed to be generated by the client uploading the artifact (in this case: ivy!). This fails as IVY does not generate/upload the maven-metadata.xml file in the repository

      false

      ivy attempts to do a HTML listing of the directory of the artifact. This fails because in Nexus3 the HTML browsing of the repo uses another base URL than it was done in Nexus2 or the Maven Repo

       

      possible Solution:

       

      During upload of an artifact (especially SNAPSHOT) let IVY generate and upload the maven-metadata.xml as well so it can use its own logic during download to find the correct version.

       

      Further details:

       

      another developer also found this problem and created an example code to verify the behavior:

      https://github.com/dgeissl/nexus-ivy-example

       

      Attachments

        Activity

          People

            jaikiran Jaikiran Pai
            aziller Alexander Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: