我正在使用 maven jetty 插件并且在热插拔工作时遇到问题。当我更改一个类并通过 maven 进行编译时,更改没有被拾取。
我正在使用 scanIntervalSeconds 设置,但看起来它被忽略了。
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<configuration>
<jettyXml>src/main/resources/jetty/jetty-env.xml</jettyXml>
<jvmArgs>-Xms512m -Xmx2048m -Denv.name=qa -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9191</jvmArgs>
<stopPort>9999</stopPort>
<stopKey>foo</stopKey>
<useProvidedScope>true</useProvidedScope>
<scanIntervalSeconds>5</scanIntervalSeconds>
</configuration>
</plugin>
我已经看到了一百万个这样的例子,但我使用的是 jetty:run-forked 而不是 jetty:run。这可能是问题吗?