]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1282] make artifacts load metadata on the fly from a maven2 repo
authorBrett Porter <brett@apache.org>
Thu, 10 Dec 2009 04:16:11 +0000 (04:16 +0000)
committerBrett Porter <brett@apache.org>
Thu, 10 Dec 2009 04:16:11 +0000 (04:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@889083 13f79535-47bb-0310-9956-ffa450edef68

25 files changed:
archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/tags/DownloadArtifact.java
archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/metadata/repository/memory/TestMetadataResolver.java
archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/DefaultMetadataResolver.java
archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java
archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataResolver.java
archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryPathTranslator.java
archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/StorageMetadataResolver.java
archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolver.java
archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryPathTranslator.java
archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/TestMetadataResolver.java
archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java
archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/maven-metadata.xml [new file with mode: 0644]
archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/maven-metadata.xml.md5 [new file with mode: 0644]
archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/maven-metadata.xml.sha1 [new file with mode: 0644]
archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2-sources.jar [new file with mode: 0644]
archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2-sources.jar.asc [new file with mode: 0644]
archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2-sources.jar.md5 [new file with mode: 0644]
archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2-sources.jar.sha1 [new file with mode: 0644]
archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.jar [new file with mode: 0644]
archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.jar.asc [new file with mode: 0644]
archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.jar.md5 [new file with mode: 0644]
archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.jar.sha1 [new file with mode: 0644]
archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom.asc [new file with mode: 0644]
archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom.md5 [new file with mode: 0644]
archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom.sha1 [new file with mode: 0644]

index cd6d769bba5e5cab6ce1c46b94ed49e9fbdc111c..1cb8f854288193bba4e28f6ffa32c3f9ef970a0e 100644 (file)
@@ -34,7 +34,7 @@ import javax.servlet.jsp.PageContext;
 import com.opensymphony.xwork2.ActionContext;
 import com.opensymphony.xwork2.util.ValueStack;
 import org.apache.archiva.metadata.model.ArtifactMetadata;
-import org.apache.archiva.metadata.repository.MetadataRepository;
+import org.apache.archiva.metadata.repository.MetadataResolver;
 import org.apache.commons.lang.StringEscapeUtils;
 import org.apache.commons.lang.StringUtils;
 import org.apache.maven.archiva.model.ArtifactReference;
@@ -57,7 +57,7 @@ public class DownloadArtifact
 
     private RepositoryContentFactory repositoryFactory;
 
-    private MetadataRepository metadataRepository;
+    private MetadataResolver metadataResolver;
 
     private HttpServletRequest req;
 
@@ -92,7 +92,7 @@ public class DownloadArtifact
         this.req = (HttpServletRequest) pageContext.getRequest();
         try
         {
-            metadataRepository = (MetadataRepository) PlexusTagUtil.lookup( pageContext, MetadataRepository.class );
+            metadataResolver = (MetadataResolver) PlexusTagUtil.lookup( pageContext, MetadataResolver.class );
             repositoryFactory =
                 (RepositoryContentFactory) PlexusTagUtil.lookup( pageContext, RepositoryContentFactory.class );
             userRepositories = (UserRepositories) PlexusTagUtil.lookup( pageContext, UserRepositories.class );
@@ -113,7 +113,7 @@ public class DownloadArtifact
             List<ArtifactMetadata> artifacts = new ArrayList<ArtifactMetadata>();
             for ( String repoId : getObservableRepos() )
             {
-                artifacts.addAll( metadataRepository.getArtifacts( repoId, groupId, artifactId, version ) );
+                artifacts.addAll( metadataResolver.getArtifacts( repoId, groupId, artifactId, version ) );
             }
 
             if ( !artifacts.isEmpty() )
index f58193a66ed08064b3b4f7e4e52bf89b603983c7..89698f990c22e431ea8bf88542bc9f426ee7d2fa 100644 (file)
@@ -27,6 +27,7 @@ import java.util.List;
 import java.util.Map;
 import java.util.Set;
 
+import org.apache.archiva.metadata.model.ArtifactMetadata;
 import org.apache.archiva.metadata.model.ProjectMetadata;
 import org.apache.archiva.metadata.model.ProjectVersionMetadata;
 import org.apache.archiva.metadata.model.ProjectVersionReference;
@@ -119,6 +120,12 @@ public class TestMetadataResolver
         return list != null ? list : Collections.<String>emptyList();
     }
 
+    public Collection<ArtifactMetadata> getArtifacts( String repoId, String namespace, String projectId,
+                                                      String projectVersion )
+    {
+        return null;  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
     public void setProjectVersion( String repoId, String namespace, String projectId,
                                    ProjectVersionMetadata versionMetadata )
     {
index d189f761e4d51ec11befc0189273e87038689817..aa762a2abdf76babc9dbe5fb43077fd274d02998 100644 (file)
@@ -22,6 +22,7 @@ package org.apache.archiva.metadata.repository;
 import java.util.ArrayList;
 import java.util.Collection;
 
+import org.apache.archiva.metadata.model.ArtifactMetadata;
 import org.apache.archiva.metadata.model.Dependency;
 import org.apache.archiva.metadata.model.ProjectMetadata;
 import org.apache.archiva.metadata.model.ProjectVersionMetadata;
@@ -187,4 +188,34 @@ public class DefaultMetadataResolver
         }
         return projectVersions;
     }
+
+    public Collection<ArtifactMetadata> getArtifacts( String repoId, String namespace, String projectId,
+                                                      String projectVersion )
+    {
+        Collection<ArtifactMetadata> artifacts =
+            metadataRepository.getArtifacts( repoId, namespace, projectId, projectVersion );
+        Collection<ArtifactMetadata> storageArtifacts =
+            storageResolver.getArtifacts( repoId, namespace, projectId, projectVersion,
+                                          new ExcludesFilter<String>( createArtifactIdList( artifacts ) ) );
+        if ( storageArtifacts != null && !storageArtifacts.isEmpty() )
+        {
+            for ( ArtifactMetadata artifact : storageArtifacts )
+            {
+                metadataRepository.updateArtifact( repoId, namespace, projectId, projectVersion, artifact );
+            }
+            artifacts = new ArrayList<ArtifactMetadata>( artifacts );
+            artifacts.addAll( storageArtifacts );
+        }
+        return artifacts;
+    }
+
+    private Collection<String> createArtifactIdList( Collection<ArtifactMetadata> artifacts )
+    {
+        Collection<String> artifactIds = new ArrayList<String>();
+        for ( ArtifactMetadata artifact : artifacts )
+        {
+            artifactIds.add( artifact.getId() );
+        }
+        return artifactIds;
+    }
 }
