Uploaded image for project: 'Archiva (Retired)'
  1. Archiva (Retired)
  2. MRM-153

when used as a maven1 proxy, Archiva should handle relocation from maven2 poms

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0-beta-2
    • None
    • None
    • Archiva as a repository proxy for maven1
    • Patch

    Description

      When a maven1 client asks for /servletapi/jars/servletapi-2.4.jar, Archiva converts path to the maven2 location of this artifact. As maven1 has no relocation support, the jar is required in the repo.
      Archiva can be more that a proxy : download the artifact POM, read relocation infos, and return the relocated jar.

      attached Patch add a new "applyRelocation" to DefaultProxyManager.
      I've tried this code with the servletapi example, but it may be bad designed as I just discovered maven / archiva APIs.

      Attachments

        1. MRM153-1.0-beta-2.patch
          6 kB
          nicolas de loof
        2. MRM153-reopened+MRM-268.patch
          87 kB
          nicolas de loof
        3. MRM153-reopened.patch
          82 kB
          nicolas de loof
        4. MRM-153.patch
          20 kB
          nicolas de loof
        5. MRM-155.patch
          8 kB
          nicolas de loof
        6. MRM-153-test.patch
          101 kB
          nicolas de loof
        7. DefaultProxyManager.java.patch
          6 kB
          nicolas de loof
        8. DefaultProxyManager.java.patch
          5 kB
          nicolas de loof
        9. patch.patch
          6 kB
          nicolas de loof

        Issue Links

          Activity

            People

              brett Brett Porter
              ndeloof nicolas de loof
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: