You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by stéphane bouchet <St...@emn.fr> on 2005/08/02 11:49:06 UTC
Cobertura and Aspectj
Hi,
i am trying to use cobertura with aspectj but it doesn't work :
It seems that cobertura canot find the aspectJ libraries ?
I use JDK 5.0, Win2k, Maven 1.0.2, last cobertura and aspectj plugins
Thanks
cobertura:on:
[mkdir] Created dir: C:\eclipse\workspace\CASTOR-core\target\docs\cobertura
[mkdir] Created dir: C:\eclipse\workspace\CASTOR-core\target\cobertura\classes
instrumenting the class-files...
Cobertura cvs
The copyright for this program is retained by its contributors
See the included COPYRIGHT file for a complete list of contributors
Cobertura is licensed under the GNU General Public License
Cobertura comes with ABSOLUTELY NO WARRANTY
instrumenting 138 classes to
C:\eclipse\workspace\CASTOR-core\target\cobertura\classes
[cobertura-instrument] Exception in thread "main"
java.lang.IllegalArgumentException: Unknown attribute type:
org.aspectj.weaver.MethodDeclarationLineNumber
[cobertura-instrument] at org.objectweb.asm.Attribute.a(Unknown Source)
[cobertura-instrument] at org.objectweb.asm.MethodWriter.a(Unknown Source)
[cobertura-instrument] at
org.objectweb.asm.ClassWriter.toByteArray(Unknown Source)
[cobertura-instrument] at
net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:174)
[cobertura-instrument] at
net.sourceforge.cobertura.instrument.Main.addInstrumentation(Main.java:208)
[cobertura-instrument] at
net.sourceforge.cobertura.instrument.Main.parseArguments(Main.java:245)
[cobertura-instrument] at
net.sourceforge.cobertura.instrument.Main.main(Main.java:304)
org.apache.commons.jelly.JellyTagException: C:\Documents and
Settings\sbouchet\.maven\cache\maven-cobertura-plugin-1.1\plugin.jelly:125:115:
<ant:cobertura-instrument> Error instrumenting classes. See messages above.
org.apache.commons.jelly.JellyTagException: C:\Documents and
Settings\sbouchet\.maven\cache\maven-cobertura-plugin-1.1\plugin.jelly:144:35:
<ant:fail> org.apache.commons.jelly.JellyTagException: C:\Documents and
Settings\sbouchet\.maven\cache\maven-cobertura-plugin-1.1\plugin.jelly:125:115:
<ant:cobertura-instrument> Error instrumenting classes. See messages above.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org