Archiva
  1. Archiva
  2. MRM-636

war:inplace usage is not compatible with cobertura

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.3
    • Component/s: Web Interface
    • Labels:
      None
    • Number of attachments :
      0

      Description

      review usage so that we can look at code coverage for the webapp

        Issue Links

          Activity

          Hide
          Maria Odea Ching added a comment -

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

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

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

          Show
          Maria Odea Ching added a comment - 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': <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> The same parameter is also present as read-only in Maven War Plugin. Is there someway we can work around this?
          Hide
          Maria Odea Ching added a comment -

          This is also a problem with the Emma maven plugin.

          Show
          Maria Odea Ching added a comment - This is also a problem with the Emma maven plugin.
          Hide
          Maria Odea Ching added a comment -

          Should this be filed for the war plugin jira instead? or Cobertura and Emma jiras?

          Show
          Maria Odea Ching added a comment - Should this be filed for the war plugin jira instead? or Cobertura and Emma jiras?
          Hide
          Maria Odea Ching added a comment -

          Similar to what was done in Continuum, I'll remove war:inplace and use multiple webapp sources for maven-jetty-plugin instead.

          Show
          Maria Odea Ching added a comment - Similar to what was done in Continuum, I'll remove war:inplace and use multiple webapp sources for maven-jetty-plugin instead.
          Hide
          Maria Odea Ching added a comment -

          Fixed in trunk -r823065 with the following changes:

          • removed war:inplace config, use multiple source dirs for jetty-plugin instead
          • unpack redback war in target dir
          • configure jetty plugin to use multiple source dirs
          • cleaned up clean-plugin config
          Show
          Maria Odea Ching added a comment - Fixed in trunk -r823065 with the following changes: removed war:inplace config, use multiple source dirs for jetty-plugin instead unpack redback war in target dir configure jetty plugin to use multiple source dirs cleaned up clean-plugin config

            People

            • Assignee:
              Maria Odea Ching
              Reporter:
              Brett Porter
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: