I was thinking along the same lines except you probably want to exclude the tests on 
the jar build since one would like to see the unit test report on the site that is 
generated.

<goal name="myGoal">
  <attainGoal name="site:generate"/>
  <property name='maven.test.skip' value='true'/>
  <attainGoal name="jar:install"/>
</goal>

Sri
-----Original Message-----
From: Tomasz Pik [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 25, 2003 9:12 AM
To: Maven Users List
Subject: Re: Unit tests run twice ?

Eric Berenguier wrote:

> Hi,

Hi,

Maybe this help (sorry, not tested):

> I'd like to write a single goal that install jar to repository and 
> produce the maven site:
> So i wrote something like this :
> 
> <goal name="myGoal">
>    <attainGoal name="jar:install"/>

     <property name='maven.test.skip' value='true'/>

>    <attainGoal name="site:generate"/>
> </goal>
> 
> It works but both jar:install and site:generate call the test:test goal, 
> so i have my unit tests run twice.
> It's a real problem when unit tests take a long time to run.
> 
> Am i missing something ?
>            Eric Berenguier

Tomek




---------------------------------------------------------------------
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