I want to update an old program from Java 8 to Java 15 with modules and therefore I rewrite and update a lot of code. Everything works fine until the update of the library to write spreadsheet documents.
In the old version, I used the org.odftoolkit with the simple-api with maven.
<dependency>
<groupId>org.odftoolkit</groupId>
<artifactId>odfdom-java</artifactId>
<version>0.8.7</version>
</dependency>
<dependency>
<groupId>org.odftoolkit</groupId>
<artifactId>simple-java</artifactId>
<version>0.4</version>
</dependency>
As described here, this API is deprecated and I want to step over to the current ODFDOM API. But the documentation is not current with the latest version and I did not found an example for the java module.
I added the maven dependencies, but the question is how to add this to the module-info.java file. All my attempts with
requires org.odftoolkit.odfdom.doc.table;
or equal ones have failed miserably.
My question may occur simply, but for me, it is a big mountain. What is the right way to do this? Thank you for any input.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…