I have asked on the Maven dev list about the process of building modules that contain test jars. It seems the recommended approach for test jars in general has changed and it is now recommended to build them in their own project. This means log4j-core would only contain the main source and that log4j-core-tests would have the test classes as its main source and the log4j-core unit tests in src/test/java.
I have my doubts that this will work but I plan on giving this a try when I get some time. Ralph