jpathwatch is a Java library for monitoring directories for changes. It uses the host platform's native OS functions to achive this to avoid polling.
'net.sf.jpathwatch:jpathwatch:0.95'
<dependency>
<groupId>net.sf.jpathwatch</groupId>
<artifactId>jpathwatch</artifactId>
<version>0.95</version>
</dependency>
<dependency org="net.sf.jpathwatch" name="jpathwatch" rev="0.95"/>
"net.sf.jpathwatch", "jpathwatch", "0.95"