restore backward compat (for project-info-reports:dependencies)

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@810402 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2009-09-02 08:01:25 +00:00
parent 5fecbde92a
commit 7ed1358995
2 changed files with 14 additions and 2 deletions

View File

@ -19,6 +19,7 @@ package org.apache.maven.artifact.manager;
* under the License.
*/
import org.apache.maven.wagon.authentication.AuthenticationInfo;
import org.codehaus.plexus.component.annotations.Component;
@Component(role=WagonManager.class)
@ -26,5 +27,10 @@ public class DefaultWagonManager
extends org.apache.maven.repository.legacy.DefaultWagonManager
implements WagonManager
{
// nothing to do
// only here for backward compat project-info-reports:dependencies
public AuthenticationInfo getAuthenticationInfo( String id )
{
// empty one to prevent NPE
return new AuthenticationInfo();
}
}

View File

@ -1,5 +1,7 @@
package org.apache.maven.artifact.manager;
import org.apache.maven.wagon.authentication.AuthenticationInfo;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@ -30,5 +32,9 @@ package org.apache.maven.artifact.manager;
public interface WagonManager
extends org.apache.maven.repository.legacy.WagonManager
{
// nothing to do
/**
* this method is only here for backward compat (project-info-reports:dependencies)
* the default implementation will return an empty AuthenticationInfo
*/
AuthenticationInfo getAuthenticationInfo( String id );
}