maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r810402 - in /maven/components/trunk/maven-compat/src/main/java/org/apache/maven/artifact/manager: DefaultWagonManager.java WagonManager.java
Date Wed, 02 Sep 2009 08:01:26 GMT
Author: olamy
Date: Wed Sep  2 08:01:25 2009
New Revision: 810402

URL: http://svn.apache.org/viewvc?rev=810402&view=rev
Log:
restore backward compat (for project-info-reports:dependencies)

Modified:
    maven/components/trunk/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java
    maven/components/trunk/maven-compat/src/main/java/org/apache/maven/artifact/manager/WagonManager.java

Modified: maven/components/trunk/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java?rev=810402&r1=810401&r2=810402&view=diff
==============================================================================
--- maven/components/trunk/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java
(original)
+++ maven/components/trunk/maven-compat/src/main/java/org/apache/maven/artifact/manager/DefaultWagonManager.java
Wed Sep  2 08:01:25 2009
@@ -19,6 +19,7 @@
  * 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 @@
     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();
+    }
 }

Modified: maven/components/trunk/maven-compat/src/main/java/org/apache/maven/artifact/manager/WagonManager.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-compat/src/main/java/org/apache/maven/artifact/manager/WagonManager.java?rev=810402&r1=810401&r2=810402&view=diff
==============================================================================
--- maven/components/trunk/maven-compat/src/main/java/org/apache/maven/artifact/manager/WagonManager.java
(original)
+++ maven/components/trunk/maven-compat/src/main/java/org/apache/maven/artifact/manager/WagonManager.java
Wed Sep  2 08:01:25 2009
@@ -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 @@
 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 );
 }



Mime
View raw message