maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Herscu <bmf1...@fastmail.fm>
Subject Re: [m2] cobertura-maven-plugin specify: '-Dinstrumentation=VALUE'
Date Tue, 24 Apr 2007 07:27:08 GMT
Version 2.1 always reports 100% coverage...

Wayne Fay wrote:
> I checked the user@ archive and sure enough, this is a bug in the
> documentation -- you must wrap the <ignore/> nodes insides <ignores/>.
> Same with <exclude/> and I assume <include/>.
> 
> Wayne
> 
> On 4/23/07, Wayne Fay <waynefay@gmail.com> wrote:
>> Any reason you're using 2.0 instead of 2.1? Give it a try and see if
>> it works any better.
>>
>> Also, perhaps try wrapping your ignore node(s) inside an ignores node:
>> <ignores>
>> <ignore>...</ignore>
>> </ignores>
>>
>> Wayne
>>
>> On 4/22/07, Adrian Herscu <bmf1972@fastmail.fm> wrote:
>> > Hi all,
>> >
>> > I am using the cobertura-maven-plugin 2.0 and I want to make it ignore
>> > the classes in some package, so I am specifying:
>> >         <configuration>
>> >           <instrumentation>
>> >             <ignore>org.foo.*</ignore>
>> >           </instrumentation>
>> >         </configuration>
>> > This causes the build to fail with the following message:
>> > [ERROR] BUILD ERROR
>> > [INFO]
>> > 
>> ------------------------------------------------------------------------
>> > [INFO] Failed to configure plugin parameters for:
>> > org.codehaus.mojo:cobertura-maven-plugin:2.0
>> >
>> > on the command line, specify: '-Dinstrumentation=VALUE'
>> >
>> > Cause: Cannot find setter nor field in
>> > org.codehaus.mojo.cobertura.configuration.ConfigInstrumentation for 
>> 'ignore'
>> >
>> > Adrian.
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>> >
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message