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.
[wp_ad_camp_1]
But what if you have projects in separate directories?
You could build them one by one.
.travis.yml
You could instruct Travis CI to build/install each project. Consider this .travis.yml file.
[wp_ad_camp_2]
1 2 3 4 | language: java jdk: - oraclejdk8 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
https://travis-ci.org/Turreta/spring-rest-template-demo
[wp_ad_camp_3]