maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st├ęphane bouchet <Stephane.Bouc...@emn.fr>
Subject Cobertura and Aspectj
Date Tue, 02 Aug 2005 09:49:06 GMT
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


Mime
View raw message