You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Mike Perham <Mi...@webifysolutions.com> on 2006/04/12 00:34:45 UTC
clover and cpd plugin clashes
So this is an interesting bug.
I have clover and pmd:cpd-check configured. Clover injects a block of
source into every source file for instrumentation purposes. cpd sees
this block of code as copy/pasted code because it occurs in every source
file and fails my build.
Who's in the wrong here? I'm inclined to say it's a Clover plugin bug
because it should not be exposing its modified code as source to be
examined by other plugins.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
RE: clover and cpd plugin clashes
Posted by Vincent Massol <vm...@pivolis.com>.
Hi Mike,
(answering an email from the past that I hadn't processed and was still
sitting in my inbox)
> -----Original Message-----
> From: Mike Perham [mailto:Mike.Perham@webifysolutions.com]
> Sent: mercredi 12 avril 2006 00:35
> To: Maven Developers List
> Subject: clover and cpd plugin clashes
>
> So this is an interesting bug.
>
> I have clover and pmd:cpd-check configured. Clover injects a block of
> source into every source file for instrumentation purposes. cpd sees
> this block of code as copy/pasted code because it occurs in every source
> file and fails my build.
>
> Who's in the wrong here? I'm inclined to say it's a Clover plugin bug
> because it should not be exposing its modified code as source to be
> examined by other plugins.
Maybe the faulty is CPD because it should accept to ignore some specified
blocks of code? :-)
What we should do is disable the CPD check in the custom lifecycle spawned
by the clover plugin. Why don't you simply remote the cpd-check from your
clover <execution>?
-Vincent
___________________________________________________________________________
Yahoo! Mail r�invente le mail ! D�couvrez le nouveau Yahoo! Mail et son interface r�volutionnaire.
http://fr.mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
RE: clover and cpd plugin clashes
Posted by Vincent Massol <vm...@pivolis.com>.
> -----Original Message-----
> From: Brett Porter [mailto:brett@apache.org]
> Sent: mercredi 12 avril 2006 05:31
> To: Maven Developers List
> Subject: Re: clover and cpd plugin clashes
>
> Yep, that's definitely a limitation. Something to think about.
>
> I didn't think CPD would check generated sources, though - perhaps
> that's something to change?
Yes, that's the only option I can think of actually...
> The only workaround I can think of is to bind the cpd check to something
> later than clover executes, such as "verify".
That wouldn't work anymore as I've modified the clover plugin and the
instrument mojo is now bound to the install phase. I need this to be able to
support test coverage contributions brought by integration and functional
tests (the clovered artifacts need to be installed in the local repo).
-Vincent
> Vincent Massol wrote:
> > Hi Mike and all,
> >
> >> -----Original Message-----
> >> From: Mike Perham [mailto:Mike.Perham@webifysolutions.com]
> >> Sent: mercredi 12 avril 2006 00:35
> >> To: Maven Developers List
> >> Subject: clover and cpd plugin clashes
> >>
> >> So this is an interesting bug.
> >>
> >> I have clover and pmd:cpd-check configured. Clover injects a block of
> >> source into every source file for instrumentation purposes. cpd sees
> >> this block of code as copy/pasted code because it occurs in every
> source
> >> file and fails my build.
> >>
> >> Who's in the wrong here? I'm inclined to say it's a Clover plugin bug
> >> because it should not be exposing its modified code as source to be
> >> examined by other plugins.
> >
> > The clover plugin makes all its changes in a forked lifecycle in order
> not
> > to impact the main build lifecycle. However the issue I have is how to
> > "exclude" some goals from executing while in the forked lifecycle.
> >
> > This is a big issue and I don't have the answer right now...
> >
> > I'd appreciate any help here.
> >
> > Thanks
> > -Vincent
> >
> >
> >
> >
> >
> >
> >
> __________________________________________________________________________
> _
> > Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les
> tarifs exceptionnels pour appeler la France et l'international.
> > Téléchargez sur http://fr.messenger.yahoo.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: clover and cpd plugin clashes
Posted by Brett Porter <br...@apache.org>.
Yep, that's definitely a limitation. Something to think about.
I didn't think CPD would check generated sources, though - perhaps
that's something to change?
The only workaround I can think of is to bind the cpd check to something
later than clover executes, such as "verify".
- Brett
Vincent Massol wrote:
> Hi Mike and all,
>
>> -----Original Message-----
>> From: Mike Perham [mailto:Mike.Perham@webifysolutions.com]
>> Sent: mercredi 12 avril 2006 00:35
>> To: Maven Developers List
>> Subject: clover and cpd plugin clashes
>>
>> So this is an interesting bug.
>>
>> I have clover and pmd:cpd-check configured. Clover injects a block of
>> source into every source file for instrumentation purposes. cpd sees
>> this block of code as copy/pasted code because it occurs in every source
>> file and fails my build.
>>
>> Who's in the wrong here? I'm inclined to say it's a Clover plugin bug
>> because it should not be exposing its modified code as source to be
>> examined by other plugins.
>
> The clover plugin makes all its changes in a forked lifecycle in order not
> to impact the main build lifecycle. However the issue I have is how to
> "exclude" some goals from executing while in the forked lifecycle.
>
> This is a big issue and I don't have the answer right now...
>
> I'd appreciate any help here.
>
> Thanks
> -Vincent
>
>
>
>
>
>
> ___________________________________________________________________________
> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
> Téléchargez sur http://fr.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
RE: clover and cpd plugin clashes
Posted by Vincent Massol <vm...@pivolis.com>.
Hi Mike and all,
> -----Original Message-----
> From: Mike Perham [mailto:Mike.Perham@webifysolutions.com]
> Sent: mercredi 12 avril 2006 00:35
> To: Maven Developers List
> Subject: clover and cpd plugin clashes
>
> So this is an interesting bug.
>
> I have clover and pmd:cpd-check configured. Clover injects a block of
> source into every source file for instrumentation purposes. cpd sees
> this block of code as copy/pasted code because it occurs in every source
> file and fails my build.
>
> Who's in the wrong here? I'm inclined to say it's a Clover plugin bug
> because it should not be exposing its modified code as source to be
> examined by other plugins.
The clover plugin makes all its changes in a forked lifecycle in order not
to impact the main build lifecycle. However the issue I have is how to
"exclude" some goals from executing while in the forked lifecycle.
This is a big issue and I don't have the answer right now...
I'd appreciate any help here.
Thanks
-Vincent
___________________________________________________________________________
Nouveau : t�l�phonez moins cher avec Yahoo! Messenger ! D�couvez les tarifs exceptionnels pour appeler la France et l'international.
T�l�chargez sur http://fr.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org