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<[email protected]>  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<
[email protected]>  wrote:

"mvn package -DskipTests" is better and shorter to type and easier to
remember

On 26 May 2010 08:50, fradj zayen<[email protected]>  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<[email protected]>

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



Reply via email to