When you add your spring boot web api app to New relic for monitoring, the instructions give 3 steps:
- add lines to pom
- download newrelic.ym
- add java -javaagent:/full/path/to/newrelic.jar -jar app.jar
Its the last step we are stuck with. We assume that the pom will cause the new relic code/jar to be included in the app.jar, and be on the class path. This then begs the question
- why do we have to add newrelic jar and its path to the command line, if we already added it to the pom?
- Where do we get the path to the newrelic.jar from? This was presumably downloaded and installed by the new relic pom changes. how do we know where new relic will put it?
If we have to manually put the new relic jar somewhere in our project, why do we need to add lines to pom?
If we have to manually download the jar file:
- where do we get it from?
- where should we put it in our project? we have src/main/java and src/main/resources in our project, with nothing else other than pom files etc. Where are we supposed to put new relic jars?