From d106ba8ee4161d2c30c10b996b50a73381159e97 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Tue, 21 Apr 2020 06:54:52 +0200 Subject: [PATCH] Reduce test dependencies --- plexus-classworlds.spec | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/plexus-classworlds.spec b/plexus-classworlds.spec index ab52e8c..a06cf4f 100644 --- a/plexus-classworlds.spec +++ b/plexus-classworlds.spec @@ -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