Fixed resource target path and added version to compiler plugin