Skip to content

jakarta.enterprise.cdi-spec-doc is failing to build #558

@starksm64

Description

@starksm64

The main spec repo is failing to build under Java 11 as shown in the following error. The asciidoctor-maven plugin version is quite out of date. Just updating to the current 2.2.1 release fixes the problem and gets rid of the current illegal access warnings.

└> mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] jakarta.enterprise.cdi-parent                                      [pom]
[INFO] jakarta.enterprise.cdi-spec-doc                                    [pom]
[INFO] CDI Language Model                                                 [jar]
[INFO] CDI APIs                                                           [jar]
[INFO] 
[INFO] ----------< jakarta.enterprise:jakarta.enterprise.cdi-parent >----------
[INFO] Building jakarta.enterprise.cdi-parent 4.0.0-SNAPSHOT              [1/4]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ jakarta.enterprise.cdi-parent ---
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ jakarta.enterprise.cdi-parent ---
[INFO] Installing /Users/starksm/Dev/JBoss/Jakarta/cdi/pom.xml to /Users/starksm/.m2/repository/jakarta/enterprise/jakarta.enterprise.cdi-parent/4.0.0-SNAPSHOT/jakarta.enterprise.cdi-parent-4.0.0-SNAPSHOT.pom
[INFO] 
[INFO] ---------< jakarta.enterprise:jakarta.enterprise.cdi-spec-doc >---------
[INFO] Building jakarta.enterprise.cdi-spec-doc 4.0.0-SNAPSHOT            [2/4]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ jakarta.enterprise.cdi-spec-doc ---
[INFO] Deleting /Users/starksm/Dev/JBoss/Jakarta/cdi/spec/target
[INFO] 
[INFO] --- asciidoctor-maven-plugin:1.5.6:process-asciidoc (generate-pdf-doc) @ jakarta.enterprise.cdi-spec-doc ---
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.util.io.ChannelDescriptor (file:/Users/starksm/.m2/repository/org/jruby/jruby-complete/1.7.26/jruby-complete-1.7.26.jar) to method sun.nio.ch.SelChImpl.getFD()
WARNING: Please consider reporting this to the maintainers of org.jruby.util.io.ChannelDescriptor
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Rendered /Users/starksm/Dev/JBoss/Jakarta/cdi/spec/src/main/asciidoc/cdi-spec.asciidoc
[INFO] 
[INFO] --- asciidoctor-maven-plugin:1.5.6:process-asciidoc (output-html) @ jakarta.enterprise.cdi-spec-doc ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for jakarta.enterprise.cdi-parent 4.0.0-SNAPSHOT:
[INFO] 
[INFO] jakarta.enterprise.cdi-parent ...................... SUCCESS [  0.408 s]
[INFO] jakarta.enterprise.cdi-spec-doc .................... FAILURE [01:04 min]
[INFO] CDI Language Model ................................. SKIPPED
[INFO] CDI APIs ........................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:04 min
[INFO] Finished at: 2021-11-17T10:17:33-06:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.asciidoctor:asciidoctor-maven-plugin:1.5.6:process-asciidoc (output-html) on project jakarta.enterprise.cdi-spec-doc: Execution output-html of goal org.asciidoctor:asciidoctor-maven-plugin:1.5.6:process-asciidoc failed.: NullPointerException -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :jakarta.enterprise.cdi-spec-doc

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions