This is a structure of my multi-module project:
/root
/api dependencies: slf4j
/foo dependencies: slf4j-log4j12, log4j
In other words, module api
uses slf4j
for logging purposes. It doesn't know what the implementation of logging facility will be. Module foo
adds slf4j-log4j12
and log4j
in order to implement the logging. Pretty simple.
Now I'm running maven-dependency-plugin:analyze-only
and this is what it says for module foo
:
[WARNING] Unused declared dependencies found:
[WARNING] org.slf4j:slf4j-log4j12:jar:1.6.1:compile
[WARNING] log4j:log4j:jar:1.2.16:compile
Meaning that the plugin doesn't understand that foo
really needs these dependencies. How can I solve the problem?