This is the structure of my multi-module project:
/root /api dependencies: slf4j /foo dependencies: slf4j-log4j12, log4j
In other words, the api module uses slf4j for logging purposes. He does not know what will be the implementation of the logging mechanism. The foo module adds slf4j-log4j12 and slf4j-log4j12 to implement logging. Pretty simple.
Now I run maven-dependency-plugin:analyze-only , and this is what it says for the foo module:
[WARNING] Unused declared dependencies found: [WARNING] org.slf4j:slf4j-log4j12:jar:1.6.1:compile [WARNING] log4j:log4j:jar:1.2.16:compile
The implication is that the plugin does not understand that foo really needs these dependencies. How can i solve the problem?
java maven-2 maven-dependency-plugin
yegor256
source share