[ https://issues.apache.org/jira/browse/MSHARED-596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15620151#comment-15620151 ]
Hudson commented on MSHARED-596: -------------------------------- SUCCESS: Integrated in Jenkins build maven-shared #2998 (See [https://builds.apache.org/job/maven-shared/2998/]) [MSHARED-596] Support for getting local metadata for RepositoryManager Adding method "getPathForLocalMetadata" in RepositoryManager delegating to Sonatype or Eclipse Aether depending on the Maven version. (gboue: [http://svn.apache.org/viewvc/?view=rev&rev=1767164]) * (edit) maven-artifact-transfer/src/main/java/org/apache/maven/shared/repository/RepositoryManager.java * (edit) maven-artifact-transfer/src/main/java/org/apache/maven/shared/repository/internal/DefaultRepositoryManager.java * (edit) maven-artifact-transfer/src/main/java/org/apache/maven/shared/repository/internal/Maven30RepositoryManager.java * (edit) maven-artifact-transfer/src/main/java/org/apache/maven/shared/repository/internal/Maven31RepositoryManager.java > Support for getting local metadata for RepositoryManager > -------------------------------------------------------- > > Key: MSHARED-596 > URL: https://issues.apache.org/jira/browse/MSHARED-596 > Project: Maven Shared Components > Issue Type: Improvement > Components: maven-artifact-transfer > Reporter: Guillaume Boué > Assignee: Guillaume Boué > Fix For: maven-artifact-transfer-0.9.0 > > Attachments: MSHARED-596-patch.txt > > > 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)