Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Refreshing the target directory after a build

Nope. m2e does not know about these files. And Maven does not know
either. Only maven plugin that generates the files knows about them and
that plugin needs to communicate these changes back to m2e as explained
in [1].

[1] http://wiki.eclipse.org/M2E_compatible_maven_plugins

--
Regards,
Igor

On 2013-05-02 10:34 AM, Noremac wrote:
My build process generates a few client side files (js) that should be
deployed to tomcat via the m2e-wtp plugin (such as minified js, created
through the YUICompressor maven plugin). I found that the m2e-wtp plugin needs
the target (specificially the target/m2e-wtp/web-resources directory) to be
refreshed in order for this to work as expected.

Would it make sense to have the m2e plugin refresh the target directory after
any lifecycle is run?

Since eclipse doesn't know about files updated behind it's back, surely the
m2e plugin knows that the target directory has changed. I understand that it
is a simple eclipse api call to refresh a directory
(http://wiki.eclipse.org/FAQ_When_should_I_use_refreshLocal%3F)

I doubt that this hasn't been brought up before, but I couldn't find anything.


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



Back to the top