What was a main issue that started the Mexican War?

the Mexican army invaded Texas
the U.S. attacked and captured Mexico City
the dispute over the border between the U. S. and Mexico