Clone the repository recursively to use MapStore2 submodule. You may have to input your credentials several times if you dont use SSH clone git clone --recursive ...