]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1704] Refactor to remove maven specific part from various repository/metadata...
authorOlivier Lamy <olamy@apache.org>
Mon, 29 Oct 2012 21:08:01 +0000 (21:08 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 29 Oct 2012 21:08:01 +0000 (21:08 +0000)
fix webdav module.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1403531 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webdav/pom.xml
archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java
archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/archiva/webdav/ArchivaDavResourceFactoryTest.java

index ddd26a1bcec83fb4022971707f28bb06ab904a0c..7c949713bd52a5ea5f64faae293e10757de2d69a 100644 (file)
               org.apache.archiva.repository*;version=${project.version},
               org.apache.archiva.scheduler*;version=${project.version},
               org.apache.archiva.security;version=${project.version},
+              org.apache.archiva.proxy.model;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)",
index b0b40471febf4454c18d92250c6e5da067216465..5c200275eda2c7e21713625ebd0e08fe8f409a07 100644 (file)
@@ -54,6 +54,7 @@ import org.apache.archiva.repository.ManagedRepositoryContent;
 import org.apache.archiva.repository.RepositoryContentFactory;
 import org.apache.archiva.repository.RepositoryException;
 import org.apache.archiva.repository.RepositoryNotFoundException;
+import org.apache.archiva.repository.content.legacy.LegacyPathParser;
 import org.apache.archiva.repository.content.maven2.RepositoryRequest;
 import org.apache.archiva.repository.layout.LayoutException;
 import org.apache.archiva.repository.metadata.MetadataTools;
@@ -229,6 +230,7 @@ public class ArchivaDavResourceFactory
         this.digestMd5 = plexusSisuBridge.lookup( Digester.class, "md5" );
         this.digestSha1 = plexusSisuBridge.lookup( Digester.class, "sha1" );
 
+        // TODO remove this hard dependency on maven !!
         repositoryRequest = new RepositoryRequest( new LegacyPathParser( archivaConfiguration ) );
     }
 
index 913ae597617e9fcf623dbd843e19006b734ded25..2190c195c44ba549f174f8a7abc2aa8f68f518b8 100644 (file)
@@ -35,6 +35,9 @@ import org.apache.archiva.configuration.RepositoryGroupConfiguration;
 import org.apache.archiva.proxy.DefaultRepositoryProxyConnectors;
 import org.apache.archiva.repository.ManagedRepositoryContent;
 import org.apache.archiva.repository.RepositoryContentFactory;
+import org.apache.archiva.repository.content.legacy.LegacyPathParser;
+import org.apache.archiva.repository.content.maven2.ManagedDefaultRepositoryContent;
+import org.apache.archiva.repository.content.maven2.RepositoryRequest;
 import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner;
 import org.apache.commons.io.FileUtils;
 import org.apache.jackrabbit.webdav.DavException;