I'm running mvn install, getting below error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
error: package org.apache.log4j does not exist
In my project hierarchy I have log4j-1.2.15.jar added as a Referenced Libraries..not sure what I'm missing.
Part of POM file with log4j dependency (should I change the version to just say 1.2...or possible remove the scope below?):
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>1.2.15</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>1.2.15</version>
</dependency>
For log4j I only use this libraries:
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With