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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

Reply via email to