Enable ITs only conditionally
This commit is contained in:
parent
2d9f8a07f2
commit
94d6ed635b
@ -2,6 +2,10 @@
|
|||||||
# any additional bundles.
|
# any additional bundles.
|
||||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^osgi\\($
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^osgi\\($
|
||||||
|
|
||||||
|
# Integration tests are disabled by default, but you can run them by
|
||||||
|
# adding "--with its" to rpmbuild or mock invocation.
|
||||||
|
%bcond_with its
|
||||||
|
|
||||||
Name: xmvn
|
Name: xmvn
|
||||||
Version: 2.5.0
|
Version: 2.5.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
@ -153,6 +157,10 @@ This package provides %{summary}.
|
|||||||
|
|
||||||
%mvn_package ":xmvn{,-it}" __noinstall
|
%mvn_package ":xmvn{,-it}" __noinstall
|
||||||
|
|
||||||
|
%if %{without its}
|
||||||
|
%pom_disable_module xmvn-it
|
||||||
|
%endif
|
||||||
|
|
||||||
# remove dependency plugin maven-binaries execution
|
# remove dependency plugin maven-binaries execution
|
||||||
# we provide apache-maven by symlink
|
# we provide apache-maven by symlink
|
||||||
%pom_xpath_remove "pom:executions/pom:execution[pom:id[text()='maven-binaries']]"
|
%pom_xpath_remove "pom:executions/pom:execution[pom:id[text()='maven-binaries']]"
|
||||||
|
Loading…
Reference in New Issue
Block a user