Condensation of exciton polaritons in semiconductor microcavities takes place despite in-plane disorder. Below the critical density, the inhomogeneity of the disorder limits the spatial extension of the ground state. Above the critical density, in the presence of weak disorder, this limitation is spontaneously overcome by the nonlinear interaction, resulting in an extended synchronized phase. In the case of strong disorder, several non-phase-locked condensates can be evidenced. The transition from a synchronized phase to a desynchronized phase is addressed by sampling the cavity disorder.