You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rave.apache.org by "Anthony Carlucci (Updated) (JIRA)" <ji...@apache.org> on 2011/10/04 22:31:34 UTC

[jira] [Updated] (RAVE-245) Integrate Cobertura maven plugin

     [ https://issues.apache.org/jira/browse/RAVE-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anthony Carlucci updated RAVE-245:
----------------------------------

    Fix Version/s:     (was: 0.5-INCUBATING)
         Assignee:     (was: Anthony Carlucci)

The cobertura plugin has been added to Rave, however there is a bug that is preventing us from using it in one call:

mvn clean install cobertura:cobertura

This causes the following error:
[ERROR] Failed to execute goal org.codehaus.mojo:openjpa-maven-plugin:1.2:enhance (enhancer) on project rave-shindig: Execution enhancer of goal org.codehaus.mojo:openjpa-maven-plugin:1.2:enhance failed: org.apache.openjpa.persistence.PersistenceProductDerivation:java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration

which I believe is due to a classloader conflict of some XML jars with the openjpa-maven-plugin.  I have not been able to resolve this issue so I am going to mark this as a lower priority to get fixed.  For now a workaround is to execute in two steps:

mvn clean install
mvn cobertura:cobertura

Unfortunately Jenkins only allows one maven command to be executed for a build, so this is blocking us from getting the reports auto-generated and deployed with the builds.  If someone else wants to take a crack at solving it please do...
                
> Integrate Cobertura maven plugin
> --------------------------------
>
>                 Key: RAVE-245
>                 URL: https://issues.apache.org/jira/browse/RAVE-245
>             Project: Rave
>          Issue Type: Story
>          Components: build & development
>            Reporter: Anthony Carlucci
>            Priority: Minor
>
> Setup the Rave build to run the Cobertura maven plugin to generate unit test coverage numbers for local development as well as on the Apache Jenkins server.
> 1) Modify the rave-project pom.xml with the cobertura-maven-plugin
> 2) Modify the Jenkins ci build for Rave to execute the mvn cobertura:cobertura  goal
> 3) Modify the Jenkins project module for Rave to publish the coverage reports for rave-commons, rave-portal, and rave-shindig

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira