elastic-apm-agent
Used in
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>co.elastic.apm</groupId> <artifactId>elastic-apm-agent</artifactId> <version>1.52.1</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" 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"> <parent> <artifactId>apm-agent-parent</artifactId> <groupId>co.elastic.apm</groupId> <version>1.52.1</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>elastic-apm-agent</artifactId> <name>${project.groupId}:${project.artifactId}</name> <build> <plugins> <plugin> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <manifest> <addDefaultImplementationEntries>true</addDefaultImplementationEntries> </manifest> </archive> </configuration> </plugin> <plugin> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>generate-source-jar</id> <phase>prepare-package</phase> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>unpack-cached-lookup-key</id> <phase>prepare-package</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>${project.groupId}</groupId> <artifactId>apm-agent-cached-lookup-key</artifactId> <version>${project.version}</version> <type>jar</type> <outputDirectory>${project.basedir}/target/classes/cached-lookup-key</outputDirectory> </artifactItem> </artifactItems> </configuration> </execution> <execution> <id>unpack-agent</id> <phase>prepare-package</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>${project.groupId}</groupId> <artifactId>apm-agent</artifactId> <version>${project.version}</version> <type>jar</type> <outputDirectory>${project.basedir}/target/classes/agent</outputDirectory> </artifactItem> </artifactItems> </configuration> </execution> <execution> <id>copy-agent-sources-jar</id> <phase>prepare-package</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>${project.groupId}</groupId> <artifactId>apm-agent</artifactId> <version>${project.version}</version> <type>jar</type> <classifier>sources</classifier> <outputDirectory>${project.basedir}/target/dependency-sources</outputDirectory> </artifactItem> </artifactItems> <stripVersion>true</stripVersion> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>${project.groupId}</groupId> <artifactId>apm-agent-cached-lookup-key</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>${project.groupId}</groupId> <artifactId>apm-agent</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>${project.groupId}</groupId> <artifactId>apm-agent</artifactId> <version>${project.version}</version> <classifier>sources</classifier> </dependency> </dependencies> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>shade-cached-lookup-key</id> <phase>prepare-package</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <move> <fileset /> <mapper /> </move> </target> </configuration> </execution> <execution> <id>shade-classes</id> <phase>prepare-package</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <move> <fileset /> <mapper /> </move> <move> <fileset /> <mapper /> </move> </target> </configuration> </execution> <execution> <id>combine-sources</id> <phase>package</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <zip> <zipgroupfileset /> <zipgroupfileset /> </zip> </target> </configuration> </execution> </executions> </plugin> <plugin> <groupId>com.coderplus.maven.plugins</groupId> <artifactId>copy-rename-maven-plugin</artifactId> <executions> <execution> <id>copy-file</id> <phase>process-resources</phase> <goals> <goal>copy</goal> </goals> <configuration> <fileSets> <fileSet> <sourceFile>${apm-agent-parent.base.dir}/NOTICE</sourceFile> <destinationFile>target/classes/META-INF/NOTICE</destinationFile> </fileSet> <fileSet> <sourceFile>${apm-agent-parent.base.dir}/LICENSE</sourceFile> <destinationFile>target/classes/META-INF/LICENSE</destinationFile> </fileSet> </fileSets> </configuration> </execution> </executions> </plugin> <plugin> <groupId>io.github.git-commit-id</groupId> <artifactId>git-commit-id-maven-plugin</artifactId> <version>5.0.0</version> <executions> <execution> <id>get-the-git-infos</id> <goals> <goal>revision</goal> </goals> <configuration> <verbose>true</verbose> <failOnUnableToExtractRepoInfo>true</failOnUnableToExtractRepoInfo> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-shade-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <createSourcesJar>true</createSourcesJar> <shadeSourcesContent>true</shadeSourcesContent> <shadedArtifactAttached>false</shadedArtifactAttached> <relocations> <relocation> <pattern>co.elastic.apm.agent.common</pattern> <shadedPattern>co.elastic.apm.agent.premain.common</shadedPattern> </relocation> <relocation> <pattern>co.elastic.apm.agent.configuration</pattern> <shadedPattern>co.elastic.apm.agent.premain.configuration</shadedPattern> </relocation> </relocations> <transformers> <transformer> <manifestEntries> <Premain-Class>co.elastic.apm.agent.premain.AgentMain</Premain-Class> <Agent-Class>co.elastic.apm.agent.premain.AgentMain</Agent-Class> <SCM-Revision>${git.commit.id.abbrev}</SCM-Revision> <Can-Redefine-Classes>true</Can-Redefine-Classes> <Can-Retransform-Classes>true</Can-Retransform-Classes> <Can-Set-Native-Method-Prefix>true</Can-Set-Native-Method-Prefix> <Multi-Release>true</Multi-Release> </manifestEntries> </transformer> </transformers> </configuration> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>git-worktree</id> <properties> <os.detected.arch>x86_64</os.detected.arch> <os.detected.release.like.debian>true</os.detected.release.like.debian> <os.detected.classifier>linux-x86_64</os.detected.classifier> <os.detected.release>ubuntu</os.detected.release> <os.detected.release.version>22.04</os.detected.release.version> <os.detected.name>linux</os.detected.name> <os.detected.release.like.ubuntu>true</os.detected.release.like.ubuntu> <maven.gitcommitid.nativegit>true</maven.gitcommitid.nativegit> </properties> </profile> </profiles> <dependencies> <dependency> <groupId>org.codehaus.mojo</groupId> <artifactId>animal-sniffer-annotations</artifactId> <version>1.17</version> <scope>provided</scope> <optional>true</optional> </dependency> <dependency> <groupId>com.google.code.findbugs</groupId> <artifactId>jsr305</artifactId> <version>3.0.2</version> <scope>provided</scope> <optional>true</optional> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <version>5.9.1</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>opentest4j</artifactId> <groupId>org.opentest4j</groupId> </exclusion> <exclusion> <artifactId>junit-platform-commons</artifactId> <groupId>org.junit.platform</groupId> </exclusion> <exclusion> <artifactId>apiguardian-api</artifactId> <groupId>org.apiguardian</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>5.9.1</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>junit-platform-engine</artifactId> <groupId>org.junit.platform</groupId> </exclusion> <exclusion> <artifactId>apiguardian-api</artifactId> <groupId>org.apiguardian</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-launcher</artifactId> <version>1.9.1</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>junit-platform-engine</artifactId> <groupId>org.junit.platform</groupId> </exclusion> <exclusion> <artifactId>apiguardian-api</artifactId> <groupId>org.apiguardian</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-params</artifactId> <version>5.9.1</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>apiguardian-api</artifactId> <groupId>org.apiguardian</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.2</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>hamcrest-core</artifactId> <groupId>org.hamcrest</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.junit.vintage</groupId> <artifactId>junit-vintage-engine</artifactId> <version>5.9.1</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>junit-platform-engine</artifactId> <groupId>org.junit.platform</groupId> </exclusion> <exclusion> <artifactId>apiguardian-api</artifactId> <groupId>org.apiguardian</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.assertj</groupId> <artifactId>assertj-core</artifactId> <version>3.26.3</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>byte-buddy</artifactId> <groupId>net.bytebuddy</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <version>5.14.2</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>byte-buddy</artifactId> <groupId>net.bytebuddy</groupId> </exclusion> <exclusion> <artifactId>byte-buddy-agent</artifactId> <groupId>net.bytebuddy</groupId> </exclusion> <exclusion> <artifactId>objenesis</artifactId> <groupId>org.objenesis</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-subclass</artifactId> <version>5.14.2</version> <scope>test</scope> </dependency> <dependency> <groupId>com.networknt</groupId> <artifactId>json-schema-validator</artifactId> <version>1.5.2</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>itu</artifactId> <groupId>com.ethlo.time</groupId> </exclusion> <exclusion> <artifactId>jackson-dataformat-yaml</artifactId> <groupId>com.fasterxml.jackson.dataformat</groupId> </exclusion> <exclusion> <artifactId>slf4j-api</artifactId> <groupId>org.slf4j</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>3.12.0</version> <scope>test</scope> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.17.1</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>jackson-annotations</artifactId> <groupId>com.fasterxml.jackson.core</groupId> </exclusion> <exclusion> <artifactId>jackson-core</artifactId> <groupId>com.fasterxml.jackson.core</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>net.javacrumbs.json-unit</groupId> <artifactId>json-unit-assertj</artifactId> <version>2.38.0</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>json-unit-core</artifactId> <groupId>net.javacrumbs.json-unit</groupId> </exclusion> <exclusion> <artifactId>json-unit-json-path</artifactId> <groupId>net.javacrumbs.json-unit</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.github.tomakehurst</groupId> <artifactId>wiremock-jre8-standalone</artifactId> <version>2.35.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.awaitility</groupId> <artifactId>awaitility</artifactId> <version>4.2.2</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>hamcrest</artifactId> <groupId>org.hamcrest</groupId> </exclusion> </exclusions> </dependency> </dependencies> <properties> <apm-agent-parent.base.dir>${project.basedir}/..</apm-agent-parent.base.dir> </properties> </project>