How do I force Jetty's Maven plugin to close its file handles?
I am developing a web application using Maven and I am using Jetty's plugin (mvn jetty:run
) to speed up develop开发者_开发百科ment. Unfortunately, the plugin appears to keep static files open (such as JavaScript files), thus preventing me from saving subsequent changes. My only solution so far is to restart the server, but that wastes a lot of time.
How can I force Jetty's Maven plugin to release its file handles to static resources?
See http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows
<init-param>
<param-name>useFileMappedBuffer</param-name>
<param-value>true</param-value> <!-- change to false -->
</init-param>
精彩评论