Archiva
  1. Archiva
  2. MRM-1352

Natively support Ivy repository format

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.3
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      RedHat Enterprise Linux 4
    • Number of attachments :
      2

      Description

      This is just an example. I cannot get Archiva to purge the repository at all. Group id is "atmel", artifact id is "avrasm2" and version is "2.1.39.83".

      Consumer repository-purge had an error when processing file /storage/archiva/data/continuous/atmel/avrasm2/2.1.39.83/ivy-2.1.39.83.xml:
      Invalid path to Artifact: filename format is invalid, should start with artifactId as stated in path.

      1. archiva-MRM-1352.patch
        5 kB
        Per Arnold Blaasmo
      2. archiva-MRM-1352.patch
        5 kB
        Per Arnold Blaasmo

        Activity

        Hide
        Per Arnold Blaasmo added a comment -

        Patch to support ivy medadata files.

        Show
        Per Arnold Blaasmo added a comment - Patch to support ivy medadata files.
        Hide
        Per Arnold Blaasmo added a comment -

        Well, after working on an of for a while with this and trying to make add a plugin for IVY support I decided to just make a small patch to the maven 2 plugin to support ivy metadata file that has the names 'ivy-<version>.xml' name format.

        Adding a ivy-repository plugin needs more work and changes in more fundamental parts of archiva to support different repository types other than maven.

        I hope you find it useful.

        Improvements would be:

        • Add ivy support as a separate plugin.
        • Be able to fetch meta data from the Ivy file.
        • Add property that makes it possible to have different name structure for the ivy file (see artifactory for an example).
        • Add property that makes it possible to have different name structures of the artifacts and repository layout. (see artifactory for an example)
        Show
        Per Arnold Blaasmo added a comment - Well, after working on an of for a while with this and trying to make add a plugin for IVY support I decided to just make a small patch to the maven 2 plugin to support ivy metadata file that has the names 'ivy-<version>.xml' name format. Adding a ivy-repository plugin needs more work and changes in more fundamental parts of archiva to support different repository types other than maven. I hope you find it useful. Improvements would be: Add ivy support as a separate plugin. Be able to fetch meta data from the Ivy file. Add property that makes it possible to have different name structure for the ivy file (see artifactory for an example). Add property that makes it possible to have different name structures of the artifacts and repository layout. (see artifactory for an example)
        Hide
        Per Arnold Blaasmo added a comment -

        Patch to add ivy metadata file recognition.

        Show
        Per Arnold Blaasmo added a comment - Patch to add ivy metadata file recognition.
        Hide
        Olivier Lamy added a comment -

        cool.
        Any unit tests ?

        Show
        Olivier Lamy added a comment - cool. Any unit tests ?
        Hide
        Per Arnold Blaasmo added a comment -

        No, I did not make any unit test
        But I can try to add a couple.

        Show
        Per Arnold Blaasmo added a comment - No, I did not make any unit test But I can try to add a couple.

          People

          • Assignee:
            Unassigned
            Reporter:
            Torkild U. Resheim
          • Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: