Closed advancedwebdeveloper closed 3 years ago
I suspect may be related with the changes in Java16, need to investigate more.
OK, let me know if you would require more investigations on an Aarch64 server.
I might configure a specific server as a workload node, for the CI. Also something like https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners , on Aarch64, could be possible.
Good new, is easy to fix as far as I could see. Note I focused on the docs project, any other issue is out of my scope.
I could reproduce the same issue (see below) and build the docs project with mvn -am -pl nifi-docs clean package
.
Just add the latest jruby to the plugin runtime as in this example.
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>1.5.2</version>
<executions>
<execution>
<id>output-html</id>
<phase>prepare-package</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
</execution>
</executions>
<configuration>
<sourceDirectory>${project.build.directory}/asciidoc</sourceDirectory>
<backend>html5</backend>
<attributes>
<imagesdir>./images</imagesdir>
<icons>font</icons>
<toc>true</toc>
<toclevels>3</toclevels>
<docVersion>${project.version}</docVersion>
<sectanchors>true</sectanchors>
<idprefix />
<idseparator>-</idseparator>
<docinfo1>true</docinfo1>
<stylesheet>asciidoc-mod.css</stylesheet>
</attributes>
</configuration>
<dependencies>
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby-complete</artifactId>
<version>${jruby.version}</version>
</dependency>
</dependencies>
</plugin>
On another note, I saw few things that could be improved:
maven-resources-plugin
could be removed and css be better managed in a resources folder.<idseparator>-</idseparator>
but in the docs there're several ids set manually using _
. Setting <idseparator>_</idseparator>
would remove some of that manual work.Amazon Web Services
in getting-started.adoc. You could use https://docs.asciidoctor.org/asciidoc/latest/lists/description/ to reduce manualy formating the words.My environment and error:
/temp/nifi >>> mvn -v
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /home/asalgadr/.sdkman/candidates/maven/current
Java version: 16, vendor: AdoptOpenJDK, runtime: /home/asalgadr/.sdkman/candidates/java/16.0.0.hs-adpt
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.11.6-1-manjaro", arch: "amd64", family: "unix"
[ERROR] Failed to execute goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2:process-asciidoc (output-html) on project nifi-docs: Execution output-html of goal org.asciidoctor:asciidoctor-maven-plugin:1.5.2:process-asciidoc failed: (LoadError) load error: jruby/java/java_ext/java.lang -- java.lang.reflect.InaccessibleObjectException: Unable to make protected native java.lang.Object java.lang.Object.clone() throws java.lang.CloneNotSupportedException accessible: module java.base does not "opens java.lang" to unnamed module @3c5044fa -> [Help 1]
I am closing this, if you encounter any related issue feel free to re-open.
If you need assistance upgrading Apache NiFi asciidoctor settings, please do not hesitate to "at" me from the repo. I'll be happy to help.
I was trying to build Apache NiFi of version
and got such an error:
I was building using
with
on
.
CC @tspannhw @smlambert