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 (JIRA)" <ji...@apache.org> on 2011/09/01 22:10:10 UTC

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

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
            Assignee: Anthony Carlucci
            Priority: Minor
             Fix For: 0.4-INCUBATING


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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Posted by "Matt Franklin (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/RAVE-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Franklin updated RAVE-245:
-------------------------------

    Fix Version/s:     (was: 0.4-INCUBATING)
                   0.5-INCUBATING
    
> 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
>            Assignee: Anthony Carlucci
>            Priority: Minor
>             Fix For: 0.5-INCUBATING
>
>
> 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

        

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

Posted by "Ate Douma (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAVE-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13120545#comment-13120545 ] 

Ate Douma commented on RAVE-245:
--------------------------------

I've got a fix or workaround by adding an explicit xercesImpl:2.9.1 dependency on the maven-openjpa-plugin itself.
How the classloader conflict exactly is occurring I don't claim to know, but the cobertura plugin runs a forked test lifecycle build before, which I think might 'lose' the scope on the xercesImpl dependency.
By explicitly adding this as a openjpa plugin dependency I think this enforces it to be picked up, even through the forked lifecycle.
Anyways, this solved it for me, locally. I haven't looked into the Jenkins configuration but I guess you (Anythony) can pick it up from here again?
                
> 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
>            Assignee: Ate Douma
>            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

        

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

Posted by "Anthony Carlucci (Updated) (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Ate Douma (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/RAVE-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ate Douma reassigned RAVE-245:
------------------------------

    Assignee: Ate Douma
    
> 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
>            Assignee: Ate Douma
>            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

        

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

Posted by "Anthony Carlucci (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAVE-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13120956#comment-13120956 ] 

Anthony Carlucci commented on RAVE-245:
---------------------------------------

Outstanding Ate - you fixed in 8 minutes what I couldn't get working in several days.  I ran in locally and it worked fine and generated all the reports in the expected locations.  I'll work with Matt on setting up Jenkins to execute it with the builds and publish the coverage reports (since he has access to modify the build configuration).
                
> 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
>            Assignee: 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

        

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

Posted by "Anthony Carlucci (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/RAVE-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anthony Carlucci resolved RAVE-245.
-----------------------------------

    Resolution: Fixed

The Rave project has now been configured to execute and publish Cobertura code coverage reports as part of the Jenkins CI builds. 
                
> 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
>            Assignee: 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

        

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

Posted by "Anthony Carlucci (Updated) (JIRA)" <ji...@apache.org>.
     [ 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: 0.5-INCUBATING
    
> 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
>            Assignee: Anthony Carlucci
>            Priority: Minor
>             Fix For: 0.5-INCUBATING
>
>
> 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

        

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

Posted by "Ate Douma (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/RAVE-245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ate Douma reassigned RAVE-245:
------------------------------

    Assignee: Anthony Carlucci  (was: Ate Douma)

Anthony, please test if the workaround for the Xerces classloader resolution problem works for you.
                
> 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
>            Assignee: 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