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 12:46:28 GMT
I think you will have to do a if (maven3) ... else ....
We do that for site plugin as sample.

BTW what is your use case ? a wagon listener ?

2012/6/22 Mickael Istria <mistria@redhat.com>:
> On 06/22/2012 12:50 PM, Olivier Lamy wrote:
>>
>> You talk about transfer listener ?
>
> Yes, that's what I'm talking about.
>
>> If yes see:
>> http://svn.apache.org/repos/asf/maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/ConsoleMavenTransferListener.java
>
> Seems like this is Maven3 only, and ConsoleDownloadMonitor is Maven 2
> only...
> Is there a monitor that could work for both versions of Maven, or should I
> copy-paste one directly in my plugin and use this one in order to ensure it
> is always available?
>
>
> --
> 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