[ 
http://jira.codehaus.org/browse/MRM-636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=191807#action_191807
 ] 

Maria Odea Ching commented on MRM-636:
--------------------------------------

Looks like the <classesDirectory> config below in Cobertura Maven Plugin is 
causing the error 'Error configuring: 
org.apache.maven.plugins:maven-war-plugin. Reason: ERROR: Cannot override 
read-only parameter: classesDirectory in goal: war:inplace':

{code}
<lifecycles>
  <lifecycle>
    <id>cobertura</id>
    <phases>
      <phase>
        <id>process-classes</id>
        <executions>
          <execution>
            <goals>
              <goal>instrument</goal>
            </goals>
          </execution>
        </executions>
      </phase>
      <phase>
        <id>test</id>
        <configuration>
          
<classesDirectory>${project.build.directory}/generated-classes/cobertura</classesDirectory>
          <testFailureIgnore>true</testFailureIgnore>
          <forkMode>once</forkMode>
        </configuration>
      </phase>
    </phases>
  </lifecycle>
</lifecycles>
{code}

The same parameter is also present as read-only in Maven War Plugin. Is there 
someway we can work around this?

> war:inplace usage is not compatible with cobertura
> --------------------------------------------------
>
>                 Key: MRM-636
>                 URL: http://jira.codehaus.org/browse/MRM-636
>             Project: Archiva
>          Issue Type: Bug
>          Components: web application
>    Affects Versions: 1.0
>            Reporter: Brett Porter
>             Fix For: 1.x
>
>
> review usage so that we can look at code coverage for the webapp

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