getBaseDirectory() should return Path object.
And so, it should remove "target/classes" suffix. It's maven's working directory name.