Maven: potential race condition fix