In my project, I just use aspose by adding something like
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-words</artifactId>
<version>21.5</version>
<classi…...com/words/java/25-4/#package-explorer , click the link aspose-words-25...pom , it show a file with packaging pom with a long content, like...