[ 
http://jira.codehaus.org/browse/MSITE-586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=269533#action_269533
 ] 

Lukas Theussl commented on MSITE-586:
-------------------------------------

This is not a bug in the site plugin, rather an incorrect use of the doxia-sink 
API by the jetm-maven-plugin, and doxia-1.1 (used since site-plugin-2.1) is 
just much more strict about that. The relevant sequence of events in 
[TimingReportMojo|http://code.google.com/p/jetm-maven-plugin/source/browse/trunk/jetm-maven-plugin/src/main/java/com/google/code/jetm/maven/TimingReportMojo.java]
 is
{noformat}
sink.table();
tableHeaderCell(sink, "Name");
...
for (Aggregate aggregate : aggregates) {
    sink.tableRow();
    tableCell(sink, aggregate.getName());
    ...
    sink.tableRow_();
}
sink.table_();
{noformat}
It should be correctly:
{noformat}
sink.table();
sink.tableRows( justify, grid );
sink.tableRow();
tableHeaderCell(sink, "Name");
...
sink.tableRow_();
for (Aggregate aggregate : aggregates) {
    sink.tableRow();
    tableCell(sink, aggregate.getName());
    ...
    sink.tableRow_();
}
sink.tableRows_();
sink.table_();
{noformat}

> maven-site-plugin > 2.0 breaks Doxia sink <th /> elements
> ---------------------------------------------------------
>
>                 Key: MSITE-586
>                 URL: http://jira.codehaus.org/browse/MSITE-586
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Joshua Hyde
>         Attachments: doxia-bug-test.zip
>
>
> For reasons that I've been unable to yet discern, my reporting plugin fails 
> to work properly if anything in the 2.x stream (beyond 2.0) is present in the 
> POM.
> I'm attaching a project that demonstrates this. Run "mvn clean test site" and 
> view the "JETM Timing Report" under Project Reports. Then, run "mvn clean 
> test site -Pbreak" and view the same report - the generated HTML has the <th 
> /> elements outside of the <table /> definition.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to