You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ti...@ubs.com on 2004/07/05 14:17:26 UTC

Dist target executes junit tests twice

Hi all,
Hope someone can point me in the right direction.  When I run "maven dist" my unit tests are executed on when the jar sub goal as well as the junit-report sub goal.  Is there anyway to have the tests only run once?
regards
tinus

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


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


Re: Dist target executes junit tests twice

Posted by Brett Porter <br...@gmail.com>.
Not easily... you need to tell the goals to use the same werkz
session, and doing this by default breaks some existing behaviour.

Your best bet might be to preGoal maven-junit-report-plugin:report and do
<maven:set plugin="maven-test-plugin" property="maven.test.skip" value="true" />
but bear in mind this will always skip the tests, even if jar was not run first.

- Brett

On Mon, 5 Jul 2004 13:17:26 +0100, tinus.rautenbach@ubs.com
<ti...@ubs.com> wrote:
> Hi all,
> Hope someone can point me in the right direction.  When I run "maven dist" my unit tests are executed on when the jar sub goal as well as the junit-report sub goal.  Is there anyway to have the tests only run once?
> regards
> tinus
> 
> Visit our website at http://www.ubs.com
> 
> This message contains confidential information and is intended only
> for the individual named.  If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail.  Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
> 
> E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses.  The sender therefore
> does not accept liability for any errors or omissions in the contents
> of this message which arise as a result of e-mail transmission.  If
> verification is required please request a hard-copy version.  This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities or
> related financial instruments.
> 
> ---------------------------------------------------------------------
> 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