针对Gradle的Jetty插件热部署

针对Gradle的Jetty插件热部署,gradle,jetty,Gradle,Jetty,我目前正在使用gradle的Jetty插件进行开发: apply plugin: 'war' apply plugin: 'jetty' ... jettyRunWar { httpPort = 8080 reload = 'automatic' scanIntervalSeconds = 2 daemon = false } jettyRun { httpPort = 8080 reload = 'automatic' scanIntervalSeconds

我目前正在使用gradle的Jetty插件进行开发:

apply plugin: 'war'
apply plugin: 'jetty'

...

jettyRunWar {
  httpPort = 8080
 reload = 'automatic'
  scanIntervalSeconds = 2
  daemon = false 
}

jettyRun {
  httpPort = 8080
  reload = 'automatic'
  scanIntervalSeconds = 2
  daemon = false 
}
但是,热部署没有按预期工作。当使用
gradle-jettyRunWar
时,插件似乎会在使用
gradle-war
时重新加载上下文,但实际上没有任何变化。当使用
gradlejettyrun
时,重新加载可以工作,但JSF不再工作:

Could not instantiate listener com.sun.faces.config.ConfigureListener: java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
AnnotationConfigurator does not found classes for annotations in /WEB-INF/classes/ . This could happen because maven jetty plugin is used (goal jetty:run). Try configure org.apache
.myfaces.annotation.SCAN_PACKAGES init parameter or use jetty:run-exploded instead.
有没有办法让这些选项中的一个发挥作用?设置上述参数只会导致更多的异常