Easy Money
Easy Money

Reputation: 527

How to run multiple maven project using Maven Jetty Plug-in in eclipse

So, what I want to do is to run multiple maven web project in eclipse using Jetty. Let say I have two projects webProjectOne and webProjectTwo. I run Jetty using follow setting1.

However, this can only run one project at a time. Is there a way to run multiple project at once?

For Example:

localhost:8080/webProjectOne
localhost:8080/webProjectTwo

Debug project using Jetty in eclipse

Upvotes: 0

Views: 298

Answers (1)

Vy Do
Vy Do

Reputation: 52774

You cannot run 2 web-app in the same port (8080)

localhost:8080/webProjectOne
localhost:8080/webProjectTwo

If you setting 2 projects has own port, you release 2 mvn jetty:run commands at 2 different directory/folder.

Read more at https://www.eclipse.org/jetty/documentation/9.4.x/jetty-maven-plugin.html

Upvotes: 1

Related Questions