Go to All Forums

Maven repository for apminsight api jar

Hi,

Is there a maven repository available for the apminsight-javaagent-api.jar file? I tried using the local repo method I found on https://devcenter.heroku.com/articles/local-maven-dependencies, but it isn't working with our multi-module project. Alternatively, would using my own classes for @ApmTracker annotations work?

Thanks,

Vaughn

Like (2) Reply
Replies (3)

Hello Vaughn,

Currently we haven't published our API jar in the maven public repository. We will publish them shortly.
Meanwhile, you can add our API jars to your local repository using maven-install-plugin

mvn install:install-file -Dfile=[path-to-api-jar-file] \
-DgroupId=com.manageengine.apminsight \
-DartifactId=site24x7-apminsight-java-api \
-Dversion=1.1 -Dpackaging=jar

Note: This will add the API jar to your maven local repository

References:
https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
https://stackoverflow.com/questions/4955635/how-to-add-local-jar-files-to-a-maven-project

Like (0) Reply

Thanks Adithyan. I eventually tried a submodule with the correct package and class names, but the instrumentation still doesn't get picked up. I've given up on the annotations now, since custom_instrumentation.conf works fine.

Like (0) Reply

Hello Vaughn,

We are pleased to let you know that we have published our APM Insight Java agent API in Maven central repository. Please follow our help document to add Java agent API as dependency to your Maven project.

 

Thanks

Like (0) Reply

Was this post helpful?