-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
When running a maven build using the gem plugin and specifying a jruby.version that is a SNAPSHOT version, the build will fail with an error like this:
[INFO] --- gem:3.0.6:initialize (default-initialize) @ warbler ---
[WARNING] OpenJDK 64-Bit Server VM warning: Ignoring option --illegal-access=warn; support was removed in 17.0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.932 s
[INFO] Finished at: 2025-10-15T10:41:07-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jruby.maven:gem-maven-plugin:3.0.6:initialize (default-initialize) on project warbler: Execution default-initialize of goal org.jruby.maven:gem-maven-plugin:3.0.6:initialize failed: For input string: "0-SNAPSHOT" -> [Help 1]
...
In my case, this was running with jruby.version set to the local build of JRuby 10.0.3.0-SNAPSHOT. It appears the plugin stumbles over the 0-SNAPSHOT portion, perhaps trying to convert to an integer or otherwise parse the version as a normal dotted number sequence.
Running the build with a release version of JRuby avoids the issue.
Metadata
Metadata
Assignees
Labels
No labels