Thanks lgor, RespositoryListener is what I'm looking for!

*I'm trying to get maven session from m2eclipse*, and then I could add my
own repo listener into session.
but I haven't found right API to get maven session.
Do you have any suggestions?

*what I'm trying to do is:*
create a eclipse plugin to listen to local repo's changes. I think it should
work with m2eclipse,
new plugin should get m2eclipse's maven session and then add its own repo
listener into it.
Am I correct?

Regards
Simon

2011/9/14 Igor Fedorenko <[email protected]>

> Have a look at org.sonatype.aether.**RepositoryListener, this is what we
> use in m2e to track changes to the local repository. This, of course,
> does not receive events from builds running concurrently in other vms,
> but I don't have a solution for that.
>
> --
> Regards,
> Igor
>
>
> On 11-09-13 8:46 PM, Wang YunFeng wrote:
>
>> Hi, All,
>>
>> I want to listen to changes of local maven repo.
>> Then I could invoke some customized script. My question is: is there any
>> hook for maven to listen to whether maven is downloading new artifactsfrom
>> remote repo?
>>
>> Regards
>> Simon
>>
>>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> [email protected].**org<[email protected]>
> For additional commands, e-mail: [email protected]
>
>

Reply via email to