title: Hot Deployment with Jetty Plugin for Gradle
body: <p>I am currently using the Jetty plugin for gradle for development:</p>
  
  <pre><code>apply plugin: 'war'
  apply plugin: 'jetty'
  
  ...
  
  jettyRunWar {
    httpPort = 8080
   reload = 'automatic'
    scanIntervalSeconds = 2
    daemon = false 
  }
  
  jettyRun {
    httpPort = 8080
    reload = 'automatic'
    scanIntervalSeconds = 2
    daemon = false 
  }
  </code></pre>
  
  <p>However, the hot deployment is not working as expected. When using <code>gradle jettyRunWar</code>, the plugin seems to reload the context when using <code>gradle war</code>, but nothing changes really. When using <code>gradle jettyRun</code>, the reloading works, but JSF is no longer working:</p>
  
  <pre><code>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.
  </code></pre>
  
  <p>Any ideas how to get one of these options to work? Setting the mentioned parameter leads just to more exceptions.</p>