index 6aeb13515d0e735b9d6ca0c14ff60ea0de5f8e3f..44354f6909890a61d8b9ab3f57d7e892ad489251 100644 (file)
@@ -62,7 +62,4 @@ public interface MetadataRepository
     List<ArtifactMetadata> getArtifactsByDateRange( String repoId, Date startTime, Date endTime );
 
     Collection<String> getRepositories();
-
-    public Collection<ArtifactMetadata> getArtifacts( String repoId, String namespace, String projectId,
-                                                      String projectVersion );
 }
index d804b60fccf6a473cc45a7e7de7af13ad0490ac9..d677a70f14b343662db33492cfb8ba54828e5185 100644 (file)
@@ -21,6 +21,7 @@ package org.apache.archiva.metadata.repository;
 
 import java.util.Collection;
 
+import org.apache.archiva.metadata.model.ArtifactMetadata;
 import org.apache.archiva.metadata.model.ProjectMetadata;
 import org.apache.archiva.metadata.model.ProjectVersionMetadata;
 import org.apache.archiva.metadata.model.ProjectVersionReference;
@@ -56,4 +57,7 @@ public interface MetadataResolver
 
     Collection<String> getProjectVersions( String repoId, String namespace, String projectId )
         throws MetadataResolverException;
+
+    Collection<ArtifactMetadata> getArtifacts( String repoId, String namespace, String projectId,
+                                                      String projectVersion );
 }
