To use this library in a Maven project, add the docx4j-ImportXHTML-core dependency.
Note: You must also include a dependency for a JAXB implementation to ensure the library functions correctly. You can choose between the Reference Implementation or MOXy.
<!-- Maven Dependency for core functionality -->
<dependency>
<groupId>org.docx4j</groupId>
<artifactId>docx4j-ImportXHTML-core</artifactId>
<version>[VERSION]</version>
</dependency>
<!-- You MUST also add one of the following JAXB implementations -->
<!-- Option 1: JAXB Reference Implementation -->
<dependency>
<groupId>org.docx4j</groupId>
<artifactId>docx4j-JAXB-ReferenceImpl</artifactId>
<version>[VERSION]</version>
</dependency>
<!-- Option 2: JAXB MOXy -->
<dependency>
<groupId>org.docx4j</groupId>
<artifactId>docx4j-JAXB-MOXy</artifactId>
<version>[VERSION]</version>
</dependency>