Workaround rare exception involving mvn: URLs when running embedded legacy tests