[prev in list] [next in list] [prev in thread] [next in thread] 

List:       maven-dev
Subject:    Re: Mojo MavenProject reload
From:       Jörg_Hohwiller <joerg () j-hohwiller ! de>
Date:       2014-02-28 0:09:28
Message-ID: 530FD3B8.7000208 () j-hohwiller ! de
[Download RAW message or body]


Hi,

Do your SCM thing (e.g. switch) and then start a new maven build from 
there (e.g. via exec-maven-plugin).

Regards
   Jörg
Am 27.02.2014 04:28, schrieb Igor Fedorenko:
> No, not possible. MavenProject instances are read at the very beginning
> of the build and do not change during the build.
>
> -- 
> Regards,
> Igor
>
> On 2014-02-26, 15:10, DK wrote:
>> I'm looking for a way to refresh/reload the parent and child poms 
>> from within
>> my Mojo i.e.
>>
>>      @Component
>>      protected MavenProject project;
>>
>> This is required as part of my plugin after my Mojo switches to a 
>> different
>> SCM branch.
>>
>>
>>
>>
>>
>> -- 
>> View this message in context: 
>> http://maven.40175.n5.nabble.com/Mojo-MavenProject-reload-tp5786584.html
>> Sent from the Maven Developers mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>> For additional commands, e-mail: dev-help@maven.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org



["smime.p7s" (application/pkcs7-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic