You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ninja-f...@googlegroups.com
Recently , I added org.apache.httpcomponents - httpclient - 4.3.1 to pom.xml ,
and found I cannot run ninja , because of a banned dependency :
Found Banned Dependency: commons-logging:commons-logging:jar:1.1.3
I then found pom.xml has a plugin :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>enforce-banned-dependencies</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<bannedDependencies>
<excludes>
<exclude>commons-logging</exclude>
</excludes>
</bannedDependencies>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
that banned commons-logging .
Why ?
Why banned commons-logging ? Is it doing anything wrong ?
And if I want to use httpclient , what should I do ?
Thanks.
Raphael André Bauer
unread,
Jan 17, 2014, 3:48:46 AM1/17/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ninja-f...@googlegroups.com
Hi smallufo,
Ninja uses slf4j (logging facade) and logback (implementation) for
logging. If you'd put another logging implementation or logging facade
on the classpath things will go wrong (or you'd have to manage at
least two logging configurations...).
Therefore there it makes sense that Maven warns you about banned dependencies.
Fortunately the fix is really simple - exclude commons-logging from
the dependency you are including.