title: Log4j2 Java unable to import org.apache.logging.log4j.core
body: <p>I am trying to use the Log4j2 API to write a Converter plugin with version 2.8.2 but am unable to import <code>org.apache.logging.log4j.core</code> to import the following: </p>
  
  <p><code>org.apache.logging.log4j.core.LogEvent</code>, <code>org.apache.logging.log4j.core.config.plugins.Plugin</code>, <code>org.apache.logging.log4j.core.pattern.*</code></p>
  
  <p>I have added the maven dependencies as and this works fine with Log4j 2.8.1</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
    &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
    &lt;version&gt;2.8.2&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
     &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
     &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
     &lt;version&gt;2.8.2&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p><strong>Update: log4j-core-2.8.2.jar content</strong></p>
  
  <p><a href="https://i.stack.imgur.com/tH5vE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tH5vE.png" alt="enter image description here"></a></p>
  
  <p>pom.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;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/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.andrew_flower.test&lt;/groupId&gt;
      &lt;artifactId&gt;logtest1&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
              &lt;version&gt;2.8.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
              &lt;version&gt;2.8.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.9&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;central&lt;/id&gt;
              &lt;url&gt;http://repo1.maven.org/maven2/&lt;/url&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;apache.snapshots&lt;/id&gt;
              &lt;name&gt;Apache Release Distribution Repository&lt;/name&gt;
              &lt;url&gt;
                  http://repository.apache.org/snapshots
              &lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  &lt;/project&gt;
  </code></pre>