Skip to content

Unable to compile the package: MojoFailureException #94

Description

@Dentrax

After ran the rake command, I run into a compilation error:

...
[INFO] Compiling 38 source files to /work/jrjackson/pkg/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:35 min
[INFO] Finished at: 2023-12-25T17:27:15+00:00
[INFO] Final Memory: 59M/141M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project jrjackson: Compilation failure -> [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/MojoFailureException
  jar dependencies for jrjackson-0.4.18-java.gemspec . . .
      com.fasterxml.jackson.core:jackson-core:2.15.2:compile
      com.fasterxml.jackson.core:jackson-annotations:2.15.2:compile
      com.fasterxml.jackson.core:jackson-databind:2.15.2:compile
      com.fasterxml.jackson.module:jackson-module-afterburner:2.15.2:compile

There are lots of Downloaded longs before this. But catch a Warning log:

Downloading: https://repo.maven.apache.org/maven2/rubygems/bundler/maven-metadata.xml
io/console on JRuby shells out to stty for most operations
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.ext.zlib.RubyZlib (file:/root/.m2/repository/org/jruby/jruby-core/9.1.17.0/jruby-core-9.1.17.0.jar) to field java.util.zip.CRC32.crc
WARNING: Please consider reporting this to the maintainers of org.jruby.ext.zlib.RubyZlib
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
set default encoding to UTF-8 for current runtime

I'm using jruby-9.4 with openjdk-11 on Alpine. How can I debug the error? Any thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions