Hi,

I took another approach to using the plugin. After upgrading to maven
2.0.3 and maven-site-plugin 2.0-SNAPSHOT the plugin is still not
working. Now there are empty index.html files in the cobertura subdir of
each modul (I still have the plugin configured for each modul with tests).

I can work around this by adding

      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>site</phase>
            <configuration>
              <tasks>
                <!-- TODO: fix this as soon as the plugin does the rigth
thing! -->
                <!-- copying the cobertura reports to the right
place           -->
                <mkdir dir="target/site/cobertura" />
                <copy todir="target/site/cobertura" overwrite="true">
                  <fileset dir="../target/site/cobertura"/>
                </copy>
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>

        </executions>
      </plugin>

to the <build></build> section of my master pom.xml - but that is not
really satisfying (and I guess there is still a bug in the ant-run
plugin ... but that's clearly off topic)

Is there a way to help getting this to work? I might not be of great
help (as I've never developed a plugin for maven 2 before) but I could
at least help testing.

Regards,

Stefan.

Reply via email to