Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-596

Support for getting local metadata for RepositoryManager

    XMLWordPrintableJSON

Details

    Description

      The current RepositoryManager can only get the path to local artifacts, and not local metadata. The patch attached adds this support, with a new getPathForLocalMetadata method.

      This method delegates to the Maven 3.0 or Maven 3.1 implementation using Sonatype Aether or Eclipse Aether accordingly. In the special case of ProjectArtifactMetadata, which isn't a metadata in Aether, this method calls "getPathForLocalArtifact" by giving it the coordinate of the POM artifact.

      I tested this with Maven 3.0.5, 3.3.9 and latest 3.4.0-SNAPSHOT, and it behaves correctly. Can I have a review of this patch? This addition would allow to simplify the current DefaultProjectInstaller, by having a single point of entry through the RepositoryManager to set the local repository.

      Also, is there a replacement for the deprecated ArtifactMetadata? Thanks.

      Attachments

        1. MSHARED-596-patch.txt
          8 kB
          Guillaume Boué

        Activity

          People

            gboue Guillaume Boué
            gboue Guillaume Boué
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: