[ 
http://jira.codehaus.org/browse/MCOBERTURA-145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=264389#action_264389
 ] 

Mirko Friedenhagen edited comment on MCOBERTURA-145 at 4/22/11 4:13 AM:
------------------------------------------------------------------------

* I stripped my project completely to only include cobertura 
(https://github.com/mfriedenhagen/multi-module-sample/commit/702dba7133d1bd8a679d3c4639d38883b9e74ece).
 Now when running {{mvn -Dcobertura-plugin.version=XXX clean site}} for both 
2.4 and 2.5: 
## cobertura-reports are created beneath {{MODULE/target/site/cobertura}}
## in the {{MODULE/target/site/project-reports.html}} the correct link ({{<a 
href="cobertura/index.html" title="Cobertura Test Coverage">Cobertura Test 
Coverage</a>}}) is generated.
## See attached file [^cobertura-2.5-x-without-project-reports.log]

* Then I [reenabled the 
maven-project-info-reports-plugin|https://github.com/mfriedenhagen/multi-module-sample/commit/c0237e3a37ef3dcb5188e654376da410e7d1fcd0]
 again. Now when running {{mvn -Dcobertura-plugin.version=XXX clean site}}:
## cobertura-reports ({{MODULE/target/site/cobertura}}) are only generated with 
2.4
## in the {{project-reports.html}} the correct link ({{<a 
href="cobertura/index.html" title="Cobertura Test Coverage">Cobertura Test 
Coverage</a>}}) is only produced for 2.4, for 2.5 the 
links looks like this: ({{<a href="index.html" title="Cobertura Test 
Coverage">Cobertura Test Coverage</a>}})
## See attached files [^cobertura-2.4-x-with-project-reports.log] and 
[^cobertura-2.5-x-with-project-reports.log]

* Using maven-project-info-reports-plugin seems to be the suggested way with 
Maven 3 
(https://cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html#Maven3.xandsiteplugin-NewConfiguration)


      was (Author: mfriedenhagen):
    * I stripped my project completely to only include cobertura 
(https://github.com/mfriedenhagen/multi-module-sample/commit/702dba7133d1bd8a679d3c4639d38883b9e74ece).
 Now when running {{mvn -Dcobertura-plugin.version=XXX clean site}} for both 
2.4 and 2.5: 
## cobertura-reports are created beneath {{MODULE/target/site/cobertura}}
## in the {{MODULE/target/site/project-reports.html}} the correct link ({{<a 
href="cobertura/index.html" title="Cobertura Test Coverage">Cobertura Test 
Coverage</a>}}) is generated.
## See attached file [^cobertura-2.5-x-without-project-reports.log]

* Then I [reenabled the 
maven-project-info-reports-plugin|https://github.com/mfriedenhagen/multi-module-sample/commit/c0237e3a37ef3dcb5188e654376da410e7d1fcd0]
 again. Now when running {{mvn -Dcobertura-plugin.version=XXX clean site}}:
## cobertura-reports ({{MODULE/target/site/cobertura}}) are only generated with 
2.4
## in the {{project-reports.html}} the correct link ({{<a 
href="cobertura/index.html" title="Cobertura Test Coverage">Cobertura Test 
Coverage</a>}}) is only produced for 2.4, for 2.5 the 
links looks like this: ({{<a href="index.html" title="Cobertura Test 
Coverage">Cobertura Test Coverage</a>}})
## See attached file [^cobertura-2.5-x-with-project-reports.log]

* This seems to be the suggested way with Maven 3 
(https://cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html#Maven3.xandsiteplugin-NewConfiguration)

  
> Regression: report will not be rendered on invocation of mvn clean install 
> site for a multi module project.
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: MCOBERTURA-145
>                 URL: http://jira.codehaus.org/browse/MCOBERTURA-145
>             Project: Maven 2.x Cobertura Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5
>         Environment: maven-3.0.3, maven-cobertura-plugin 2.5
>            Reporter: Mirko Friedenhagen
>         Attachments: cobertura-2.4-x-with-project-reports.log, 
> cobertura-2.4-x.log, cobertura-2.4.log, 
> cobertura-2.5-x-with-project-reports.log, 
> cobertura-2.5-x-without-project-reports.log, cobertura-2.5-x.log, 
> cobertura-2.5.log
>
>
> When switching from 2.4 to 2.5 invocation of {{mvn clean install site}} will 
> not render neither the html nor the xml report anymore in a multimodule 
> project. A test project may be found at: 
> https://github.com/mfriedenhagen/multi-module-sample/commit/62c5ec2d8bfc1c0420f7e6a701032300894eaa98.

-- 
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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to