Maven plugin 4

Updating project to maven plugin version 4 and refactoring source configuration.