Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 97745 invoked from network); 26 May 2010 11:17:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 May 2010 11:17:50 -0000 Received: (qmail 13493 invoked by uid 500); 26 May 2010 11:17:48 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 13194 invoked by uid 500); 26 May 2010 11:17:44 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 12457 invoked by uid 99); 26 May 2010 11:17:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 May 2010 11:17:43 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [213.151.77.9] (HELO mail.abra.cz) (213.151.77.9) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 May 2010 11:17:36 +0000 Received: (qmail 14169 invoked by uid 89); 26 May 2010 11:17:15 -0000 Received: from unknown (HELO ?192.168.1.191?) (martin.schayna@abra.eu@192.168.1.191) by mail.abra.cz with ESMTPA; 26 May 2010 11:17:15 -0000 Message-ID: <4BFD033B.2060603@abra.eu> Date: Wed, 26 May 2010 13:17:15 +0200 From: Martin Schayna User-Agent: Mozilla/5.0 (X11; U; Linux i686; cs-CZ; rv:1.9.1.9pre) Gecko/20100217 Lightning/1.0b1 Shredder/3.0.3pre MIME-Version: 1.0 To: Maven Users List Subject: Re: how can i build a jar file without doing junit test? References: In-Reply-To: X-Stationery: 0.5.1 Content-Type: multipart/alternative; boundary="------------000907000007010108030503" X-Virus-Checked: Checked by ClamAV on apache.org --------------000907000007010108030503 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit This form is compatible with Maven 1: C:\....\"%MAVEN_HOME%\bin\maven" -Dmaven.test.skip=true jar On 26.5.2010 12:48, A. Fuat Sungur wrote: > that is amazing, lots of people answered immediately. But i did not mention > which version i am using. I am using maven 1.0.2, i know this is older but i > have to ( i am using heritrtix crawler and it's documentation talks about > maven version 2.x should not be used ). > > I am currently build a jar file as below : > > C:\....\"%MAVEN_HOME%\bin\maven" jar > > i tried to add "-DskipTests" but it didn't work : > > [junit] Running org.archive.util.fingerprint.MemLongFPSetTest > [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0,266 sec > [junit] Running org.archive.util.InterruptibleCharSequenceTest > [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 28,672 sec > [junit] Running org.archive.util.IoUtilsTest > [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,187 sec > [junit] Running org.archive.util.JmxUtilsTest > [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,234 sec > [junit] Running org.archive.util.MimetypeUtilsTest > [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0,187 sec > [junit] Running org.archive.util.ms.DocTest > [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,359 sec > [junit] Running org.archive.util.ms.PieceReaderTest > [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,235 sec > [junit] Running org.archive.util.PaddingStringBufferTest > [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 0,187 sec > [junit] Running org.archive.util.SurtPrefixSetTest > [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0,25 sec > [junit] Running org.archive.util.SURTTest > [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0,203 sec > [junit] Running org.archive.util.TextUtilsTest > [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0,203 sec > [junit] Running org.archive.util.UriUtilsTest > [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0,203 sec > > thanks. > > On Wed, May 26, 2010 at 11:21 AM, Anders Hammar wrote: > > >> Good. I'm sure we were about to confuse the poor guy with all these >> different suggestions. >> >> Maven proclaims standardization, but yet there are sometimes so many ways >> you can do things...:-) >> >> /Anders >> On Wed, May 26, 2010 at 10:16, Stephen Connolly< >> stephen.alan.connolly@gmail.com> wrote: >> >> >>> "mvn package -DskipTests" is better and shorter to type and easier to >>> remember >>> >>> On 26 May 2010 08:50, fradj zayen wrote: >>> >>> >>>> Hi, >>>> you should run the following command line: >>>> mvn package -Dtest=false -DfailIFNoTests=false >>>> >>>> Hope it helps >>>> Regards >>>> >>>> 2010/5/26 A. Fuat Sungur >>>> >>>> >>>>> Hi, >>>>> >>>>> i am new user of maven and i confess that i like it. its Very handy >>>>> >>> tool >>> >>>> . >>>> >>>>> i >>>>> have a question, building a jar file takes too much time because of >>>>> >>> junit >>> >>>>> test are being performed. how can i build a jar file without doing >>>>> >>> junit >>> >>>>> test? >>>>> >>>>> thanks >>>>> >>>>> -- >>>>> A.Fuat Sungur >>>>> http://sungur.wordpress.com >>>>> >>>>> >>>> >>>> >>>> -- >>>> Zayen Fradj >>>> Ing�nieur Informaticien >>>> Sun Certified Programmer >>>> >>>> >>> >> > > > --------------000907000007010108030503--