index 196cb516fbffde11541b3d7b3e53ffb2ae3e5702..c877ec8ec1b0b86fd6ca01ccdaf44cfd0d42d82e 100644 (file)
@@ -30,4 +30,6 @@ public interface RepositoryPathTranslator
     File toFile( File basedir, String namespace, String projectId );
 
     File toFile( File basedir, String namespace );
+
+    File toFile( File basedir, String namespace, String projectId, String projectVersion );
 }
index a83bb9ca18489ecb7819c1983cd498a53e8f61bc..236b97bb3588476908f74c197cec3eb3ee8859d5 100644 (file)
@@ -1,10 +1,5 @@
 package org.apache.archiva.metadata.repository.storage;
 
-import java.util.Collection;
-
-import org.apache.archiva.metadata.repository.MetadataResolver;
-import org.apache.archiva.metadata.repository.filter.Filter;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -24,6 +19,12 @@ import org.apache.archiva.metadata.repository.filter.Filter;
  * under the License.
  */
 
+import java.util.Collection;
+
+import org.apache.archiva.metadata.model.ArtifactMetadata;
+import org.apache.archiva.metadata.repository.MetadataResolver;
+import org.apache.archiva.metadata.repository.filter.Filter;
+
 public interface StorageMetadataResolver
     extends MetadataResolver
 {
@@ -33,5 +34,8 @@ public interface StorageMetadataResolver
 
     Collection<String> getProjects( String repoId, String namespace, Filter<String> filter );
 
-    Collection<String> getProjectVersions( String repoId, String namespace, String projectId, Filter<String> filter );    
+    Collection<String> getProjectVersions( String repoId, String namespace, String projectId, Filter<String> filter );
+
+    Collection<ArtifactMetadata> getArtifacts( String repoId, String namespace, String projectId, String projectVersion,
+                                               Filter<String> filter );
 }
index 8fb3261046355c3a593fc8c2400362f9496c78dd..b69063efea76f8169b3cc417396376bddfc59d08 100644 (file)
@@ -21,12 +21,17 @@ package org.apache.archiva.metadata.repository.storage.maven2;
 
 import java.io.File;
 import java.io.FilenameFilter;
+import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.Collections;
+import java.util.Date;
 import java.util.List;
 
+import org.apache.archiva.checksum.ChecksumAlgorithm;
+import org.apache.archiva.checksum.ChecksummedFile;
+import org.apache.archiva.metadata.model.ArtifactMetadata;
 import org.apache.archiva.metadata.model.ProjectMetadata;
 import org.apache.archiva.metadata.model.ProjectVersionMetadata;
 import org.apache.archiva.metadata.model.ProjectVersionReference;
@@ -370,6 +375,12 @@ public class Maven2RepositoryMetadataResolver
         return getProjectVersions( repoId, namespace, projectId, ALL );
     }
 
+    public Collection<ArtifactMetadata> getArtifacts( String repoId, String namespace, String projectId,
+                                                      String projectVersion )
+    {
+        return getArtifacts( repoId, namespace, projectId, projectVersion, ALL );
+    }
+
     public Collection<String> getProjectVersions( String repoId, String namespace, String projectId,
                                                   Filter<String> filter )
     {
@@ -380,6 +391,51 @@ public class Maven2RepositoryMetadataResolver
         return files != null ? Arrays.asList( files ) : Collections.<String>emptyList();
     }
 
