feat(java): detect JAR licenses from the embedded pom.xml (#10851)