maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lamy <ol...@apache.org>
Subject Re: How to re-use download monitor
Date Fri, 22 Jun 2012 13:02:50 GMT
2012/6/22 Mickael Istria <mistria@redhat.com>:
> On 06/22/2012 02:46 PM, Olivier Lamy wrote:
>>
>> I think you will have to do a if (maven3) ... else ....
>
> And how do you compile your plugin if you have different blocks in your code
> that cannot be built with the same classpath?
>
> I currently copied ConsoleDownloadMonitor from Maven 2 into my plugin to use
> it on whatever version of Maven.
>
>
>> BTW what is your use case ? a wagon listener ?
>
> Yes. It's a plugin that we use to download stuff with caching and signature
> verification, when we cannot rely on maven-dependency-plugin:
> http://code.google.com/p/maven-download-plugin/ .
> The download part currently uses Wagon, and I want to show a downlaod
> monitor.
So a wagon org.apache.maven.wagon.events.TransferListener is probably
your best friend  as it's not maven version dependant.
retrieve your wagon and add your TransferListener impl.
Makes sense ?
>
>
> --
> Mickael Istria
> Eclipse developer at JBoss, by Red Hat <http://www.jboss.org/tools>
> My blog <http://mickaelistria.wordpress.com> - My Tweets
> <http://twitter.com/mickaelistria>



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

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


Mime
View raw message