+    public Collection<ArtifactMetadata> getArtifacts( String repoId, String namespace, String projectId,
+                                                      String projectVersion, Filter<String> filter )
+    {
+        File dir = pathTranslator.toFile( getRepositoryBasedir( repoId ), namespace, projectId, projectVersion );
+
+        // all files that are not metadata and not a checksum / signature are considered artifacts
+        File[] files = dir.listFiles( new ArtifactDirectoryFilter( filter ) );
+
+        List<ArtifactMetadata> artifacts = new ArrayList<ArtifactMetadata>();
+        if ( files != null )
+        {
+            for ( File file : files )
+            {
+                ArtifactMetadata metadata = new ArtifactMetadata();
+                metadata.setId( file.getName() );
+                metadata.setProject( projectId );
+                metadata.setNamespace( namespace );
+                metadata.setRepositoryId( repoId );
+                metadata.setWhenGathered( new Date() );
+                metadata.setFileLastModified( file.lastModified() );
+                ChecksummedFile checksummedFile = new ChecksummedFile( file );
+                try
+                {
+                    metadata.setMd5( checksummedFile.calculateChecksum( ChecksumAlgorithm.MD5 ) );
+                }
+                catch ( IOException e )
+                {
+                    log.error( "Unable to checksum file " + file + ": " + e.getMessage() );
+                }
+                try
+                {
+                    metadata.setSha1( checksummedFile.calculateChecksum( ChecksumAlgorithm.SHA1 ) );
+                }
+                catch ( IOException e )
+                {
+                    log.error( "Unable to checksum file " + file + ": " + e.getMessage() );
+                }
+                metadata.setSize( file.length() );
+                metadata.setVersion( projectVersion );
+                artifacts.add( metadata );
+            }
+        }
+        return artifacts;
+    }
+
     private boolean isProject( File dir, Filter<String> filter )
     {
         // scan directories for a valid project version subdirectory, meaning this must be a project directory
@@ -502,4 +558,41 @@ public class Maven2RepositoryMetadataResolver
             return true;
         }
     }
+
+    private class ArtifactDirectoryFilter
+        implements FilenameFilter
+    {
+        private final Filter<String> filter;
+
+        public ArtifactDirectoryFilter( Filter<String> filter )
+        {
+            this.filter = filter;
+        }
+
+        public boolean accept( File dir, String name )
+        {
+            // TODO compare to logic in maven-repository-layer
+            if ( !filter.accept( name ) )
+            {
+                return false;
+            }
+            else if ( name.startsWith( "." ) )
+            {
+                return false;
+            }
+            else if ( name.endsWith( ".md5" ) || name.endsWith( ".sha1" ) || name.endsWith( ".asc" ) )
+            {
+                return false;
+            }
+            else if ( name.equals( METADATA_FILENAME ) )
+            {
+                return false;
+            }
+            else if ( new File( dir, name ).isDirectory() )
+            {
+                return false;
+            }
+            return true;
+        }
+    }
 }
index 8d352cab9ecae28e1545206b6b40f6e431b50f6b..b92debbe4a3df27cc3789507011e47d64862ce38 100644 (file)
@@ -38,17 +38,38 @@ public class Maven2RepositoryPathTranslator
         return new File( basedir, toPath( namespace, projectId, projectVersion, filename ) );
     }
 
+    public File toFile( File basedir, String namespace, String projectId, String projectVersion )
+    {
+        return new File( basedir, toPath( namespace, projectId, projectVersion ) );
+    }
+
     public String toPath( String namespace, String projectId, String projectVersion, String filename )
     {
         StringBuilder path = new StringBuilder();
 
-        appendNamespaceAndProject( path, namespace, projectId );
-        path.append( projectVersion ).append( PATH_SEPARATOR );
+        appendNamespaceToProjectVersion( path, namespace, projectId, projectVersion );
+        path.append( PATH_SEPARATOR );
         path.append( filename );
 
         return path.toString();
     }
 
