Hello, Earlier today, someone sent an email to Maven User's list asking if there exists a plugin for a tool called ckjm. I looked into it and its a bit like Findbugs -- according to the ckjm site, the tool "calculates Chidamber and Kemerer object-oriented metrics by processing the bytecode of compiled Java files."
Here is the website for the ckjm tool itself: http://www.spinellis.gr/sw/ckjm/ On a whim, I wrote a plugin tonight that outputs an XML or plain text file from the ckjm tool. I have not yet gone the next step of turning this into a full M2 site report etc, and I'm not sure if that is really in the cards unless there is (significantly) more interest for such a report. Here is a sample output from running the plugin against the simple sample project created by the archetype:create command: org.codehaus.mojo.App 2 1 0 0 4 1 0 2 And the same report in xml format (plain or xml is configurable of course): <?xml version="1.0"?> <ckjm> <class><name>org.codehaus.mojo.App</name> <wmc>2</wmc><dit>1</dit><noc>0</noc><cbo>0</cbo><rfc>4</rfc><lcom>1</lcom><ca>0</ca><npm>2</npm></class> </ckjm> I will need to ask the author to clarify his licensing for the ckjm tool itself, and then see about getting ckjm-1.8.jar added to Maven2 repos so it can be used by this Mojo. In the meantime, you will need to manually install this jar into your local repo if you wish to test this Mojo (once it lands in the sandbox, assuming I get a +1 from someone). Thanks! Wayne --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
