Kavi created MNG-5234: ------------------------- Summary: Error : Cannot override read-only parameter: classesDirectory in goal: war:manifest Key: MNG-5234 URL: https://jira.codehaus.org/browse/MNG-5234 Project: Maven 2 & 3 Issue Type: Bug Components: Plugins and Lifecycle Affects Versions: 2.2.1 Environment: Redhat Linux Reporter: Kavi Priority: Critical Attachments: maven_error.jpg
Hi, While executing maven with any of the code coverage reporting plugins (cobertura, jacoco, clover), I get the following error: [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error configuring: org.apache.maven.plugins:maven-war-plugin. Reason: ERROR: Cannot override read-only parameter: classesDirectory in goal: war:manifest Though the classes directory is not read-only on the system, I am unable to figure out the issue. The following maven goals were executed: 'clean install cobertura:cobertura -Pdev' or 'clean install jacoco:report -Pdev' oe 'clean install clover:clover -Pdev'. They build and pass the instrumentation steps, however, after the stages of war:manifest, war:war, the above error is thrown and the Build fails. Could you please help fix the same so that Sonar can be configured to read the code coverage statistics and display them on the dashboard ? The versions used are: Maven: 2.2.1 Sonar: 2.12 Jenkins: 1.447 Sonar Plugin: 1.7.2 Jenkins Cobertura Plugin: 1.3 Please note: This issue was also reported as http://jira.codehaus.org/browse/MRM-636 and http://jira.codehaus.org/browse/SONAR-855 Thanks. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira