mirror of https://github.com/apache/maven.git
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:
parent
5fecbde92a
commit
7ed1358995
|
@ -19,6 +19,7 @@ package org.apache.maven.artifact.manager;
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import org.apache.maven.wagon.authentication.AuthenticationInfo;
|
||||||
import org.codehaus.plexus.component.annotations.Component;
|
import org.codehaus.plexus.component.annotations.Component;
|
||||||
|
|
||||||
@Component(role=WagonManager.class)
|
@Component(role=WagonManager.class)
|
||||||
|
@ -26,5 +27,10 @@ public class DefaultWagonManager
|
||||||
extends org.apache.maven.repository.legacy.DefaultWagonManager
|
extends org.apache.maven.repository.legacy.DefaultWagonManager
|
||||||
implements WagonManager
|
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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package org.apache.maven.artifact.manager;
|
package org.apache.maven.artifact.manager;
|
||||||
|
|
||||||
|
import org.apache.maven.wagon.authentication.AuthenticationInfo;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
* or more contributor license agreements. See the NOTICE file
|
* or more contributor license agreements. See the NOTICE file
|
||||||
|
@ -30,5 +32,9 @@ package org.apache.maven.artifact.manager;
|
||||||
public interface WagonManager
|
public interface WagonManager
|
||||||
extends org.apache.maven.repository.legacy.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 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue