Spring boot run multiple applications

Viewed 2441

I have one project with multiple modules, every module itself is spring boot application. I need to run all this applications with one command(using .bat for windows OR one maven run), how can I do it?

Project structure looking like this:

/base-app
  /auth-service
     /pom.xml - child pom
  /eureka-service
     /pom.xml
  /zuul-service
     /pom.xml
pom.xml - main pom

I can't understand at all how to do it with maven. But I tried to do it with .bat file like this:

call mvn -f eureka-service/pom.xml spring-boot:run
call mvn -f zuul/pom.xml spring-boot:run

First "call" worked fine, but second one was ignored.
I need this to fast start all my services.

2 Answers
Related