diff --git a/maven-artifact/pom.xml b/maven-artifact/pom.xml index 4294c3ca04..b51f2c6e3e 100644 --- a/maven-artifact/pom.xml +++ b/maven-artifact/pom.xml @@ -16,7 +16,7 @@ org.apache.maven.wagon wagon-provider-api - 1.0-alpha-2 + 1.0-alpha-3-SNAPSHOT org.apache.maven.wagon diff --git a/maven-artifact/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java b/maven-artifact/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java index 411c7f3505..788a97e1d8 100644 --- a/maven-artifact/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java +++ b/maven-artifact/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java @@ -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() ) ); diff --git a/maven-mboot2/pom.xml b/maven-mboot2/pom.xml index ccde5d8745..a017719686 100644 --- a/maven-mboot2/pom.xml +++ b/maven-mboot2/pom.xml @@ -9,6 +9,14 @@ Maven MBoot Tool used to bootstrap m2. + + + org.apache.maven.wagon + wagon-provider-api + 1.0-alpha-3-SNAPSHOT + runtime + + org.codehaus.modello modello-plugin-xpp3