<?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>artemis-pom</artifactId>
    <groupId>org.apache.activemq</groupId>
    <version>2.31.0</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>artemis-commons</artifactId>
  <name>ActiveMQ Artemis Commons</name>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <createDependencyReducedPom>true</createDependencyReducedPom>
              <filters>
                <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                    <exclude>META-INF/**/*</exclude>
                  </excludes>
                </filter>
              </filters>
              <relocations>
                <relocation>
                  <pattern>javax.json</pattern>
                  <shadedPattern>org.apache.activemq.artemis.commons.shaded.json</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.apache.johnzon</pattern>
                  <shadedPattern>org.apache.activemq.artemis.commons.shaded.johnzon</shadedPattern>
                </relocation>
              </relocations>
              <artifactSet>
                <includes>
                  <include>org.apache.johnzon:johnzon-core</include>
                  <include>jakarta.json:jakarta.json-api</include>
                </includes>
              </artifactSet>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>3.5.0</version>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <useStandardDocletOptions>true</useStandardDocletOptions>
                  <minmemory>128m</minmemory>
                  <maxmemory>512m</maxmemory>
                  <noindex>true</noindex>
                  <sourceFileIncludes>
                    <sourceFileInclude>**/org/apache/activemq/artemis/api/**/*.java</sourceFileInclude>
                  </sourceFileIncludes>
                  <notimestamp>true</notimestamp>
                </configuration>
              </execution>
              <execution>
                <id>javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <useStandardDocletOptions>true</useStandardDocletOptions>
                  <minmemory>128m</minmemory>
                  <maxmemory>512m</maxmemory>
                  <noindex>true</noindex>
                  <sourceFileIncludes>
                    <sourceFileInclude>**/org/apache/activemq/artemis/api/**/*.java</sourceFileInclude>
                  </sourceFileIncludes>
                  <notimestamp>true</notimestamp>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <useStandardDocletOptions>true</useStandardDocletOptions>
              <minmemory>128m</minmemory>
              <maxmemory>512m</maxmemory>
              <noindex>true</noindex>
              <sourceFileIncludes>
                <sourceFileInclude>**/org/apache/activemq/artemis/api/**/*.java</sourceFileInclude>
              </sourceFileIncludes>
              <notimestamp>true</notimestamp>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <properties>
        <os.detected.arch>x86_64</os.detected.arch>
        <os.detected.bitness>64</os.detected.bitness>
        <os.detected.name>osx</os.detected.name>
        <os.detected.classifier>osx-x86_64</os.detected.classifier>
      </properties>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>org.apache.activemq</groupId>
      <artifactId>artemis-log-annotation-processor</artifactId>
      <version>2.31.0</version>
      <scope>provided</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.7.36</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-slf4j-impl</artifactId>
      <version>2.20.0</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>log4j-api</artifactId>
          <groupId>org.apache.logging.log4j</groupId>
        </exclusion>
        <exclusion>
          <artifactId>log4j-core</artifactId>
          <groupId>org.apache.logging.log4j</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>io.netty</groupId>
      <artifactId>netty-buffer</artifactId>
      <version>4.1.97.Final</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>io.netty</groupId>
      <artifactId>netty-common</artifactId>
      <version>4.1.97.Final</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>commons-beanutils</groupId>
      <artifactId>commons-beanutils</artifactId>
      <version>1.9.4</version>
      <scope>compile</scope>
    </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.apache.activemq</groupId>
      <artifactId>artemis-unit-test-support</artifactId>
      <version>2.31.0</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <properties>
    <activemq.basedir>${project.basedir}/..</activemq.basedir>
  </properties>
</project>
