[misc] Improve pom.xml

(cherry picked from commit bfeebfd3e70b96242805af4efe35188cadd3204c)