This is how I sorted the above problem
1.) Go to Run → Run Configurations or Debug Configurations in eclipse or STS (I used STS)
2.), then a dialog box will appear in the left menu. Double click on Maven Build
3.) at the top of the right side in the Name section Text Phase Enter the Anyname you want Example: - Jetty_Server
4.) below, select Workspace overview , then select the project that you want to clear intall and start with the berth server (I think you have already added the prefix plug-in to your pom file)
5.) below in the Target text box, enter the lines below (you can use 8020 or 8065 or any port)
clean install -Djetty.port=8020 jetty:run
6.), then configure the maven runtime (choose where your maven folder is installed)
7.), then apply -> Run / Debug
Priyan at dialog
source share