[ 
http://jira.codehaus.org/browse/MCOBERTURA-80?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=179934#action_179934
 ] 

Maxim Porges commented on MCOBERTURA-80:
----------------------------------------

We still had issues with Cobertura 2.2 and AspectJ. However, we put all of our 
aspect code in to its own library, and we found that when we built our suite, 
we only had Cobertura errors for the aspects project itself. So, we used the 
excludes directive in the instrumentation configuration to exclude this library 
alone. We obviously don't get Cobertura reports for this library any more, but 
at least we get it for the rest of our suite.

Sample config below.

{noformat}
        <plugin>
           <groupId>org.codehaus.mojo</groupId>
           <artifactId>cobertura-maven-plugin</artifactId>
           <version>2.2</version>
           <configuration>
              <instrumentation>
                 <excludes>
                    <exclude>com/foo/aspects/**/*.class</exclude>
                 </excludes>
              </instrumentation>
           </configuration>
        </plugin>
{noformat}

> Interoperability problem with AspectJ plugin
> --------------------------------------------
>
>                 Key: MCOBERTURA-80
>                 URL: http://jira.codehaus.org/browse/MCOBERTURA-80
>             Project: Maven 2.x Cobertura Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: cobertura-maven-plugin 2.2-SNAPSHOT
> aspectj-maven-plugin 1.0-beta-4-SNAPSHOT
>            Reporter: Ivan POPOV
>            Priority: Blocker
>
> Is someone can help me to fix this problem ?
> Regards.
> This is the stacktrace :
> 2007-12-18 17:35:45,010 [Thread-31033] INFO  - [INFO] Preparing 
> surefire-report:report-only
> 2007-12-18 17:35:45,024 [Thread-31033] INFO  - [INFO] No goals needed for 
> project - skipping
> 2007-12-18 17:35:45,024 [Thread-31033] INFO  - [INFO] Preparing 
> cobertura:cobertura
> 2007-12-18 17:35:45,041 [Thread-31033] INFO  - [INFO] [aspectj:compile 
> {execution: default}]
> 2007-12-18 17:35:45,186 [Thread-31033] INFO  - [INFO] [resources:resources]
> 2007-12-18 17:35:45,186 [Thread-31033] INFO  - [INFO] Using default encoding 
> to copy filtered resources.
> 2007-12-18 17:35:45,193 [Thread-31033] INFO  - [INFO] [compiler:compile]
> 2007-12-18 17:35:45,201 [Thread-31033] INFO  - [INFO] Nothing to compile - 
> all classes are up to date
> 2007-12-18 17:35:45,202 [Thread-31033] INFO  - [INFO] [cobertura:instrument]
> 2007-12-18 17:35:46,725 [Thread-31033] INFO  - [INFO] Cobertura 1.9 - GNU GPL 
> License (NO WARRANTY) - See COPYRIGHT file
> 2007-12-18 17:35:46,725 [Thread-31033] INFO  - Instrumenting 22 files to 
> /SOFT/INT/quickbuild-1.2.12/working/root/decalog-framework/HEAD/checkouts/decalog-framework/common-application/target/generated-classes/cobertura
> 2007-12-18 17:35:46,725 [Thread-31033] INFO  - Cobertura: Saved information 
> on 22 classes.
> 2007-12-18 17:35:46,725 [Thread-31033] INFO  - Instrument time: 822ms
> 2007-12-18 17:35:46,725 [Thread-31033] INFO  - 
> 2007-12-18 17:35:46,725 [Thread-31033] INFO  - [INFO] Instrumentation was 
> successful.
> 2007-12-18 17:35:46,729 [Thread-31033] INFO  - [INFO] [aspectj:test-compile 
> {execution: default}]
> 2007-12-18 17:35:47,310 [Thread-31033] INFO  - [ERROR] Cannot read debug info 
> for @Aspect to handle formal binding in pointcuts (please compile with 'javac 
> -g' or '<javac debug='true'.../>' in Ant)
> 2007-12-18 17:35:47,310 [Thread-31033] INFO  - [ERROR] Cannot read debug info 
> for @Aspect to handle formal binding in pointcuts (please compile with 'javac 
> -g' or '<javac debug='true'.../>' in Ant)
> 2007-12-18 17:35:47,310 [Thread-31033] INFO  - [ERROR] Cannot read debug info 
> for @Aspect to handle formal binding in pointcuts (please compile with 'javac 
> -g' or '<javac debug='true'.../>' in Ant)
> 2007-12-18 17:35:47,356 [Thread-31033] INFO  - [ERROR] Cannot read debug info 
> for @Aspect to handle formal binding in pointcuts (please compile with 'javac 
> -g' or '<javac debug='true'.../>' in Ant)
> 2007-12-18 17:35:47,356 [Thread-31033] INFO  - [ERROR] Cannot read debug info 
> for @Aspect to handle formal binding in pointcuts (please compile with 'javac 
> -g' or '<javac debug='true'.../>' in Ant)
> 2007-12-18 17:35:47,356 [Thread-31033] INFO  - [ERROR] Cannot read debug info 
> for @Aspect to handle formal binding in pointcuts (please compile with 'javac 
> -g' or '<javac debug='true'.../>' in Ant)
> 2007-12-18 17:35:47,375 [Thread-31033] INFO  - [INFO] 
> ------------------------------------------------------------------------
> 2007-12-18 17:35:47,375 [Thread-31033] INFO  - [ERROR] BUILD ERROR
> 2007-12-18 17:35:47,375 [Thread-31033] INFO  - [INFO] 
> ------------------------------------------------------------------------
> 2007-12-18 17:35:47,382 [Thread-31033] INFO  - [INFO] Compiler errors : 
> 2007-12-18 17:35:47,382 [Thread-31033] INFO  - error at <Unknown>::0 Cannot 
> read debug info for @Aspect to handle formal binding in pointcuts (please 
> compile with 'javac -g' or '<javac debug='true'.../>' in Ant)
> 2007-12-18 17:35:47,382 [Thread-31033] INFO  - error at <Unknown>::0 Cannot 
> read debug info for @Aspect to handle formal binding in pointcuts (please 
> compile with 'javac -g' or '<javac debug='true'.../>' in Ant)
> 2007-12-18 17:35:47,382 [Thread-31033] INFO  - error at <Unknown>::0 Cannot 
> read debug info for @Aspect to handle formal binding in pointcuts (please 
> compile with 'javac -g' or '<javac debug='true'.../>' in Ant)
> 2007-12-18 17:35:47,383 [Thread-31033] INFO  - error at 
> com/sungard/decalog/framework/application/observing/Observing.java::0 Cannot 
> read debug info for @Aspect to handle formal binding in pointcuts (please 
> compile with 'javac -g' or '<javac debug='true'.../>' in Ant)
> 2007-12-18 17:35:47,383 [Thread-31033] INFO  - error at 
> com/sungard/decalog/framework/application/observing/Observing.java::0 Cannot 
> read debug info for @Aspect to handle formal binding in pointcuts (please 
> compile with 'javac -g' or '<javac debug='true'.../>' in Ant)
> 2007-12-18 17:35:47,383 [Thread-31033] INFO  - error at 
> com/sungard/decalog/framework/application/observing/Observing.java::0 Cannot 
> read debug info for @Aspect to handle formal binding in pointcuts (please 
> compile with 'javac -g' or '<javac debug='true'.../>' in Ant)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to