[jboss-dev-forums] [Design of JBoss Build System] - Re: What do the dependency:analyze warnings mean?
pgier
do-not-reply at jboss.com
Tue Feb 26 10:03:27 EST 2008
"scott.stark at jboss.org" wrote :
| All of these unused dependencies are in fact used, so what is this telling me?
|
The reason these ones are showing up is because of the renamed stuff. When the groupId changes from one version to another, then maven doesn't know that they are the same thing anymore. So the code might be compiling against a version picked up transitively. The way around this is to exclude the transitive dependency. Unfortunately there is currently no way to globally exclude a certain transitive dep. So you have to exclude it from each direct dependency where it is picked up.
The junit dependency could probably be changed to a test scope instead of compile scope since it's not used by the main classes. I think that's why it's complaining about that one.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132209#4132209
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132209
More information about the jboss-dev-forums
mailing list