fix bean name for legacy repo

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1403721 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-10-30 14:41:09 +00:00
parent 3c5f484ee7
commit 3685b508cb
2 changed files with 7 additions and 5 deletions

View File

@ -256,6 +256,7 @@
org.apache.archiva.scheduler*;version=${project.version},
org.apache.archiva.security;version=${project.version},
org.apache.archiva.proxy.model;version=${project.version},
org.apache.archiva.metadata.repository.storage;version=${project.version},
org.apache.commons.io;version="[1.4,2)",
org.apache.commons.lang;version="[2.4,3)",
org.apache.jackrabbit.util;version="[1,3)",

View File

@ -729,7 +729,8 @@ public class ArchivaDavResourceFactory
if ( artifact != null )
{
String repositoryLayout = managedRepository.getRepository().getLayout();
if ( StringUtils.equalsIgnoreCase( "default", repositoryLayout ) )
if ( StringUtils.equalsIgnoreCase( "default", repositoryLayout ) || StringUtils.equalsIgnoreCase(
"legacy", repositoryLayout ) )
{
repositoryLayout = "maven2";
}