Ok, I have a local patch that adds a new JULReceiver class plus unit test that works fine if I add the log4j-component Eclipse project as a dependency. Yet, if I remove that project dependency, and add a maven dependency to apache-log4j-component 0.1-SNAPHOT after 'mvn install' that into my local repository, it still compiles, yet the test case doesn't pass, because the Receiver never gets constructed and no event is received. I get DomConfigurator warnings about not recognizing the plugin tags: log4j:WARN Element type "plugin" must be declared. log4j:WARN Continuable parsing error 25 and column 23 log4j:WARN The content of element type "log4j:configuration" must match "(renderer*,appender*,(category|logger)*,root?,categoryFactory?)". log4j: Threshold ="null". log4j: Level value for root is [debug]. log4j: root level set to DEBUG Apr 28, 2007 5:10:44 PM org.apache.log4j.jul.JULReceiverTest testJULReceiverPluginConfiguration INFO: boo My local patch is attached for review. I just don't get it. It's as if the installed component jar in the repo is different than the Eclipse project version, but I've hand removed it from the repo, and redeployed it. I'm using the Maven Eclipse plugin, but even running the tests locally fail, so I don't think it's that. I tried mucking about with the pom.xml by hand. Any ideas? |
julbridge.patch
Description: Binary data