You will come across several errors and exceptions in your Java application if you do not add proper dependencies in your Java application for working with Apache POI components for slides. The following additional dependencies are required for the proper execution of XSLF code.
<dependency>
<groupId>org.apache.xmlbeans</groupId>
<artifactId>xmlbeans</artifactId>
<version>5.1.1</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.23.0</version>
</dependency>