You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Laurent Granié (JIRA)" <ji...@apache.org> on 2019/01/17 11:31:00 UTC
[jira] [Commented] (WAGON-492) Using Wagon component with Spring
[ https://issues.apache.org/jira/browse/WAGON-492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16744923#comment-16744923 ]
Laurent Granié commented on WAGON-492:
--------------------------------------
I manage to determine the problem.
There is a dependency in wagon-ssh to plexus-interactivity-api which depends on plexus-component-api who declare another PlexusConfiguration interface than the one I'm using in plexus-container-default.
Solution is :
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>${wagon.version}</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-api</artifactId>
</exclusion>
</exclusions>
</dependency>
> Using Wagon component with Spring
> ---------------------------------
>
> Key: WAGON-492
> URL: https://issues.apache.org/jira/browse/WAGON-492
> Project: Maven Wagon
> Issue Type: Bug
> Components: wagon-provider-api
> Affects Versions: 2.12
> Reporter: Laurent Granié
> Priority: Major
> Attachments: DownloaderBean.java, bniapi-wagon.zip
>
>
> I'm using Wagon with Spring.
> With version 2.10 it's ok. But since version 2.12 I can not load component into Spring.
> You can find my DownloaderServiceBean attached.
> The error is like :
> Unsatisfied dependency expressed through field 'downloader': Error
> creating bean with name 'downloaderBean': Invocation of init method
> failed; nested exception is java.lang.NoSuchMethodError:
> org.codehaus.plexus.configuration.PlexusConfiguration.setName(Ljava/lang/String;)V;
> nested exception is
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'downloaderBean': Invocation of init method
> failed; nested exception is java.lang.NoSuchMethodError:
> org.codehaus.plexus.configuration.PlexusConfiguration.setName(Ljava/lang/String;)V
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)