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

Reply 1
Replies (2)

Re: Maven repository for apminsight api jar

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

Reply 0

Re: Re: Maven repository for apminsight api jar

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.

Reply 0