Enable ITs only conditionally

This commit is contained in:
Mikolaj Izdebski 2015-10-28 18:49:16 +01:00
parent 2d9f8a07f2
commit 94d6ed635b

View File

@ -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']]"