[misc] Improve pom.xml

(cherry picked from commit b7dda99b32ac14c73afce3ee0eaf8fd2afe774ce)