You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mark Proctor <li...@markproctor.com> on 2005/05/09 18:14:07 UTC

Clover Plugin 1.7 and multiproject on Maven 1.0.2

I'm trying to do clover multiproject build with maven 1.0.2 and clover
plugin 1.7. This use to work but with the upgrade to 1.7 I noticed it is
now broken, not sure if its 1.7 or a change in our code. Everything
compiles and runs fine, each project reports that it is updating the
same database but only the last compiled and run project has its results
in the report.

You can test this youself by checking out the source for branch 2.0:
cvs -z3 -d
:pserver:anonymous@cvs.drools.codehaus.org:/home/projects/drools/scm co
-r branch-2_0 drools

The following is set at toplevel project.properties:
maven.clover.database=${basedir}/../target/clover/database/clover_coverage.db
maven.clover.report.html=true

The following is in each sub project maven.xml
<goal name="drools:clover" prereqs="clover:on, jar:jar" />

The following is in toplevel maven.xml
    <goal name="drools:clover">
      <!-- Exclude example projects -->
      <j:set var="temp" value="${maven.multiproject.excludes}" /> <!--
first back up original excludes -->
      <j:set var="maven.multiproject.excludes"

value="${maven.multiproject.excludes},drools-examples/**,drools-examples-jdk5/** 

"/> <!-- now exclude examples -->

      <!-- initial directory set in project properties -->
      <j:set var="goal" value="drools:clover" />
      <attainGoal name="multiproject:goal"/>

      <!-- override project properties -->
      <j:set var="maven.clover.database"
             value="${basedir}/target/clover/database/clover_coverage.db"/>

      <attainGoal name="clover:on"/>
      <attainGoal name="clover:report"/>

      <j:set var="maven.multiproject.excludes" value="${temp}" /> <!--
reset excludes -->
    </goal>


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


RE: Clover Plugin 1.7 and multiproject on Maven 1.0.2

Posted by Vincent Massol <vm...@pivolis.com>.
Hi Mark,

> -----Original Message-----
> From: Mark Proctor [mailto:lists@markproctor.com]
> Sent: mardi 10 mai 2005 06:15
> To: Maven Users List
> Subject: Re: Clover Plugin 1.7 and multiproject on Maven 1.0.2

[snip]

> >> I'm trying to do clover multiproject build with maven 1.0.2 and clover
> >> plugin 1.7. This use to work but with the upgrade to 1.7 I noticed it
> is
> >> now broken, not sure if its 1.7 or a change in our code. 

Why don't you try with the previous version you were using the check if it's
in the clover plugin or not?

One point though: Are you forking your tests or not?

Thanks
-Vincent



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


Re: Clover Plugin 1.7 and multiproject on Maven 1.0.2

Posted by Mark Proctor <li...@markproctor.com>.
I fixed those build errors and its till producing the same issue - ie 
only ever including the results from the last sub project- and i have 
tried using eclipse to change the modules being built, always the same 
issue. They defintely all report that they are updating the same DB.

Mark
Mark Proctor wrote:

> Ignore this, got it working, was a missing goal in a sub project.
>
> Mark
> Mark Proctor wrote:
>
>> I'm trying to do clover multiproject build with maven 1.0.2 and clover
>> plugin 1.7. This use to work but with the upgrade to 1.7 I noticed it is
>> now broken, not sure if its 1.7 or a change in our code. Everything
>> compiles and runs fine, each project reports that it is updating the
>> same database but only the last compiled and run project has its results
>> in the report.
>>
>> You can test this youself by checking out the source for branch 2.0:
>> cvs -z3 -d
>> :pserver:anonymous@cvs.drools.codehaus.org:/home/projects/drools/scm co
>> -r branch-2_0 drools
>>
>> The following is set at toplevel project.properties:
>> maven.clover.database=${basedir}/../target/clover/database/clover_coverage.db 
>>
>> maven.clover.report.html=true
>>
>> The following is in each sub project maven.xml
>> <goal name="drools:clover" prereqs="clover:on, jar:jar" />
>>
>> The following is in toplevel maven.xml
>>    <goal name="drools:clover">
>>      <!-- Exclude example projects -->
>>      <j:set var="temp" value="${maven.multiproject.excludes}" /> <!--
>> first back up original excludes -->
>>      <j:set var="maven.multiproject.excludes"
>>
>> value="${maven.multiproject.excludes},drools-examples/**,drools-examples-jdk5/** 
>>
>> "/> <!-- now exclude examples -->
>>
>>      <!-- initial directory set in project properties -->
>>      <j:set var="goal" value="drools:clover" />
>>      <attainGoal name="multiproject:goal"/>
>>
>>      <!-- override project properties -->
>>      <j:set var="maven.clover.database"
>>             
>> value="${basedir}/target/clover/database/clover_coverage.db"/>
>>
>>      <attainGoal name="clover:on"/>
>>      <attainGoal name="clover:report"/>
>>
>>      <j:set var="maven.multiproject.excludes" value="${temp}" /> <!--
>> reset excludes -->
>>    </goal>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>


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


Re: Clover Plugin 1.7 and multiproject on Maven 1.0.2

Posted by Mark Proctor <li...@markproctor.com>.
Ignore this, got it working, was a missing goal in a sub project.

Mark
Mark Proctor wrote:

> I'm trying to do clover multiproject build with maven 1.0.2 and clover
> plugin 1.7. This use to work but with the upgrade to 1.7 I noticed it is
> now broken, not sure if its 1.7 or a change in our code. Everything
> compiles and runs fine, each project reports that it is updating the
> same database but only the last compiled and run project has its results
> in the report.
>
> You can test this youself by checking out the source for branch 2.0:
> cvs -z3 -d
> :pserver:anonymous@cvs.drools.codehaus.org:/home/projects/drools/scm co
> -r branch-2_0 drools
>
> The following is set at toplevel project.properties:
> maven.clover.database=${basedir}/../target/clover/database/clover_coverage.db 
>
> maven.clover.report.html=true
>
> The following is in each sub project maven.xml
> <goal name="drools:clover" prereqs="clover:on, jar:jar" />
>
> The following is in toplevel maven.xml
>    <goal name="drools:clover">
>      <!-- Exclude example projects -->
>      <j:set var="temp" value="${maven.multiproject.excludes}" /> <!--
> first back up original excludes -->
>      <j:set var="maven.multiproject.excludes"
>
> value="${maven.multiproject.excludes},drools-examples/**,drools-examples-jdk5/** 
>
> "/> <!-- now exclude examples -->
>
>      <!-- initial directory set in project properties -->
>      <j:set var="goal" value="drools:clover" />
>      <attainGoal name="multiproject:goal"/>
>
>      <!-- override project properties -->
>      <j:set var="maven.clover.database"
>             
> value="${basedir}/target/clover/database/clover_coverage.db"/>
>
>      <attainGoal name="clover:on"/>
>      <attainGoal name="clover:report"/>
>
>      <j:set var="maven.multiproject.excludes" value="${temp}" /> <!--
> reset excludes -->
>    </goal>
>
>
> ---------------------------------------------------------------------
> 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