Fix Maven plugin's in-process mode