cobertura-maven-plugin
cobertura-maven-plugin copied to clipboard
Cobertura plugin seems to fail when attempting to run both check and cobertura in test phase
This is the error I get when I attempt to run both check and cobertura in test phase. It's also not clear if cobertura can run in verify phase skipping tests on it's own since that also fails.
In the end what I'm looking for is working configuration (in a POM file) that would run check and give reporting. This plugin does not seem able to do both as far as I can tell.
e.g. execution:
<executions>
<execution>
<id>default-cobertura</id>
<phase>test</phase>
<goals>
<goal>cobertura</goal>
<goal>check</goal>
</goals>
</execution>
</executions>
[INFO] --- cobertura-maven-plugin:2.7:instrument (default-cobertura) @ project-id ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:45 min
[INFO] Finished at: 2015-10-06T17:41:41-04:00
[INFO] Final Memory: 40M/1963M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "master" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.codehaus.mojo:cobertura-maven-plugin:2.7:instrument (default-cobertura) on project doc-core: Unable to prepare instrumentation directory. source and destination are the same directory. -> [Help 1]
I am facing the same problem. Any update on this issue?
Are you using Jenkins job to execute this?