Reduce test dependencies

This commit is contained in:
Mikolaj Izdebski 2020-04-21 06:54:52 +02:00
parent 8fbe1db53b
commit d106ba8ee4

View File

@ -10,16 +10,8 @@ Source0: https://github.com/codehaus-plexus/%{name}/archive/%{name}-%{ver
BuildRequires: maven-local-openjdk8
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.codehaus.plexus:plexus:pom:)
# test deps missed by builddep
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(xml-apis:xml-apis)
%description
Classworlds is a framework for container developers
who require complex manipulation of Java's ClassLoaders.
@ -38,6 +30,13 @@ classworlds.
%mvn_file : %{name} plexus/classworlds
%mvn_alias : classworlds:classworlds
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-dependency-plugin
# These tests depend on artifacts that are not packaged
sed -i /testConfigure_Valid/s/./@org.junit.Ignore/ $(find -name ConfiguratorTest.java)
sed -i /testConfigure_Optionally_Existent/s/./@org.junit.Ignore/ $(find -name ConfiguratorTest.java)
%build
%mvn_build