You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by DK <de...@gmail.com> on 2014/02/26 21:10:52 UTC
Mojo MavenProject reload
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
Re: Mojo MavenProject reload
Posted by Jörg Hohwiller <jo...@j-hohwiller.de>.
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
Re: Mojo MavenProject reload
Posted by Igor Fedorenko <ig...@ifedorenko.com>.
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