fixing maven implementation to not leave around duplicate versions