Teten Nugraha



IntelliJ IDEA : Running multiple project (Microservices) in one workspace

IntelliJ IDEA : Running multiple project (Microservices) in one workspace

Teten Nugraha's photo
Teten Nugraha
·Feb 13, 2020·

2 min read

I will share tips based on my experience in building system which use microservices architecture using Spring Based.

First, before I know this tips, I always do coding with multiple windows on Intellj IDEA like this.

Let say, I have 5 services, so open Intellij IDEA 5 times. And I think this way is not effective. So, Im looking for a way to make it effective.

Lets Rock …

Let say I have 6 six services :

  • Registry Service

  • Config Service

  • Zuul Service

  • Book Service

  • Log Service

  • Email Service

Step 1

Create new empty project by choosing menu File -> New -> Project and popup menu will appear, and you must choose Empty Project like this.

step 1step 1

Step 2

Fill Project Name and Project Location. click Finish and then open this project.

step 2step 2


Step 3

the next step are input one by one service into this workspace with these step.

Press menu File -> New -> Module from Existing Source and you choose let say you want to input registry service.

**Module from Existing** **Source***Module from Existing Source*

Import Module will appear, you must choose Import module from external model and choose Maven (because my project is based on maven as build tools).

import moduleimport module

and other popup will appear to set abou maven configuration and then click Next Button.

second popupsecond popup

Select Profiles : Nexus

and leave it as default and click Finish.

Repeat the steps until all of your project go into workspace. and then running all projects.

if on Intellij IDEa appear popup like this in the bottom right, you must click Show Run configurations in Services.

and look in the bottom left, there is section to inform you which services are running.

monitoring servicesmonitoring services

if you successfully following these step, it look like this.

If it was interesting or helpful to you, please do press the 👏 clap button and help others find this story too or if you wanna talk internally with me , reach me in [linktr.ee/teten_nugraha](https://linktr.ee/...

Did you find this article valuable?

Support Teten Nugraha by becoming a sponsor. Any amount is appreciated!

Learn more about Hashnode Sponsors
Share this