How to make Maven rebuild dependent modules in project?

I have a Maven project with multiple modules with separate pom.xml in different directories. I have module A (Spring Boot Application) which depends on module B (A plain Java library).

I want to make changes in B and test it out in the application A. However I always have to rerun mvn install in B before I run the app in A (with mvn spring-boot:run) to test out changes.

Is there some way to automatically have maven rebuild dependent module of A when I run mvn spring-boot:run?...

Read More »

By: StackOverFlow - 6 days ago

Related Posts