Project structure and package names fixed. Now it can be opened by NetBeans and compiled with maven.