Skip to main content

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

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.




Back to the top