maven-wagon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <br...@apache.org>
Subject Re: NuSuchMethodError during use of a wagon
Date Sun, 30 Mar 2008 20:45:44 GMT
No, Maven will use the Wagon API it is distributed with.

- Brett

On 31/03/2008, at 2:58 AM, delbd wrote:

> Hello,
>
> am trying to get my own wagon implementation to run (srouceforge  
> wagon). I made that wagon inherit from ftpWagon, since there is an  
> ftp phase in it, it will make my life easier. Anyway, i extended  
> FtpWagon rc1-snapshot:
>
>>
>>    <dependency>
>>      <groupId>org.apache.maven.wagon</groupId>
>>      <artifactId>wagon-ftp</artifactId>
>>      <version>1.0-rc1-SNAPSHOT</version>
>>    </dependency>
>
> And i inherited wagon provider pom:
>> <parent>
>>    <artifactId>wagon-providers</artifactId>
>>    <groupId>org.apache.maven.wagon</groupId>
>>    <version>1.0-rc1-SNAPSHOT</version>
>>  </parent>
>>
> It compiles well (mvn install without troubles).
> When i thne try to use it, i do:
>
>    <build>
>     <extensions>
>        <extension>
>           <groupId>net.sf</groupId>
>           <artifactId>wagon-sf</artifactId>
>           <version>0.0.1-SNAPSHOT</version>
>        </extension>
>     </extensions>
>  </build>
>
> But there, the troubles go, i get:
>> [ERROR] FATAL ERROR
>> [INFO]  
>> ------------------------------------------------------------------------
>> [INFO] org.apache.maven.wagon.providers.ftp.FtpWagon.getTimeout()I
>> [INFO]  
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> java.lang.NoSuchMethodError: org.apache.maven.wagon.providers.ftp.FtpWagon.getTimeout

>> ()I
>>        at org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection 
>> (FtpWagon.java:95)
>>        at  
>> org 
>> .apache.maven.wagon.providers.SfWagon.openConnection(SfWagon.java: 
>> 135)
>>        at  
>> org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
>>        at  
>> org 
>> .apache 
>> .maven 
>> .artifact 
>> .manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java: 
>> 427)
>>        at  
>> org 
>> .apache 
>> .maven 
>> .artifact 
>> .manager 
>> .DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java: 
>> 363)
>
> It looks like am using ftp wagon 1.0-rc1-snaphsot with wagon api  
> from betas, which does not have the 'timeout' attribute. Shouldn't  
> maven automatically load the correct wagon api?
>
> Any suggestions?
>
>
> Thanks :)
> David Delbecq
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wagon-dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: wagon-dev-help@maven.apache.org
>

--
Brett Porter
brett@apache.org
http://blogs.exist.com/bporter/


---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-dev-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-dev-help@maven.apache.org


Mime
View raw message