It looks like this is a known issue in the aspectj-maven-plugin. 

http://jira.codehaus.org/browse/MOJO-456

Looks like we're using the latest version, so I guess I need to add a new
execution with a configuration to do weaveMainSourceFolder=false.

Matt


mraible wrote:
> 
> Hmmm, it looks like the aspectj-maven-plugin is causing the problem. If I
> remove the following from my pom.xml, everything works fine:
> 
> <plugin>
>                 <groupId>org.codehaus.mojo</groupId>
>                 <artifactId>aspectj-maven-plugin</artifactId>
>                 <version>1.0-beta-2</version>
>                 <configuration>
>                     <source>1.5</source>
>                     <verbose>true</verbose>
>                     <complianceLevel>1.5</complianceLevel>
>                     <showWeaveInfo>true</showWeaveInfo>
>                     <aspectLibraries>
>                         <aspectLibrary>
>                             <groupId>org.springframework</groupId>
>                             <artifactId>spring-aspects</artifactId>
>                         </aspectLibrary>
>                     </aspectLibraries>
>                 </configuration>
>                 <executions>
>                     <execution>
>                         <goals>
>                             <goal>compile</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
> 
> Any ideas how to make the two play nicely together?
> 
> Matt
> 
> mraible wrote:
>> 
>> This is what I'm using. However, it reports 0% coverage. Maybe this is
>> caused by another plugin?
>> 
>> Matt
>> 
>> 
>> Iker Almandoz wrote:
>>> 
>>> Matt, 
>>> Cobertura 2.0 works ok for me...
>>> 
>>> My pom.xml has:
>>> 
>>>   <build>
>>>    <plugins>
>>>     <plugin>
>>>     <groupId>org.codehaus.mojo</groupId>
>>>     <artifactId>cobertura-maven-plugin</artifactId>
>>>     <version>2.0</version>
>>>     </plugin>
>>> ....
>>> 
>>> That sets the cobertura version to 2.0 as the latest did not seem to
>>> work...
>>> 
>>>   <reporting>
>>>   <plugins>
>>> 
>>>            <plugin>
>>>                    <groupId>org.codehaus.mojo</groupId>
>>>                    <artifactId>cobertura-maven-plugin</artifactId>
>>>            </plugin>
>>> 
>>> 
>>> Regards, 
>>> Iker
>>> 
>>> -----Original Message-----
>>> From: mraible [mailto:[EMAIL PROTECTED] 
>>> Sent: Monday, September 24, 2007 9:57 AM
>>> To: users@maven.apache.org
>>> Subject: Code Coverage Plugins with Maven 2
>>> 
>>> 
>>> AFAICT, the cobertura-maven-plugin (versions 2.0 and 2.1) doesn't work
>>> and
>>> neither does the emma-maven-plugin in Mojo's sandbox. Has anyone had any
>>> luck with either of these plugins? Is there an open source code-coverage
>>> plugin that works with Maven 2? I know about Clover, but that's not open
>>> source.
>>> 
>>> Using Emma and Cobertura with Ant seem to work great.
>>> 
>>> Thanks,
>>> 
>>> Matt
>>> -- 
>>> View this message in context:
>>> http://www.nabble.com/Code-Coverage-Plugins-with-Maven-2-tf4510331s177.html#
>>> a12863761
>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Code-Coverage-Plugins-with-Maven-2-tf4510331s177.html#a12864482
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to