jmx_prometheus_javaagent
Used in
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>io.prometheus.jmx</groupId> <artifactId>jmx_prometheus_javaagent</artifactId> <version>0.20.0</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>parent</artifactId> <groupId>io.prometheus.jmx</groupId> <version>0.20.0</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>jmx_prometheus_javaagent</artifactId> <name>Prometheus JMX Exporter - Java Agent</name> <description>See https://github.com/prometheus/jmx_exporter/blob/master/README.md</description> <url>http://github.com/prometheus/jmx_exporter</url> <licenses> <license> <name>The Apache Software License, Version 2.0</name> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> <distribution>repo</distribution> </license> </licenses> <build> <plugins> <plugin> <artifactId>maven-shade-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <relocations> <relocation> <shadedPattern>io.prometheus.jmx.shaded.</shadedPattern> <includes> <include>org.yaml.**</include> <include>io.prometheus.client.**</include> </includes> </relocation> </relocations> <transformers> <transformer> <manifestEntries> <Premain-Class>io.prometheus.jmx.JavaAgent</Premain-Class> <Agent-Class>io.prometheus.jmx.JavaAgent</Agent-Class> <Implementation-Version>${project.version}</Implementation-Version> <Implementation-Title>${project.artifactId}</Implementation-Title> </manifestEntries> </transformer> </transformers> <createSourcesJar>true</createSourcesJar> <shadeSourcesContent>true</shadeSourcesContent> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> <configuration> <includeDependencySources>true</includeDependencySources> <dependencySourceIncludes> <dependencySourceInclude>${project.groupId}:*</dependencySourceInclude> </dependencySourceIncludes> </configuration> </execution> </executions> </plugin> <plugin> <groupId>com.coderplus.maven.plugins</groupId> <artifactId>copy-rename-maven-plugin</artifactId> <executions> <execution> <id>copy-resources</id> <phase>package</phase> <goals> <goal>copy</goal> </goals> <configuration> <fileSets> <fileSet> <sourceFile>${project.build.directory}/${project.build.finalName}.jar</sourceFile> <destinationFile>../integration_test_suite/integration_tests/src/test/resources/common/jmx_prometheus_javaagent.jar</destinationFile> </fileSet> </fileSets> </configuration> </execution> </executions> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter</artifactId> <version>5.10.0</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>junit-jupiter-api</artifactId> <groupId>org.junit.jupiter</groupId> </exclusion> <exclusion> <artifactId>junit-jupiter-params</artifactId> <groupId>org.junit.jupiter</groupId> </exclusion> <exclusion> <artifactId>junit-jupiter-engine</artifactId> <groupId>org.junit.jupiter</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.assertj</groupId> <artifactId>assertj-core</artifactId> <version>3.24.2</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>byte-buddy</artifactId> <groupId>net.bytebuddy</groupId> </exclusion> </exclusions> </dependency> </dependencies> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> </properties> </project>