From 1eec82748f2f8626f23658d903278a29bd25dacf Mon Sep 17 00:00:00 2001 From: wuzhen Date: Fri, 17 Sep 2021 11:05:30 +0800 Subject: [PATCH] Add "-Dmaven.skip.test=true" to skip maven test. --- jersey.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jersey.spec b/jersey.spec index c303abc..7dbbbf8 100644 --- a/jersey.spec +++ b/jersey.spec @@ -1,7 +1,7 @@ %bcond_with jp_minimal Name: jersey Version: 2.29.1 -Release: 1 +Release: 2 Summary: JAX-RS (JSR 311) production quality Reference Implementation License: (EPL-2.0 or GPLv2 with exceptions) and ASL 2.0 URL: https://github.com/eclipse-ee4j/jersey @@ -198,10 +198,11 @@ sed -i -e 's/javax\.activation\.\*;/javax.activation.*;resolution:=optional;/' c %build %if %{without jp_minimal} %mvn_build -- -PsecurityOff -Dasm.version=6.2.1 -Dmaven.test.failure.ignore=true \ - -Dexamples.excluded -Dtests.excluded -Dbundles.excluded + -Dexamples.excluded -Dtests.excluded -Dbundles.excluded -Dmaven.test.skip=true %else %mvn_build -f -- -PsecurityOff -Dasm.version=6.2.1 -Dmaven.test.failure.ignore=true \ - -Dexamples.excluded -Dtests.excluded -Dbundles.excluded -Dtest-framework.excluded + -Dexamples.excluded -Dtests.excluded -Dbundles.excluded -Dtest-framework.excluded \ + -Dmaven.test.skip=true %endif %install -- Gitee