I have Windows 7, Java 8, Maven and Eclipse. I\'ve created a Maven project and used almost exactly the same code as here.
It\'s just a simple \"word count\" sample.
Source: https://stackoverflow.com/a/27394808/543836