Hi Eugene,

Maybe let me elaborate on my situation: It is because there are some 
time consuming source generation tasks in my POM.  In case 
m2eclipse invokes process-resources, those source generation will 
be triggered and cause eclipse works slow.  Those source generation
can in fact omitted in eclipse.  Those generation is in fact defined in
a 
profile which will be activated when certain properties is not equals to
false.  
 (That's why the way Igor suggesting is not what I want because I am
not finding way to define global properties)

I'd rather not make another profile to deactivate that source generating
profile, as it makes the POM harder to maintain.

In fact I tried to put -Dprop=value at the "Goals to invoke on resource
change"
and it *seems* working (by comparing the time of workspace building when
I change certain resource file), but I am not sure if it is the right
way to do.

Adrian



-----Original Message-----
From: Eugene Kuleshov [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 14, 2008 10:24 PM
To: [email protected]
Subject: Re: [m2eclipse-user] Passing properties



  Also note that you can put those settings into a profile and activate 
that profile in Maven project settings. On the other hand, those goals 
meant to be invoked on a regular base, so it is unclear why property 
need to be passed every time. Can you please elaborate?

  regards,
  Eugene


Igor Fedorenko wrote:
> You can use settings.xml to define properties you need and m2e will
> use them. Please open JIRA enhancement request you if believe this is 
> not adequate.
>
> Adrian Shum wrote:
>> Dear all,
>>  
>> I am using m2eclipse 0.9.5.
>>  From what I can see under project's settings, m2eclipse is invoking
>> maven
>> for process-test-resources and process-resources
resources:testResources
>> when project is cleaned or updated.
>>  
>> Is there any way I can pass properties to maven for that?
>>  
>> i.e. instead of running  mvn process-resources 
>> resources:testResources when resource change, I would like to have 
>> mvn -DsomeProjProp=true process-resources resources:testResources to 
>> be invoked.
>>  
>> thanks
>>  
>> Adrian


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email




This email is confidential. If you are not the intended recipient, please 
delete it from your system and notify the sender immediately. Any unauthorized 
use, disclosure, dissemination or copying of this email is prohibited. Taifook 
Securities Group, its group companies and their content providers ("Parties") 
shall not be responsible for the accuracy or completeness of this email or its 
attachment, if any, which could contain virus, be corrupted, destroyed, 
incomplete, intercepted, lost or arrive late.   The Parties do not accept 
liability for any damage caused by this email.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to