initial java trigger sample, mavenized and with travis build support.