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