Hi,
Can anyone help me ? I have following entry in my pom file.
<dependencies>
<dependency>
<groupId>net.sourceforge.cobertura</groupId>
<artifactId>cobertura</artifactId>
<version>1.9</version>
</dependency>
</dependencies>
<build>
<plugins>
.
.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<configuration>
<check>
<branchRate>85</branchRate>
<lineRate>85</lineRate>
<haltOnFailure>true</haltOnFailure>
<totalBranchRate>85</totalBranchRate>
<totalLineRate>85</totalLineRate>
<packageLineRate>85</packageLineRate>
<packageBranchRate>85</packageBranchRate>
<regexes>
<regex>
<pattern>
src.main.*
</pattern>
<branchRate>90</branchRate>
<lineRate>80</lineRate>
</regex>
</regexes>
</check>
<instrumentation>
<includes>
<include>d.p.*</include>
<include>d.schemas.*</include>
<include>d.p.service.impl.*</include>
<include>d.p.common.util.*</include>
</includes>
</instrumentation>
</configuration>
<executions>
<execution>
<goals>
<goal>clean</goal>
<goal>check</goal>
<goal>instrument</goal>
<goal>cobertura</goal>
</goals>
</execution>
</executions>
</plugin>
</build>
</plugins>
<reporting>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.2</version>
</plugin>
</plugins>
</reporting>
What I am expecting is coetura should generate reports by executing
$ mvn install
command. But folders are getting generated, but it is not generating
cobertura.ser and reports.
The output in command prompt is
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building p core
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar: E:\WEBLOGIC10-AMT\pCore\target\p-co
re-1.0.jar
[INFO] Preparing cobertura:check
[WARNING] Removing: check from forked lifecycle, to prevent recursive
invocation
.
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [cobertura:instrument]
[WARNING] No files to instrument.
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [cobertura:check {execution: default}]
[INFO] Cannot perform check, instrumentation not performed - skipping.
[INFO] [install:install]
[INFO] Installing E:\WEBLOGIC10-AMT\pCore\target\p-core-
1.0.jar to C:\Documents and
Settings\rp91523\.m2\repository\d\p\p-core\1.0\p-core-1.0.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Thu Aug 27 17:37:33 GMT+05:30 2009
[INFO] Final Memory: 4M/9M
[INFO]
------------------------------------------------------------------------
Thanks in advance....
--
View this message in context:
http://www.nabble.com/Cobertura-report-is-not-getting-generated-by-pom-tp25167546p25167546.html
Sent from the mojo - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email