the conflict became a war between the ukrainian republic and poland