This sample application demonstrates how to write a plugin for Hawtio v3+ as a WAR file; WAR plugins are useful when deploying Hawtio and plugins to an application server such as Jetty, WildFly, and Tomcat.
This example also uses Hawtio minimal console instead of the default war for demonstrating purposes.
Build the project:
mvn install
Then run it with Jetty locally:
mvn jetty:run
Hawtio is available at http://localhost:8080/hawtio. Check that Sample Plugin
is loaded at the navigation sidebar.
Copy the war file target/war-plugin.war
to the standalone/deployments/
directory for WildFly or the deploy/
directory for Apache Tomcat / Jetty.