<?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.17.1</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>
    </plugins>
  </build>
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  </properties>
</project>
