[
https://issues.apache.org/jira/browse/MSHARED-641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16049688#comment-16049688
]
Hudson commented on MSHARED-641:
--------------------------------
SUCCESS: Integrated in Jenkins build maven-shared #3736 (See
[https://builds.apache.org/job/maven-shared/3736/])
[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. (gboue:
[http://svn.apache.org/viewvc/?view=rev&rev=1798754])
* (edit)
maven-artifact-transfer/src/main/java/org/apache/maven/shared/dependencies/resolve/internal/Maven30DependencyResolver.java
> NoSuchMethodException using DependencyResolver with Maven 3.0
> -------------------------------------------------------------
>
> Key: MSHARED-641
> URL: https://issues.apache.org/jira/browse/MSHARED-641
> Project: Maven Shared Components
> Issue Type: Bug
> Components: maven-artifact-transfer
> Affects Versions: maven-artifact-transfer-0.9.1
> Reporter: Guillaume Boué
> Assignee: Guillaume Boué
> Fix For: maven-artifact-transfer-1.0.0
>
>
> The component {{Maven30DependencyResolver}}, which is used internally by
> {{DependencyResolver}} when running with Maven 3.0.x, raises a
> {{NoSuchMethodException}} when called. The stacktrace is:
> {noformat}
> Caused by: java.lang.NoSuchMethodException:
> org.apache.maven.RepositoryUtils.toDependency(org.sonatype.aether.graph.Dependency,
> org.sonatype.aether.artifact.ArtifactTypeRegistry)
> at java.lang.Class.getMethod(Class.java:1786)
> at
> org.apache.maven.shared.dependencies.resolve.internal.Invoker.invoke(Invoker.java:121)
> ... 55 more
> {noformat}
> In the method {{toDependency}}, it tries to reflectively calls the method
> {{RepositoryUtils#toDependency}}. In Maven 3.0.x, this method takes as
> parameter objects of type {{org.apache.maven.model.Dependency}} and
> {{org.sonatype.aether.artifact.ArtifactTypeRegistry}}. However, the code
> tries to look for a method taking as first parameter an object of type
> {{org.sonatype.aether.graph.Dependency}} instead. Since this method doesn't
> exist, the exception is thrown.
> This issue is similar to MSHARED-602, which targeted the
> {{DependencyCollector}}.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)