-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
asciidoctor-epub-example not working with Java17 #141
Comments
Hey @abelsromero, I stumbled upon this while searching for possible causes/solutions for the following error I'm facing:
This is my <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.lealceldeiro</groupId>
<artifactId>docs</artifactId>
<version>4.0-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<java.version>21</java.version>
<asciidoctor.maven.plugin.version>3.1.1</asciidoctor.maven.plugin.version>
<asciidoctorj.pdf.version>2.3.19</asciidoctorj.pdf.version>
<asciidoctorj.version>3.0.0</asciidoctorj.version>
<jruby.version>9.4.9.0</jruby.version>
<asciidoc-extensions.version>2.0.0</asciidoc-extensions.version>
</properties>
<build>
<!-- Docs: https://docs.asciidoctor.org/maven-tools/latest/-->
<defaultGoal>compile</defaultGoal>
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>${asciidoctor.maven.plugin.version}</version>
<dependencies>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-pdf</artifactId>
<version>${asciidoctorj.pdf.version}</version>
</dependency>
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby</artifactId>
<version>${jruby.version}</version>
</dependency>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj</artifactId>
<version>${asciidoctorj.version}</version>
</dependency>
<dependency>
<groupId>com.lealceldeiro</groupId>
<artifactId>asciidoc-extensions</artifactId>
<version>${asciidoc-extensions.version}</version>
</dependency>
</dependencies>
<configuration>
<sourceDirectory>src/main/resources</sourceDirectory>
<!-- Attributes common to all output formats -->
<attributes>
<imagesdir>assets/images</imagesdir>
<pdf-fontsdir>src/main/resources/assets/font</pdf-fontsdir>
<pdf-theme>src/main/resources/my-theme.yml</pdf-theme>
<sourcedir>${project.build.sourceDirectory}</sourcedir>
</attributes>
</configuration>
<executions>
<execution>
<id>generate-pdf-doc</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<backend>pdf</backend>
<attributes>
<source-highlighter>rouge</source-highlighter>
</attributes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
I'm using Java 21 (17 fails too, while 11 is OK), running on Ubuntu 24 LTS and Maven 3.9.9. I'm assuming the issue is related to |
Thanks for the reminder! Regarding the original epub issue, the project works with modern versions but attributes and kindlegen are no longer applicable. |
Works fine with Java 11, but with Java17 and no kindlegen fails.
mvn -e
The text was updated successfully, but these errors were encountered: