diff --git a/java/algorithm/pom.xml b/java/algorithm/pom.xml
index dc15dab532f64..2ea737e4acc18 100644
--- a/java/algorithm/pom.xml
+++ b/java/algorithm/pom.xml
@@ -67,20 +67,12 @@
pom.xml
-
- ../dev/license/asf-xml.license
- (<configuration|<project)
-
**/*.java
-
- ../dev/license/asf-java.license
- package
-
@@ -88,6 +80,10 @@
1.7
+
+ ../dev/license/asf-java.license
+ package
+
diff --git a/java/pom.xml b/java/pom.xml
index ba2199ee63c39..8cb0a14869efa 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -833,6 +833,10 @@
+
+ ../dev/license/asf-xml.license
+ (<configuration|<project)
+