Fixing maven build error due to wrong path resolution