<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>I'm migrating a spring project from a hybrid of log4j and commons logging. I'd like to make sure that developer don't inadvertently use commons-logging or log4j directly</div><div><br></div><div>I ran the migrator. It worked great</div><div><br></div><div>I added exclusions to my pom, <font class="Apple-style-span" color="#f60000">but eclipse still finds the commons-logging jar</font> and when a run maven dependency:tree it still shows up:</div><div><br></div><div><br></div><div><div>[INFO] +- org.springframework.ws:spring-ws-core:jar:2.0.0.RELEASE:compile</div><div>[INFO] | &nbsp;+- wsdl4j:wsdl4j:jar:1.6.1:compile</div><div>[INFO] | &nbsp;\- commons-logging:commons-logging:jar:1.1.1:compile</div></div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;dependency&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;groupId&gt;org.springframework.ws&lt;/groupId&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;artifactId&gt;spring-ws-core&lt;/artifactId&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;version&gt;${spring-ws-version}&lt;/version&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;type&gt;jar&lt;/type&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;scope&gt;compile&lt;/scope&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;exclusions&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>&lt;exclusion&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>&lt;groupId&gt;commons-logging&lt;/groupId&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>&lt;artifactId&gt;commons-logging&lt;/artifactId&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>&lt;/exclusion&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;/exclusions&gt;<span class="Apple-tab-span" style="white-space:pre">                        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;/dependency&gt;</div></div><div><br></div><div><br></div><div><br></div><div>I also added this so that any dependencies that are using commons-logging will be ok</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(51, 147, 147); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                </span></span><span style="color: #009494">&lt;</span>dependency<span style="color: #009494">&gt;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(51, 147, 147); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                </span>&nbsp; </span><span style="color: #009494">&lt;</span>groupId<span style="color: #009494">&gt;</span><span style="color: #000000">org.slf4j</span><span style="color: #009494">&lt;/</span>groupId<span style="color: #009494">&gt;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(51, 147, 147); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                </span>&nbsp; </span><span style="color: #009494">&lt;</span>artifactId<span style="color: #009494">&gt;</span><span style="color: #000000">jcl-over-slf4j</span><span style="color: #009494">&lt;/</span>artifactId<span style="color: #009494">&gt;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(51, 147, 147); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                </span>&nbsp; </span><span style="color: #009494">&lt;</span>version<span style="color: #009494">&gt;</span><span style="color: #000000">1.6.1</span><span style="color: #009494">&lt;/</span>version<span style="color: #009494">&gt;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(51, 147, 147); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                </span></span><span style="color: #009494">&lt;/</span>dependency<span style="color: #009494">&gt;</span></div></div><div><br></div><div>Here's my other logging dependencies</div><div><br></div><div><br></div><div><br></div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(77, 110, 205); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                </span></span>&lt;!-- slf4j --&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(51, 147, 147); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                </span></span><span style="color: #009494">&lt;</span>dependency<span style="color: #009494">&gt;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">                        </span><span style="text-decoration: underline">&lt;groupId&gt;org.slf4j&lt;/groupId&gt;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span style="text-decoration: underline"><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span style="text-decoration: underline"><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;version&gt;1.6.1&lt;/version&gt;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(51, 147, 147); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span style="color: #009494">&lt;</span>type<span style="color: #009494">&gt;</span><span style="color: #000000">jar</span><span style="color: #009494">&lt;/</span>type<span style="color: #009494">&gt;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">                        </span><span style="color: #009494">&lt;</span><span style="color: #339393">scope</span><span style="color: #009494">&gt;</span>compile<span style="color: #009494">&lt;/</span><span style="color: #339393">scope</span><span style="color: #009494">&gt;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(51, 147, 147); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                </span></span><span style="color: #009494">&lt;/</span>dependency<span style="color: #009494">&gt;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(51, 147, 147); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                </span></span><span style="color: #009494">&lt;</span>dependency<span style="color: #009494">&gt;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(51, 147, 147); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span style="color: #009494">&lt;</span>groupId<span style="color: #009494">&gt;</span><span style="color: #000000">org.slf4j</span><span style="color: #009494">&lt;/</span>groupId<span style="color: #009494">&gt;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(51, 147, 147); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span style="color: #009494">&lt;</span>artifactId<span style="color: #009494">&gt;</span><span style="color: #000000">slf4j-log4j12</span><span style="color: #009494">&lt;/</span>artifactId<span style="color: #009494">&gt;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(51, 147, 147); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span style="color: #009494">&lt;</span>version<span style="color: #009494">&gt;</span><span style="color: #000000">1.6.1</span><span style="color: #009494">&lt;/</span>version<span style="color: #009494">&gt;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(51, 147, 147); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                        </span></span><span style="color: #009494">&lt;</span>type<span style="color: #009494">&gt;</span><span style="color: #000000">jar</span><span style="color: #009494">&lt;/</span>type<span style="color: #009494">&gt;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">                        </span><span style="color: #009494">&lt;</span><span style="color: #339393">scope</span><span style="color: #009494">&gt;</span>compile<span style="color: #009494">&lt;/</span><span style="color: #339393">scope</span><span style="color: #009494">&gt;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; color: rgb(51, 147, 147); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">                </span></span><span style="color: #009494">&lt;/</span>dependency<span style="color: #009494">&gt;</span></div></div></body></html>