You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Rakesh Arora <ra...@nortel.com> on 2009/04/02 18:27:03 UTC
Problem with Using cobertura-maven-plugin and aspectj-maven-plugin
together in a project
I am having problem using cobertura and aspectj plugin together. My code
coverage is incorrectly reported as 0%
AspectJ is only used for unit testing, so project is configured to run
test-compile only. Here is what i think is happening:
- cobertura instruments the java class files (*.class) in
target/generated-sources/cobertura
- aspectj:test-compile is not picking up the class files generated (*.class)
in the above step, it picks up the java source files (*.java) from
src/main/java and src/main/test.
I think ajc compiler needs -inpath option to weave the *.class files in
target/generated-sources/cobertura directory but i couldn't find a
configuration option for aspectj plugin to set this option.
Any idea?
Thanks,
-Rakesh
--
View this message in context: http://www.nabble.com/Problem-with-Using-cobertura-maven-plugin-and-aspectj-maven-plugin-together-in-a-project-tp22851108p22851108.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org