+    private void appendNamespaceToProjectVersion( StringBuilder path, String namespace, String projectId,
+                                                  String projectVersion )
+    {
+        appendNamespaceAndProject( path, namespace, projectId );
+        path.append( projectVersion );
+    }
+
+    public String toPath( String namespace, String projectId, String projectVersion )
+    {
+        StringBuilder path = new StringBuilder();
+
+        appendNamespaceToProjectVersion( path, namespace, projectId, projectVersion );
+
+        return path.toString();
+    }
+
     public String toPath( String namespace )
     {
         StringBuilder path = new StringBuilder();
index 48afc6940526d49570037ba52670921f259b1216..f18d9c20abbbded97e021410d2f7d53c0e4e977a 100644 (file)
@@ -2,6 +2,7 @@ package org.apache.archiva.metadata.repository;
 
 import java.util.Collection;
 
+import org.apache.archiva.metadata.model.ArtifactMetadata;
 import org.apache.archiva.metadata.model.ProjectMetadata;
 import org.apache.archiva.metadata.model.ProjectVersionMetadata;
 import org.apache.archiva.metadata.model.ProjectVersionReference;
@@ -72,4 +73,10 @@ public class TestMetadataResolver
     {
         return null;  //To change body of implemented methods use File | Settings | File Templates.
     }
+
+    public Collection<ArtifactMetadata> getArtifacts( String repoId, String namespace, String projectId,
+                                                      String projectVersion )
+    {
+        return null;  //To change body of implemented methods use File | Settings | File Templates.
+    }
 }
index 99a072c0178439be511bb5e0f4bd65cdb0d87b0a..94fd226384001a55ea1aa4b7e03401299135ecce 100644 (file)
@@ -22,13 +22,16 @@ package org.apache.archiva.metadata.repository.storage.maven2;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collections;
+import java.util.Comparator;
 import java.util.List;
 
+import org.apache.archiva.metadata.model.ArtifactMetadata;
 import org.apache.archiva.metadata.model.Dependency;
 import org.apache.archiva.metadata.model.License;
 import org.apache.archiva.metadata.model.MailingList;
 import org.apache.archiva.metadata.model.ProjectVersionMetadata;
 import org.apache.archiva.metadata.repository.MetadataResolverException;
+import org.apache.archiva.metadata.repository.filter.ExcludesFilter;
 import org.apache.archiva.metadata.repository.storage.StorageMetadataResolver;
 import org.apache.maven.archiva.configuration.ArchivaConfiguration;
 import org.apache.maven.archiva.configuration.Configuration;
@@ -48,6 +51,10 @@ public class Maven2RepositoryMetadataResolverTest
 
     private static final String ASF_SCM_VIEWVC_BASE = "http://svn.apache.org/viewvc/";
 
+    private static final String EMPTY_MD5 = "d41d8cd98f00b204e9800998ecf8427e";
+
+    private static final String EMPTY_SHA1 = "da39a3ee5e6b4b0d3255bfef95601890afd80709";
+
     public void setUp()
         throws Exception
     {
@@ -292,6 +299,56 @@ public class Maven2RepositoryMetadataResolverTest
                       resolver.getProjectVersions( TEST_REPO_ID, "org.apache.maven.shared", "maven-downloader" ) );
     }
 
