Just to be clear, if your ServiceModule1 wants to depend on
ModelsModule, you can build it in two steps,
$ cd ModelsModule
$ mvn clean install
$ cd ..
$ cd ServiceModule1
$ mvn clean package
install in step2,
In other words, it is not mandatory that all your lib should be in maven
central. But it is mandatory that all of them should be in your local repo.
install is a goal which can install a lib to your local
Now this link
will show you how to install a test jar to your local repo.