I am able to successfully configure and start the embedded jetty using the jetty-maven-plugin configuration in the pom.xml like this,
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.version}</version>
<configuration>
<stopKey>webappStop</stopKey>
<stopPort>9191</stopPort>
<httpConnector>
<host>localhost</host>
<port>9090</port>
</httpConnector>
</configuration>
</plugin>
I can right click the project and run the maven goal, jetty:run
and the project start running on port 9090
,
[INFO] jetty-9.3.0.M1
[INFO] No Spring WebApplicationInitializer types detected on classpath
[INFO] Started ServerConnector@1023a4c5{HTTP/1.1,[http/1.1]}{localhost:9090}
[INFO] Started @8012ms
[INFO] Started Jetty Server
Now instead of right clicking and running the maven goal each time, I need to write an Ant task for the server start and stop commands.