<?xml version="1.0"?>
<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">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.apache.logging.log4j</groupId>

    <artifactId>log4j</artifactId>

    <version>2.7</version>

    <relativePath>../</relativePath>

  </parent>

  <artifactId>log4j-api</artifactId>

  <packaging>jar</packaging>

  <name>Apache Log4j API</name>

  <description>The Apache Log4j API</description>

  <properties>
    <log4jParentDir>${basedir}/..</log4jParentDir>

    <docLabel>API Documentation</docLabel>

    <projectDir>/api</projectDir>

  </properties>

  <dependencies>
    
    <dependency>
      <groupId>org.apache.felix</groupId>

      <artifactId>org.apache.felix.framework</artifactId>

      <scope>test</scope>

    </dependency>

    <dependency>
      <groupId>org.osgi</groupId>

      <artifactId>org.osgi.core</artifactId>

      <scope>provided</scope>

    </dependency>

    <dependency>
      <groupId>junit</groupId>

      <artifactId>junit</artifactId>

      <scope>test</scope>

    </dependency>

    <dependency>
      <groupId>org.eclipse.osgi</groupId>

      <artifactId>org.eclipse.osgi</artifactId>

      <scope>test</scope>

    </dependency>

    <dependency>
      <groupId>org.apache.maven</groupId>

      <artifactId>maven-core</artifactId>

      <scope>test</scope>

    </dependency>

    <dependency>
      <groupId>org.apache.commons</groupId>

      <artifactId>commons-lang3</artifactId>

      <scope>test</scope>

    </dependency>

    
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>

      <artifactId>jackson-core</artifactId>

      <scope>test</scope>

    </dependency>

    
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>

      <artifactId>jackson-databind</artifactId>

      <scope>test</scope>

    </dependency>

  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-surefire-plugin</artifactId>

        <configuration>
          <forkCount>2C</forkCount>

          <reuseForks>true</reuseForks>

        </configuration>

      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-jar-plugin</artifactId>

        <executions>
          <execution>
            <goals>
              <goal>test-jar</goal>

            </goals>

          </execution>

        </executions>

      </plugin>

      
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-remote-resources-plugin</artifactId>

        <executions>
          <execution>
            <goals>
              <goal>process</goal>

            </goals>

            <configuration>
              <skip>false</skip>

            </configuration>

          </execution>

        </executions>

      </plugin>

      <plugin>
        <groupId>org.apache.felix</groupId>

        <artifactId>maven-bundle-plugin</artifactId>

        <configuration>
          <instructions>
            <Export-Package>org.apache.logging.log4j.*</Export-Package>

            <Import-Package>
              sun.reflect;resolution:=optional,
              org.apache.logging.log4j.core.osgi;resolution:=optional,
              *
            </Import-Package>

            <Bundle-Activator>org.apache.logging.log4j.util.Activator</Bundle-Activator>

          </instructions>

        </configuration>

      </plugin>

    </plugins>

  </build>

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>

        <artifactId>clirr-maven-plugin</artifactId>

        <version>${clirr.plugin.version}</version>

      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-changes-plugin</artifactId>

        <version>${changes.plugin.version}</version>

        <reportSets>
          <reportSet>
            <reports>
              <report>changes-report</report>

            </reports>

          </reportSet>

        </reportSets>

        <configuration>
          <issueLinkTemplate>%URL%/show_bug.cgi?id=%ISSUE%</issueLinkTemplate>

          <useJql>true</useJql>

        </configuration>

      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-checkstyle-plugin</artifactId>

        <version>${checkstyle.plugin.version}</version>

        <configuration>
          
          <configLocation>${log4jParentDir}/checkstyle.xml</configLocation>

          <suppressionsLocation>${log4jParentDir}/checkstyle-suppressions.xml</suppressionsLocation>

          <enableRulesSummary>false</enableRulesSummary>

          <propertyExpansion>basedir=${basedir}</propertyExpansion>

          <propertyExpansion>licensedir=${log4jParentDir}/checkstyle-header.txt</propertyExpansion>

        </configuration>

      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-javadoc-plugin</artifactId>

        <version>${javadoc.plugin.version}</version>

        <configuration>
          <bottom>&lt;p align="center">Copyright &amp;#169; {inceptionYear}-{currentYear} {organizationName}. All Rights Reserved.&lt;br />
            Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo,
            and the Apache Log4j logo are trademarks of The Apache Software Foundation.&lt;/p></bottom>

          
          <detectOfflineLinks>false</detectOfflineLinks>

          <linksource>true</linksource>

          <links>
            <link>http://www.osgi.org/javadoc/r4v43/core/</link>

          </links>

        </configuration>

        <reportSets>
          <reportSet>
            <id>non-aggregate</id>

            <reports>
              <report>javadoc</report>

            </reports>

          </reportSet>

        </reportSets>

      </plugin>

      <plugin>
        <groupId>org.codehaus.mojo</groupId>

        <artifactId>findbugs-maven-plugin</artifactId>

        <version>${findbugs.plugin.version}</version>

        <configuration>
          <fork>true</fork>

          <jvmArgs>-Duser.language=en</jvmArgs>

          <threshold>Normal</threshold>

          <effort>Default</effort>

          <excludeFilterFile>${log4jParentDir}/findbugs-exclude-filter.xml</excludeFilterFile>

        </configuration>

      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-jxr-plugin</artifactId>

        <version>${jxr.plugin.version}</version>

        <reportSets>
          <reportSet>
            <id>non-aggregate</id>

            <reports>
              <report>jxr</report>

            </reports>

          </reportSet>

          <reportSet>
            <id>aggregate</id>

            <reports>
              <report>aggregate</report>

            </reports>

          </reportSet>

        </reportSets>

      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-pmd-plugin</artifactId>

        <version>${pmd.plugin.version}</version>

        <configuration>
          <targetJdk>${maven.compile.target}</targetJdk>

        </configuration>

      </plugin>

    </plugins>

  </reporting>

</project>
