From: Brett Porter Date: Thu, 10 Dec 2009 04:16:11 +0000 (+0000) Subject: [MRM-1282] make artifacts load metadata on the fly from a maven2 repo X-Git-Tag: archiva-1.4-M1~1017^2~79 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2c63e15d42b6af0e69a5e2426aeb7c8c30e1af7f;p=archiva.git [MRM-1282] make artifacts load metadata on the fly from a maven2 repo git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@889083 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/tags/DownloadArtifact.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/tags/DownloadArtifact.java index cd6d769bb..1cb8f8542 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/tags/DownloadArtifact.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/tags/DownloadArtifact.java @@ -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 artifacts = new ArrayList(); for ( String repoId : getObservableRepos() ) { - artifacts.addAll( metadataRepository.getArtifacts( repoId, groupId, artifactId, version ) ); + artifacts.addAll( metadataResolver.getArtifacts( repoId, groupId, artifactId, version ) ); } if ( !artifacts.isEmpty() ) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/metadata/repository/memory/TestMetadataResolver.java b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/metadata/repository/memory/TestMetadataResolver.java index f58193a66..89698f990 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/metadata/repository/memory/TestMetadataResolver.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/test/java/org/apache/archiva/metadata/repository/memory/TestMetadataResolver.java @@ -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.emptyList(); } + public Collection 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 ) { diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/DefaultMetadataResolver.java b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/DefaultMetadataResolver.java index d189f761e..aa762a2ab 100644 --- a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/DefaultMetadataResolver.java +++ b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/DefaultMetadataResolver.java @@ -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 getArtifacts( String repoId, String namespace, String projectId, + String projectVersion ) + { + Collection artifacts = + metadataRepository.getArtifacts( repoId, namespace, projectId, projectVersion ); + Collection storageArtifacts = + storageResolver.getArtifacts( repoId, namespace, projectId, projectVersion, + new ExcludesFilter( createArtifactIdList( artifacts ) ) ); + if ( storageArtifacts != null && !storageArtifacts.isEmpty() ) + { + for ( ArtifactMetadata artifact : storageArtifacts ) + { + metadataRepository.updateArtifact( repoId, namespace, projectId, projectVersion, artifact ); + } + artifacts = new ArrayList( artifacts ); + artifacts.addAll( storageArtifacts ); + } + return artifacts; + } + + private Collection createArtifactIdList( Collection artifacts ) + { + Collection artifactIds = new ArrayList(); + for ( ArtifactMetadata artifact : artifacts ) + { + artifactIds.add( artifact.getId() ); + } + return artifactIds; + } } diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java index 6aeb13515..44354f690 100644 --- a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java +++ b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java @@ -62,7 +62,4 @@ public interface MetadataRepository List getArtifactsByDateRange( String repoId, Date startTime, Date endTime ); Collection getRepositories(); - - public Collection getArtifacts( String repoId, String namespace, String projectId, - String projectVersion ); } diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataResolver.java b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataResolver.java index d804b60fc..d677a70f1 100644 --- a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataResolver.java +++ b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataResolver.java @@ -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 getProjectVersions( String repoId, String namespace, String projectId ) throws MetadataResolverException; + + Collection getArtifacts( String repoId, String namespace, String projectId, + String projectVersion ); } diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryPathTranslator.java b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryPathTranslator.java index 196cb516f..c877ec8ec 100644 --- a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryPathTranslator.java +++ b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/RepositoryPathTranslator.java @@ -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 ); } diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/StorageMetadataResolver.java b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/StorageMetadataResolver.java index a83bb9ca1..236b97bb3 100644 --- a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/StorageMetadataResolver.java +++ b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/StorageMetadataResolver.java @@ -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 getProjects( String repoId, String namespace, Filter filter ); - Collection getProjectVersions( String repoId, String namespace, String projectId, Filter filter ); + Collection getProjectVersions( String repoId, String namespace, String projectId, Filter filter ); + + Collection getArtifacts( String repoId, String namespace, String projectId, String projectVersion, + Filter filter ); } diff --git a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolver.java b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolver.java index 8fb326104..b69063efe 100644 --- a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolver.java +++ b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolver.java @@ -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 getArtifacts( String repoId, String namespace, String projectId, + String projectVersion ) + { + return getArtifacts( repoId, namespace, projectId, projectVersion, ALL ); + } + public Collection getProjectVersions( String repoId, String namespace, String projectId, Filter filter ) { @@ -380,6 +391,51 @@ public class Maven2RepositoryMetadataResolver return files != null ? Arrays.asList( files ) : Collections.emptyList(); } + public Collection getArtifacts( String repoId, String namespace, String projectId, + String projectVersion, Filter 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 artifacts = new ArrayList(); + 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 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 filter; + + public ArtifactDirectoryFilter( Filter 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; + } + } } diff --git a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryPathTranslator.java b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryPathTranslator.java index 8d352cab9..b92debbe4 100644 --- a/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryPathTranslator.java +++ b/archiva-modules/plugins/maven2-repository/src/main/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryPathTranslator.java @@ -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(); diff --git a/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/TestMetadataResolver.java b/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/TestMetadataResolver.java index 48afc6940..f18d9c20a 100644 --- a/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/TestMetadataResolver.java +++ b/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/TestMetadataResolver.java @@ -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 getArtifacts( String repoId, String namespace, String projectId, + String projectVersion ) + { + return null; //To change body of implemented methods use File | Settings | File Templates. + } } diff --git a/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java b/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java index 99a072c01..94fd22638 100644 --- a/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java +++ b/archiva-modules/plugins/maven2-repository/src/test/java/org/apache/archiva/metadata/repository/storage/maven2/Maven2RepositoryMetadataResolverTest.java @@ -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 artifacts = new ArrayList( + resolver.getArtifacts( TEST_REPO_ID, "org.codehaus.plexus", "plexus-spring", "1.2" ) ); + assertEquals( 3, artifacts.size() ); + Collections.sort( artifacts, new Comparator() + { + 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 filter = + new ExcludesFilter( Collections.singletonList( "plexus-spring-1.2.pom" ) ); + List artifacts = new ArrayList( + resolver.getArtifacts( TEST_REPO_ID, "org.codehaus.plexus", "plexus-spring", "1.2", filter ) ); + assertEquals( 2, artifacts.size() ); + Collections.sort( artifacts, new Comparator() + { + 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 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 index 000000000..88b3bc4fc --- /dev/null +++ b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/maven-metadata.xml @@ -0,0 +1,5 @@ + + org.codehaus.plexus + plexus-spring + 1.2 + 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 index 000000000..fd9aa9a07 --- /dev/null +++ b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/maven-metadata.xml.md5 @@ -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 index 000000000..c32b761cd --- /dev/null +++ b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/maven-metadata.xml.sha1 @@ -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 index 000000000..e69de29bb 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 index 000000000..82c370486 --- /dev/null +++ b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2-sources.jar.asc @@ -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 index 000000000..e8ab5aeb5 --- /dev/null +++ b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2-sources.jar.md5 @@ -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 index 000000000..ecf8cb2f2 --- /dev/null +++ b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2-sources.jar.sha1 @@ -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 index 000000000..e69de29bb 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 index 000000000..7b1917ffc --- /dev/null +++ b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.jar.asc @@ -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 index 000000000..0d37e5eed --- /dev/null +++ b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.jar.md5 @@ -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 index 000000000..f223071cb --- /dev/null +++ b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.jar.sha1 @@ -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 index 000000000..21aedd645 --- /dev/null +++ b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom.asc @@ -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+RANGFjUpGPUjdhKlDeykNYU00s1HpSYNVl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uWPce7JnZtcr +PSD08o4PKpID8166fvnS8geOHq6nru6b+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 index 000000000..dc0830368 --- /dev/null +++ b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom.md5 @@ -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 index 000000000..c9da64c53 --- /dev/null +++ b/archiva-modules/plugins/maven2-repository/src/test/repositories/test/org/codehaus/plexus/plexus-spring/1.2/plexus-spring-1.2.pom.sha1 @@ -0,0 +1 @@ +SHA1(plexus-spring-1.2.pom)= 96b14cf880e384b2d15e8193c57b65c5420ca4c5