svn commit: r1798754 - /maven/shared/trunk/maven-artifact-transfer/src/main/java/org/apache/maven/shared/dependencies/resolve/internal/Maven30DependencyResolver.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

svn commit: r1798754 - /maven/shared/trunk/maven-artifact-transfer/src/main/java/org/apache/maven/shared/dependencies/resolve/internal/Maven30DependencyResolver.java

gboue
Author: gboue
Date: Wed Jun 14 20:53:24 2017
New Revision: 1798754

URL: http://svn.apache.org/viewvc?rev=1798754&view=rev
Log:
[MSHARED-641] NoSuchMethodException using DependencyResolver with Maven 3.0

Looking for the method toDependency inside RepositoryUtils taking the correct org.apache.maven.model.Dependency instead of org.sonatype.aether.graph.Dependency.

Modified:
    maven/shared/trunk/maven-artifact-transfer/src/main/java/org/apache/maven/shared/dependencies/resolve/internal/Maven30DependencyResolver.java

Modified: maven/shared/trunk/maven-artifact-transfer/src/main/java/org/apache/maven/shared/dependencies/resolve/internal/Maven30DependencyResolver.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-artifact-transfer/src/main/java/org/apache/maven/shared/dependencies/resolve/internal/Maven30DependencyResolver.java?rev=1798754&r1=1798753&r2=1798754&view=diff
==============================================================================
--- maven/shared/trunk/maven-artifact-transfer/src/main/java/org/apache/maven/shared/dependencies/resolve/internal/Maven30DependencyResolver.java (original)
+++ maven/shared/trunk/maven-artifact-transfer/src/main/java/org/apache/maven/shared/dependencies/resolve/internal/Maven30DependencyResolver.java Wed Jun 14 20:53:24 2017
@@ -282,7 +282,7 @@ public class Maven30DependencyResolver
                                             ArtifactTypeRegistry typeRegistry )
         throws DependencyResolverException
     {
-        Class<?>[] argClasses = new Class<?>[] { Dependency.class, ArtifactTypeRegistry.class };
+        Class<?>[] argClasses = new Class<?>[] { org.apache.maven.model.Dependency.class, ArtifactTypeRegistry.class };
 
         Object[] args = new Object[] { mavenDependency, typeRegistry };
 


Loading...