Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 57491 invoked from network); 5 Jul 2004 23:33:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 5 Jul 2004 23:33:34 -0000 Received: (qmail 94358 invoked by uid 500); 5 Jul 2004 23:33:33 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 94275 invoked by uid 500); 5 Jul 2004 23:33:32 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 94238 invoked by uid 99); 5 Jul 2004 23:33:31 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_BY_IP,SB_NEW_BULK,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received: from [64.233.170.196] (HELO mproxy.gmail.com) (64.233.170.196) by apache.org (qpsmtpd/0.27.1) with SMTP; Mon, 05 Jul 2004 16:33:28 -0700 Received: by mproxy.gmail.com with SMTP id v30so41848rnb for ; Mon, 05 Jul 2004 16:33:02 -0700 (PDT) Received: by 10.38.101.29 with SMTP id y29mr1618516rnb; Mon, 05 Jul 2004 16:33:02 -0700 (PDT) Message-ID: <9e3862d8040705163330009837@mail.gmail.com> Date: Tue, 6 Jul 2004 09:33:02 +1000 From: Brett Porter To: Maven Users List Subject: Re: Dist target executes junit tests twice In-Reply-To: <7FA8605562AB564FB87A19795AED38E60471EAB6@NLDNC004PEX1.ubsgs.ubsgroup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <7FA8605562AB564FB87A19795AED38E60471EAB6@NLDNC004PEX1.ubsgs.ubsgroup.net> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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 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 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