Hi,
give a try to these 2 plugins (insert the following snippet in your
pom.xml):

    <reporting>
        <plugins>
            [...]
            <plugin>
                <!-- JavaNCSS - A Source Measurement Suite for Java
http://www.kclee.de/clemens/java/javancss/ -->
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>javancss-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <!-- A Java package dependency analyzer that generates
design quality metrics http://clarkware.com/software/JDepend.html -->
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jdepend-maven-plugin</artifactId>
            </plugin>
            <plugin>
            [...]
        </plugins>
    </reporting>

Both will run during the site generation phase, creating reports to link in
the project's site.
Take a look at their home pages for more details and options.

Maybe you'll be interested in these 2, as well:

            <plugin>
                <!-- PMD code analysis tool + Copy/Paste Detector tool
                       
http://maven.apache.org/plugins/maven-pmd-plugin/usage.html -->
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-pmd-plugin</artifactId>
                <configuration>
                    <targetjdk>1.4.2</targetjdk>
                    <format>xml</format>
                    <linkXref>true</linkXref>
                    <sourceEncoding>utf-8</sourceEncoding>
                </configuration>
            </plugin>

            <plugin>
                <!-- FindBugs uses static analysis to inspect Java bytecode
for occurrences of bug patterns
                       
http://mojo.codehaus.org/findbugs-maven-plugin/introduction.html  -->
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <configuration>
                    <threshold>Normal</threshold>
                    <effort>Min</effort>
                </configuration>
            </plugin>

All of them greatly integrate with the source xref plugin, linking each
problem to the source code:

            <plugin>
                <!-- JXR is a source cross referencing tool
                       
http://maven.apache.org/plugins/maven-jxr-plugin/howto.html -->
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jxr-maven-plugin</artifactId>
            </plugin>

Cheers,
Paolo


aldana wrote:
> 
> hi, 
> 
> to make code smells more visible and to better find out refactoring
> targets amongst others i want to introduce some metrics. for that i miss a
> plugin which measures the cyclomatic complexity and loc (for classes,
> methods). 
> surprisingly i did not find any maven plugin which offers this...
> 
> maybe somebody can point me out to one?
> 
> thanks.
> 

-- 
View this message in context: 
http://www.nabble.com/metrics-report-plugin-%28for-cyclomatic-complexity-%2B-loc%29-tp16823833s177p16823846.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to