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…...> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www...xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4...