I have a simple Java Maven project and want to use the JVM agent from Jolokia to fetch JMX values.
It works when I manually download the jolokia-jvm-1.1.5-agent.jar and add the absolute path to the java-arguments like -javaagent:/absolute/path/to/jolokia-jvm-1.1.5-agent.jar
.
As the Jolokia Download page also lists maven dependencies (jolokia-core
) I wonder if I can include this directly into my Maven build without manually downloading the JVM agent? How can I run my program with this javaagent?