diff options
author | Brett Porter <brett@apache.org> | 2010-03-10 04:21:54 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2010-03-10 04:21:54 +0000 |
commit | 3f9d3bac3ef9215efec0ca10c88cc217e12b025d (patch) | |
tree | ec613e3c5da6df0038f0c53bc0f2399dda67a860 /archiva-modules/archiva-base | |
parent | 780176f7f54e33b1f1b0663248fc273c1236ccf9 (diff) | |
download | archiva-3f9d3bac3ef9215efec0ca10c88cc217e12b025d.tar.gz archiva-3f9d3bac3ef9215efec0ca10c88cc217e12b025d.zip |
[MRM-1360] move type population into Maven 2 plugin
- correct problem with the instantiation of the translator in the legacy code
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@921227 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base')
-rw-r--r-- | archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/DefaultPathParser.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/DefaultPathParser.java b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/DefaultPathParser.java index b9e6c674a..abea4a6b7 100644 --- a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/DefaultPathParser.java +++ b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/DefaultPathParser.java @@ -21,12 +21,16 @@ package org.apache.maven.archiva.repository.content; import org.apache.archiva.metadata.model.ArtifactMetadata; import org.apache.archiva.metadata.repository.storage.RepositoryPathTranslator; +import org.apache.archiva.metadata.repository.storage.maven2.ArtifactMappingProvider; +import org.apache.archiva.metadata.repository.storage.maven2.DefaultArtifactMappingProvider; import org.apache.archiva.metadata.repository.storage.maven2.Maven2RepositoryPathTranslator; import org.apache.commons.lang.StringUtils; import org.apache.maven.archiva.common.utils.VersionUtil; import org.apache.maven.archiva.model.ArtifactReference; import org.apache.maven.archiva.repository.layout.LayoutException; +import java.util.Collections; + /** * DefaultPathParser is a parser for maven 2 (default layout) paths to ArtifactReference. * @@ -38,7 +42,8 @@ public class DefaultPathParser implements PathParser { private static final String INVALID_ARTIFACT_PATH = "Invalid path to Artifact: "; - private RepositoryPathTranslator pathTranslator = new Maven2RepositoryPathTranslator(); + private RepositoryPathTranslator pathTranslator = new Maven2RepositoryPathTranslator( + Collections.<ArtifactMappingProvider>singletonList( new DefaultArtifactMappingProvider() ) ); /** * {@inheritDoc} |