I have a parent multi module maven project
1 parent - 3 children
1.core 2.rest
3.batch
Scenario: Rest is dependent on core. Batch is dependent on core.
If I build a Rest project than the dependent core project should also get build internally through pom. and similarly, If I build a Batch project than the dependent core project should also get build internally through pom in m2 folder of maven repo.
You can build by using something like
mvn clean install -pl rest -am
which will then build rest
and its dependencies, which is core
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.