title: log4j2 configuration issue in Maven project
body: <p>I put my log4j2.xml file to directory: <code>src/main/resources</code> and after I make jar-with-dependencies  and I compile this it shows</p>
  
  <pre><code>dk994@dk994-Lenovo-IdeaPad-Z510:~/Pulpit/Pracbaza/exercise1$ java -cp target/exercise1-1.0-SNAPSHOT-jar-with-dependencies.jar com.spica.project.App
  [Fatal Error] :1:10: The processing instruction target matching "[xX][mM][lL]" is not allowed.
  ERROR StatusLogger Error parsing jar:file:/home/dk994/Pulpit/Pracbaza/exercise1/target/exercise1-1.0-SNAPSHOT-jar-with-dependencies.jar!/log4j2.xml org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 10; The processing instruction target matching "[xX][mM][lL]" is not allowed.
      at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
      at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347)
      at org.apache.logging.log4j.core.config.xml.XmlConfiguration.&lt;init&gt;(XmlConfiguration.java:134)
      at org.apache.logging.log4j.core.config.xml.XmlConfigurationFactory.getConfiguration(XmlConfigurationFactory.java:44)
      at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:455)
      at org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:429)
      at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:415)
      at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:146)
      at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:75)
      at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:37)
      at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:473)
      at com.spica.project.App.&lt;clinit&gt;(App.java:10)
  
  ERROR StatusLogger No logging configuration
  21:19:15.331 [main] ERROR com.spica.project.App - error
  Hello World!
  </code></pre>
  
  <p>I literaly copied this to my log4j.xml file from apache site</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;Configuration status="WARN"&gt;
      &lt;Appenders&gt;
      &lt;Console name="Console" target="SYSTEM_OUT"&gt;
      &lt;PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/&gt;
      &lt;/Console&gt;
      &lt;/Appenders&gt;
      &lt;Loggers&gt;
      &lt;Root level="error"&gt;
      &lt;AppenderRef ref="Console"/&gt;
      &lt;/Root&gt;
      &lt;/Loggers&gt;
      &lt;/Configuration&gt;
  </code></pre>
  
  <p>What should I do?
  I work on Ubuntu and this is simple maven project, created via terminal</p>