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-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to