PR: MNG-287

publish MD5 and SHA1 checksums with all artifacts


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163918 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-04-13 00:05:42 +00:00
parent abaa19a260
commit ce944b2a40
3 changed files with 14 additions and 1 deletions

View File

@ -16,7 +16,7 @@
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-provider-api</artifactId>
<version>1.0-alpha-2</version>
<version>1.0-alpha-3-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>

View File

@ -29,6 +29,7 @@ import org.apache.maven.wagon.Wagon;
import org.apache.maven.wagon.authentication.AuthenticationException;
import org.apache.maven.wagon.authorization.AuthorizationException;
import org.apache.maven.wagon.events.TransferListener;
import org.apache.maven.wagon.observers.ChecksumObserver;
import org.apache.maven.wagon.proxy.ProxyInfo;
import org.codehaus.plexus.PlexusConstants;
import org.codehaus.plexus.PlexusContainer;
@ -129,6 +130,10 @@ public class DefaultWagonManager
// wagon.addTransferListener( downloadMonitor );
// }
// TODO: configure these
wagon.addTransferListener( new ChecksumObserver( "MD5" ) );
wagon.addTransferListener( new ChecksumObserver( "SHA-1" ) );
try
{
wagon.connect( repository, getProxy( repository.getProtocol() ) );

View File

@ -9,6 +9,14 @@
<name>Maven MBoot</name>
<description>Tool used to bootstrap m2.</description>
<dependencies>
<!-- TODO: shouldn't be required - need latest version dependency resolution -->
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-provider-api</artifactId>
<version>1.0-alpha-3-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.codehaus.modello</groupId>
<artifactId>modello-plugin-xpp3</artifactId>