+    public void testGetArtifacts()
+    {
+        List<ArtifactMetadata> artifacts = new ArrayList<ArtifactMetadata>(
+            resolver.getArtifacts( TEST_REPO_ID, "org.codehaus.plexus", "plexus-spring", "1.2" ) );
+        assertEquals( 3, artifacts.size() );
+        Collections.sort( artifacts, new Comparator<ArtifactMetadata>()
+        {
+            public int compare( ArtifactMetadata o1, ArtifactMetadata o2 )
+            {
+                return o1.getId().compareTo( o2.getId() );
+            }
+        } );
+
+        assertArtifact( artifacts.get( 0 ), "plexus-spring-1.2-sources.jar", 0, EMPTY_SHA1, EMPTY_MD5 );
+        assertArtifact( artifacts.get( 1 ), "plexus-spring-1.2.jar", 0, EMPTY_SHA1, EMPTY_MD5 );
+        assertArtifact( artifacts.get( 2 ), "plexus-spring-1.2.pom", 7407, "96b14cf880e384b2d15e8193c57b65c5420ca4c5",
+                        "f83aa25f016212a551a4b2249985effc" );
+    }
+
+    public void testGetArtifactsFiltered()
+    {
+        ExcludesFilter<String> filter =
+            new ExcludesFilter<String>( Collections.singletonList( "plexus-spring-1.2.pom" ) );
+        List<ArtifactMetadata> artifacts = new ArrayList<ArtifactMetadata>(
+            resolver.getArtifacts( TEST_REPO_ID, "org.codehaus.plexus", "plexus-spring", "1.2", filter ) );
+        assertEquals( 2, artifacts.size() );
+        Collections.sort( artifacts, new Comparator<ArtifactMetadata>()
+        {
+            public int compare( ArtifactMetadata o1, ArtifactMetadata o2 )
+            {
+                return o1.getId().compareTo( o2.getId() );
+            }
+        } );
+
+        assertArtifact( artifacts.get( 0 ), "plexus-spring-1.2-sources.jar", 0, EMPTY_SHA1, EMPTY_MD5 );
+        assertArtifact( artifacts.get( 1 ), "plexus-spring-1.2.jar", 0, EMPTY_SHA1, EMPTY_MD5 );
+    }
+
+    private void assertArtifact( ArtifactMetadata artifact, String id, int size, String sha1, String md5 )
+    {
+        assertEquals( id, artifact.getId() );
+        assertEquals( md5, artifact.getMd5() );
+        assertEquals( sha1, artifact.getSha1() );
+        assertEquals( size, artifact.getSize() );
+        assertEquals( "org.codehaus.plexus", artifact.getNamespace() );
+        assertEquals( "plexus-spring", artifact.getProject() );
+        assertEquals( "1.2", artifact.getVersion() );
+        assertEquals( TEST_REPO_ID, artifact.getRepositoryId() );
+    }
+
     private void assertMailingList( MailingList mailingList, String name, String archive, String post, String subscribe,
                                     String unsubscribe, List<String> otherArchives, boolean allowPost )
     {
diff --git a/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/maven-metadata.xml b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/maven-metadata.xml
new file mode 100644 (file)
index 0000000..88b3bc4
--- /dev/null
@@ -0,0 +1,5 @@
+<metadata>
+  <groupId>org.codehaus.plexus</groupId>
+  <artifactId>plexus-spring</artifactId>
+  <version>1.2</version>
+</metadata>
diff --git a/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/maven-metadata.xml.md5 b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/maven-metadata.xml.md5
new file mode 100644 (file)
index 0000000..fd9aa9a
--- /dev/null
@@ -0,0 +1 @@
+MD5(maven-metadata.xml)= 158c9a964de51dc98f46aa98f1840d8d
diff --git a/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/maven-metadata.xml.sha1 b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/maven-metadata.xml.sha1
new file mode 100644 (file)
index 0000000..c32b761
--- /dev/null
@@ -0,0 +1 @@
+SHA1(maven-metadata.xml)= 39cde2cacfaa779b0c75ee3cccd4be6ab2cf9f5e
diff --git a/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2-sources.jar b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2-sources.jar
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2-sources.jar.asc b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2-sources.jar.asc
new file mode 100644 (file)
index 0000000..82c3704
--- /dev/null
@@ -0,0 +1,18 @@
+-----BEGIN PGP MESSAGE-----
+Version: GnuPG v1.4.10 (Darwin)
+
+owEBUwKs/ZANAwAKAeE2CIoYJL3BAcsjYh1wbGV4dXMtc3ByaW5nLTEuMi1zb3Vy
+Y2VzLmphcksgbhSJAhwEAAEKAAYFAksgbhQACgkQ4TYIihgkvcGrUxAAvXC1yZZ4
+5NthtORnTBqm1twtg8UFN00vIqjhjC3t+A4mvdblx84va7BRHv0IedHcqhjVXK0O
+sLvlVAAx+lCaoqVOq7jOVbqHJRxDh69LpS9uCRBaNX1v7/7GNzPNAK1zhGZyKckG
+uYIYEmBJAfRB5zvezfax/gUZeIbpomeRLZo26+3M4hozRvmhniZpmvWILAmkJ0fh
+hjejepc0tBSakyEE21PjLbY4GwR/hAQ3h/NXL9a5Y+NM6/Hi/q+v48q5u/3PdoKH
+KR11cCpf1BXI/BreikN3UhSojHsi36Ptv86ybFE4HFqp93y816VrRXUgYbd0Awq2
+DGLGkRg1dP/9M9mUgL+M3R0PHquKUqrNWSgnEoSSXFM6xVMumzA49dez23+x4tr1
+cTpXee/qMuQOHCe1jRSN8JWot7OFAJZ4BooyIl2sj5XO8tGKgRCQkbEcNGPWEqfh
+Cee3F2NIiB2jvyniiEFHw2XGGaqynAmp4IDzUyoNhoZ8cYXzimZRfU0qjel8P7lo
+YgxF11BxMIQgIclRn+MS8bBbumKg/MfGPI8+91x/hmC6t4SL9hj+Gk/FQGakF4+O
+EXQVQpE9823h8rzMfYKv2UR3rcJWUMfX5vDkqkjcFTMkfOd13jZVbVqZAF3OcbWY
+iX6hep/GjOPzYHbFk/RJPeZhMPqo/B6SbaI=
+=WL6S
+-----END PGP MESSAGE-----
diff --git a/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2-sources.jar.md5 b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2-sources.jar.md5
new file mode 100644 (file)
index 0000000..e8ab5ae
--- /dev/null
@@ -0,0 +1 @@
+MD5(plexus-spring-1.2-sources.jar)= d41d8cd98f00b204e9800998ecf8427e
diff --git a/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2-sources.jar.sha1 b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2-sources.jar.sha1
new file mode 100644 (file)
index 0000000..ecf8cb2
--- /dev/null
@@ -0,0 +1 @@
+SHA1(plexus-spring-1.2-sources.jar)= da39a3ee5e6b4b0d3255bfef95601890afd80709
diff --git a/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.jar b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.jar
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.jar.asc b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.jar.asc
new file mode 100644 (file)
index 0000000..7b1917f
--- /dev/null
@@ -0,0 +1,18 @@
+-----BEGIN PGP MESSAGE-----
+Version: GnuPG v1.4.10 (Darwin)
+
+owEBSwK0/ZANAwAKAeE2CIoYJL3BAcsbYhVwbGV4dXMtc3ByaW5nLTEuMi5qYXJL
+IG4LiQIcBAABCgAGBQJLIG4LAAoJEOE2CIoYJL3Bv1MQAJ6R0qCtvr8nDimYxBJ0
+7sDpYG0C9RjC1NbFskDbq514F+wRkjkqBHQ5HAhrANN7W++xmS+MIAb2FOYMIuw9
+QQ/odKwQZRBvQNNr3vJdeLO8b+Cu9m2SsToq7+SH5+PJLSoLG/7kgv/JL757mxL0
+4kHeJbbwvNC8wK8NUBZjZHL3pNRUpa7pCXCh+GMVtfZItaVX6BRQEYTyskrtnGuR
+8EDs1E3Hqdt8QycmOLVd1VYxXLAizefaVun4rWTtfWDPVnGxio+MWwTf/9JhkSCn
+UdE0+n/9jC0ICDq1t3wNqI5XMgG7/CLDY+ALXqfG8eFaM4jVF+NXu3oW/VjLhPrA
+rL5p+kahz4OTo5pqKx8NTU4vSo1L9B2EKeP5rv2/2qILmqpj8YvIvXqMmAskyrGw
+O4EJeBar/7aN6m9s1ZP7oYQANVAm/6r7GfzSXTy3QSj/OA1fkjRtQuaGQoZfHnQg
+DLcLEMhVDcqBu4ck+VaVdRa5sDxGCmsikz68qdQMY4bAuvf2HiulQNOCcPCvO83/
+TLSqlfPPlFGgouTkStCkJbXwTBjEQUBrNUPCKcs/kUwIUZbg6ziWRk8uO2sWEMYT
+JfXylgeRNcUvpWwTJwSma/05p61Enassai6y97vYDXvhpZY41XdZdg1+pOUm0+QO
+Yw55n4vJQxAeUcON2YlqKIlA
+=Ooq6
+-----END PGP MESSAGE-----
diff --git a/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.jar.md5 b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.jar.md5
new file mode 100644 (file)
index 0000000..0d37e5e
--- /dev/null
@@ -0,0 +1 @@
+MD5(plexus-spring-1.2.jar)= d41d8cd98f00b204e9800998ecf8427e
diff --git a/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.jar.sha1 b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.jar.sha1
new file mode 100644 (file)
index 0000000..f223071
--- /dev/null
@@ -0,0 +1 @@
+SHA1(plexus-spring-1.2.jar)= da39a3ee5e6b4b0d3255bfef95601890afd80709
diff --git a/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom.asc b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom.asc
new file mode 100644 (file)
index 0000000..21aedd6
--- /dev/null
@@ -0,0 +1,54 @@
+-----BEGIN PGP MESSAGE-----
+Version: GnuPG v1.4.10 (Darwin)
+
+owHNWQtwE8cZxuFRJCClPKaEAbpRzNAkvjtZ2ICFkJEfBIGxXcs2dZMOc5JW53Pv
+5XtIcnGTJpB6oCSQSQslpW3AJW2S0oR0Sso0TOpJaGg7UzJJIJlmJi8oGQJpeczQ
+QGna3buTpZPks2TjpPaMffvvf/9+/3P/3dsxbfw4Z8n7SyZvnVN6ZKDkwHxneLbE
+waSmEIokswJDlJMeUhL5tYC/6KtO8hyIQ1lhRWGFq5x0uwAUImIU8a1wtbWuIpa5
+qv1O360E4QTgXtDARqCgwCjQhCiUgdoJQUCiI+ifOVMG2g1hwEO6wVcxg8ucct2+
+XJfRI2qAp3uAIKpAUyASwiogxnIQwGQESipgBRAReYljaSECQYJVO/WFTDGkLqTD
+FCKGVRrx0+gNCY1imZyAVjGvzq//dKqq5KWoRCJB0jpqUpQZijO4FaohWFvfGKon
+EPLB99oEDioKkGG3xspI73APoCUELUKHEWCOTgBRBjQjQzSnihh6QmZVZL0yoIgx
+NUHLUJcTZRVVZsOaarFdCigyQCYDsh4tAFcgBIIhF6gJhIKhMl3K+mDr6qa2VrA+
+0NISaGwN1odAUwuobWqsC7YGmxrRaBUINHaAtcHGujIAkeXQQjApyVgHBJTFVoVR
+w4QhCC0gYqIBSpFghI2xEaSdwGg0AwEjoggRkFJAgjLPKti/CoIY1eVwLM+qtKrT
+clQjnQSB4keSxS4YUQGKNkFZ4TIdwdNxKGS6orlpHVVBunEU6pzepMIOcmO3JRbr
+fB63u5z6+rqGEHqRpwlWUFQcK+gthfUqOrFBjOiYClgMDMWhE4h4xQb3BjeZVKIu
+P1LYJyGfCip+RANGFjUpGPUjdhKlDeykNYU00s1HpSYNVlpW2RgdURHBzEcc5aKA
+hCHejFmD3UxKfzmJfj0+KjXG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o4PKpID8166fvnS8geOHq6nru6b+qPe/kWv3rrnzk7H+blvH35mJnPX7DV9
+4a+9Pj7e+9Zr/wM=
+=HMat
+-----END PGP MESSAGE-----
diff --git a/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom.md5 b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom.md5
new file mode 100644 (file)
index 0000000..dc08303
--- /dev/null
@@ -0,0 +1 @@
+MD5(plexus-spring-1.2.pom)= f83aa25f016212a551a4b2249985effc
diff --git a/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom.sha1 b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom.sha1
new file mode 100644 (file)
index 0000000..c9da64c
--- /dev/null
@@ -0,0 +1 @@
+SHA1(plexus-spring-1.2.pom)= 96b14cf880e384b2d15e8193c57b65c5420ca4c5