aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/metadata
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2013-12-09 02:46:56 +0000
committerOlivier Lamy <olamy@apache.org>2013-12-09 02:46:56 +0000
commitb256625132fefd7893b6149d1af6b6e4c77a0dd0 (patch)
treef8223392c381aff850081156d15d25dc8b0de85e /archiva-modules/metadata
parent978ab1446b07ede86c1f4e5dbc277e9b476a4c3e (diff)
downloadarchiva-b256625132fefd7893b6149d1af6b6e4c77a0dd0.tar.gz
archiva-b256625132fefd7893b6149d1af6b6e4c77a0dd0.zip
[MRM-1761] Returned URL in search result does not work for SNAPSHOTS
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1549368 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/metadata')
-rw-r--r--archiva-modules/metadata/metadata-repository-api/pom.xml4
-rw-r--r--archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryStorage.java7
2 files changed, 10 insertions, 1 deletions
diff --git a/archiva-modules/metadata/metadata-repository-api/pom.xml b/archiva-modules/metadata/metadata-repository-api/pom.xml
index 4b8e36834..0b508762c 100644
--- a/archiva-modules/metadata/metadata-repository-api/pom.xml
+++ b/archiva-modules/metadata/metadata-repository-api/pom.xml
@@ -91,7 +91,9 @@
org.apache.archiva.model,
org.apache.archiva.policies,
org.apache.archiva.repository,
- org.apache.archiva.admin.model.beans
+ org.apache.archiva.admin.model.beans,
+ org.apache.archiva.repository.layout,
+ org.apache.archiva.xml
</Import-Package>
</instructions>
</configuration>
diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryStorage.java b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryStorage.java
index d5b203778..fee01b775 100644
--- a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryStorage.java
+++ b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryStorage.java
@@ -27,6 +27,8 @@ import org.apache.archiva.metadata.repository.filter.Filter;
import org.apache.archiva.model.ArtifactReference;
import org.apache.archiva.policies.ProxyDownloadException;
import org.apache.archiva.repository.ManagedRepositoryContent;
+import org.apache.archiva.repository.layout.LayoutException;
+import org.apache.archiva.xml.XMLException;
import java.util.Collection;
@@ -70,4 +72,9 @@ public interface RepositoryStorage
* @since 2.0.0
*/
String getFilePath( String requestPath, ManagedRepository managedRepository );
+
+ String getFilePathWithVersion( final String requestPath, ManagedRepositoryContent managedRepositoryContent )
+ throws LayoutException, XMLException;
+
+
}