my IntellIJ plugin depends on a "core" module that brings its own log4j library. The "core" cannot use the IDEA SDK, because it is supposed to be IDE-independent (Eclipse + IntelliJ). My library setup:
* log4j.jar is part of the dependencies of the "core" module with "export" checked
* my plugin has the "core" module as depency, to get all its exported dependencies
* I removed the log4j.jar from the IDEA SDK classpath in order to avoid version conflicts
Now when I fire up my plugin, I get this error:
log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR [PluginClassLoader[de.fu_berlin.inf.dpp.intellij.1, 10.1.1]] whereas object of type
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [com.intellij.util.lang.UrlClassLoader@44d03877].
log4j:ERROR Could not instantiate appender named "SarosConsoleAppender".
What is going wrong?