diff --git a/apache-commons-io.spec b/apache-commons-io.spec
index 9a275c6f63f3d87b4f55c827d0d44765a2edbe5d..2d577cb82aba2c1480bbf7319aa02f5ef651868c 100644
--- a/apache-commons-io.spec
+++ b/apache-commons-io.spec
@@ -1,7 +1,7 @@
Name: apache-commons-io
Epoch: 1
Version: 2.6
-Release: 5
+Release: 6
Summary: A library of utilities for developing IO functionality.
License: ASL 2.0
URL: http://commons.apache.org/proper/commons-io
@@ -25,15 +25,20 @@ Help documents for apache-commons-io.
%prep
%autosetup -n commons-io-%{version}-src -p1
+# remove test
+%pom_xpath_remove "pom:dependency[pom:artifactId='junit']/pom:scope"
%build
%mvn_file : commons-io %{name}
%mvn_alias : org.apache.commons:
-%mvn_build
+%mvn_build --skipTests
%install
%mvn_install
+%check
+xmvn test --batch-mode --offline verify
+
%files -f .mfiles
%license LICENSE.txt NOTICE.txt
@@ -41,5 +46,8 @@ Help documents for apache-commons-io.
%doc RELEASE-NOTES.txt
%changelog
+* Mon Apr 26 2021 maminjie - 1:2.6-6
+- Move the test to the %check stage
+
* Thu Dec 5 2019 chenzhenyu - 1:2.6-5
- Package init