The New Relic Java agent is available as a Maven dependency that can be automatically downloaded and installed during your project's build. This has the advantage of not having to check the agent into your project's source control and makes it easier to change versions in the future.
-
Add
newrelic-java
as a dependency. Check Maven Central for the latest version:<dependency>
com.newrelic.agent.java