maven jetty plugin configuration to scan static sources (js,css,etc...)


/ Published in: XML
Save to your folder(s)

add following parts to the appropriate places in the pom.xml


Copy this code and paste it in your HTML
  1. <configuration>
  2. <!-- scan period (this effects scan period also for java class files changes) -->
  3. <scanIntervalSeconds>5</scanIntervalSeconds>
  4.  
  5. <!-- i don't know the reason for setting extraClasspath, but it should be set -->
  6. <webAppConfig>
  7. <extraClasspath>${basedir}/src/main/resources</extraClasspath>
  8. </webAppConfig>
  9.  
  10. <!-- will be scanned paths for changes by jetty additionally (here is the path where js, css, etc... are exist) -->
  11. <scanTargets>
  12. <scanTarget>src/main/webapp</scanTarget>
  13. </scanTargets>
  14.  
  15. </configuration>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.