fix maven artifact download issue when parent directory does not exist.