Maven Configuration for Java Agent API
Maven is a project management tool, that helps to maintain your project dependencies at ease. This makes your build process easier and simplifies dependency management.
With APM Insight Java agent API artifact available in the Maven repository, you can easily add it as a dependency to your Maven projects.
To add APM Insight Java agent API artifact as dependency to the project,
- Add the following to your pom.xml file, available in your Maven project.
- Mention the API version in the <version> tag.
- All versions of Java Agent API are available here in the Maven repository.
<dependency>
<groupId>com.site24x7.apminsight.java</groupId>
<artifactId>apminsight-javaagent-api</artifactId>
<version>API-Version</version>
<scope>compile</scope>
</dependency>
Example for a pom.xml file
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.sample.app</groupId>
<artifactId>my-sample-app</artifactId>
<version>1.0</version>
<name>My Sample Application</name>
<url>http://sample.com</url>
<dependencies>
<dependency>
<groupId>com.site24x7.apminsight.java</groupId>
<artifactId>apminsight-javaagent-api</artifactId>
<version>3.5</version>
<scope>compile</scope>
</dependency>
<dependencies>
</project>