What command are you using to compile ?
Also, if you try to build it in the starter-pack virtual machine, you’ll have to remove some part of the pom.xml
Have a look at : Errors with HelloWorld and myDaemon (running the Starter Package) - #11 by jbm