[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [m2e-dev] Plugin development: accessing a project's maven coordinates - CONTINUED
|
- From: Laurent PETIT <laurent.petit@xxxxxxxxx>
- Date: Tue, 17 Apr 2012 04:46:19 +0200
- Delivered-to: m2e-dev@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:in-reply-to:mime-version:date:message-id:subject:to :content-type:content-transfer-encoding; bh=uXH7sF2ba4gy0W4ViUCDM63Zyj8qirFbpd9tk9XlXDs=; b=YnVvpleErwpzmrg+hDLn7gfQSE9IimcOcLrWDM/5GJLwIyO5lv3mwT56H9Cjj5NIZM Gc1mVdvXPmLMgHPcYuMgNFczaJVFnmOmsu4aqVYuOo4RyShgtq6af456BppEX29QhECx Bc9oPE9a84iXznN+/FnWM8S4Fc1aPkDiBk1z6Cp7bVXsqg71US2S7f9sr6QneLJwTob9 0pBLS0A09Jj0Fis7yDKUQ1Y/xOT/1yM1g3RUU6ex3IQzYPuVE8hIQo+SN8k4tdLYj7md z+LNb6Lh2I/CpPcUd6dgZVuRgXjyC0SE03mlVmkCWrnShvNEQM9k1uVU+3F22ODWcbLM 6pbQ==
Le 13 avr. 2012 à 01:37, Igor Fedorenko <igor@xxxxxxxxxxxxxx> a écrit :
> You need to get new version of the facade each time you need to get
> Maven information about a project.
By the way,
Is there a way to register a listener to be informed when an m2e
project gets changes to its coordinates?
Thx in advance,
Laurent
>
> --
> Regards,
> Igor
>
> On 12-04-12 7:27 PM, Laurent PETIT wrote:
>> Thanks Igor for the quick answer. I continue my questions on the m2e-dev
>> ml, then.
>>
>> So I should use MavenPlugin.getMavenProjectRegistry().create(project,
>> monitor), which will return me an IMavenProjectFacade.
>>
>> My next question relates to the expected usage of this facade : am I
>> expected to use it and throw it away (requiring a new facade next time I
>> want to access the project's coordinates) ? Or rather should I store it
>> for future usage (and thus I imagine it would be always kept up to date
>> with the project's state by e.g. listening to proper project change
>> events) ?
>>
>> Thanks in advance,
>>
>> -- Laurent
>>
>>
>> _______________________________________________
>> m2e-dev mailing list
>> m2e-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/m2e-dev
> _______________________________________________
> m2e-dev mailing list
> m2e-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/m2e-dev