diff --git a/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java b/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java index 5c3d3483f7..9233d7435a 100644 --- a/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java +++ b/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java @@ -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(); + } } diff --git a/maven-compat/src/main/java/org/apache/maven/artifact/manager/WagonManager.java b/maven-compat/src/main/java/org/apache/maven/artifact/manager/WagonManager.java index 37b920259b..69ddf4640a 100644 --- a/maven-compat/src/main/java/org/apache/maven/artifact/manager/WagonManager.java +++ b/maven-compat/src/main/java/org/apache/maven/artifact/manager/WagonManager.java @@ -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 ); }