开发者

How do I force Jetty's Maven plugin to close its file handles?

开发者 https://www.devze.com 2023-03-23 12:58 出处:网络
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 a

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>
0

精彩评论

暂无评论...
验证码 换一张
取 消