I have a maven profile which starts up a Jetty server using jetty:run
.
I'm trying to find an elegant way of informing the user that they need to visit a given URL after jetty:run
has completed, e.g.
2012-03-06 10:49:14.513::INFO: Started SelectChannelConnector@0.0.0.0:8080 [INFO] Started Jetty Server [INFO] Please visit http://localhost:9321/
I've tried using a ServletContextListener
to print the message, but this happens too early and the message is lost in the log noise.
Is there a way to hook into the lifecycle of the jetty plugin in such a way as to print this message right at the end of jetty:run
?