Skip to main content
Participating Frequently
October 2, 2009
Question

Maven : Generate html report

  • October 2, 2009
  • 1 reply
  • 2946 views

Hi all!

I would like to know how to generate the html report with the maven plugin.

It's said that "Currently, FlexPMD produces a XML report by default, plus an HTML report when invoked by the Maven site plugin."

I added the section correponding to the FlexPMD in my pom project as following :

            <plugin>
                <groupId>com.adobe.ac</groupId>
                <artifactId>flex-pmd-maven-plugin</artifactId>
                <version>1.0.RC4</version>
            </plugin>

but when I do a site generation, it just generates me a pmd.xml report with the violations (good!) but the flexpmd.html report generated is empty (there are just the default informations about my project but nothing about pmd).

If someone has allready configured flexpmd on his maven project, I will be happy to have some help please!

Thanks'

This topic has been closed for replies.

1 reply

Participant
October 6, 2009

Hi

I encountered the same problem.

I used mvn site to generate the report and the flexpmd.html is empty even if pmd.xml is not.

pmd.xml seems to not be at the right level (in target instead of target\site as it's the case for the java pmd plugin)

Moreover maybe it could be a good idea to call the xml flexpmd.xml to not have conflict with the java one.

Thanks in advance

October 6, 2009

Hi

We can generate the html report but, as you can see in the following Figure, it displays each violation twice.

Do you have any suggestion to avoid this !!?? Thanks !

October 7, 2009

Ok, we fixed also this problem by putting in comment the line number 90 of FlexPmdHtmlEngine class.

//report.addListener( reportSink );

Also we notice that there is two reports : report and reportSink.

Two html reports are générated : the first in the "target" directory and the second in the "target/site" directory. May be there is a reason for that.. I don't know... !!???

regards,