This blog demonstrates how to build/install maven projects in separate directories in Travis CI via GitHub.com.
One Repository, one Maven project
Normally, you would have one project in a particular GitHub repository. You could also have a single parent project with multiple child projects.
But what if you have projects in separate directories?
You could build them one by one.
You could instruct Travis CI to build/install each project. Consider this .travis.yml file.
script: cd common-dto-api && mvn install -Dmaven.compiler.target=8 -Dmaven.compiler.source=8 && cd ../com-turreta-soademo-configserver && mvn install -Dmaven.compiler.target=8 -Dmaven.compiler.source=8 && cd ../com-turreta-soademo-clientservice && mvn install -Dmaven.compiler.target=8 -Dmaven.compiler.source=8
Mvn Install Log Output
You may check the output log for this at