Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] launching "mvn compile" from one eclipse plugin

You almost certainly want to avoid running “mvn compile” inside Eclipse
workspace but execute individual mojos instead. As a side effect of
running "compile" or any other lifecycle phase really, many workspace
resources become out-of-sync with filesystem, which is known to cause
generated resources going missing for no apparent reason [1], endless
workspace builds and so on.

In 0.13.0 we significantly reworked m2e core to always deal with
individual mojo executions and never run lifecycle phases and almost all
aspects of what happens to a project inside Eclipse workspace can be
customised by m2e extensions, i.e. without changing the core. If can you
provide a small example project using Jspresso framework and explain
desired behaviour ("run mojo xyz whenever *.jsp file changes", for
example), we should be able to explain how to achieve this.

[1] https://issues.sonatype.org/browse/MNGECLIPSE-823

--
Regards,
Igor

On 11-03-01 04:17 PM, Maxime HAMM wrote:
Hi

I’m working on the Jspresso framework eclipse plugin (see
www.jspresso.org <http://www.jspresso.org>)

When some file are saved, in need to call a “mvn compile” for one maven
module project… can I do that by calling some M2Eclipse method ?

All suggestions are welcome.

Regards,

Maxime



_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-dev


Back to the top