Skip to content

Instantly share code, notes, and snippets.

@jefflasslett
Created March 3, 2020 21:54
Show Gist options
  • Save jefflasslett/492d4b363fb572e8ff102aed1d16653e to your computer and use it in GitHub Desktop.
Save jefflasslett/492d4b363fb572e8ff102aed1d16653e to your computer and use it in GitHub Desktop.
Building jruby-rack
~/prj/jruby-rack []> gpr
Already up to date.
Successfully rebased and updated refs/heads/master.
[jeff@weapon] git:master...origin/master 08:37
~/prj/jruby-rack []> mvn -version
Apache Maven 3.6.3 (NON-CANONICAL_2019-11-27T20:26:29Z_root)
Maven home: /opt/maven
Java version: 1.8.0_242, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-8-openjdk/jre
Default locale: en_AU, platform encoding: UTF-8
OS name: "linux", version: "5.5.7-arch1-1", arch: "amd64", family: "unix"

So jruby-rack is up to date and freshly checked out of github.

Maven is installed and at version 3.6.3

Ensure you have Maven installed. It is required for downloading jar artifacts that JRuby-Rack depends on.

Build the .jar using Maven :

mvn install

OK ...

Full listing below, but here's the error at the end:-

[INFO] --- bundler-maven-plugin:1.0.9:install (bundle-install) @ jruby-rack ---
[INFO] Could not fetch specs from https://rubygems.org/
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  15.632 s
[INFO] Finished at: 2020-03-04T08:46:09+11:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal de.saumya.mojo:bundler-maven-plugin:1.0.9:install (bundle-install) on project jruby-rack: Execution bundle-install of goal de.saumya.mojo:bundler-maven-plugin:1.0.9:install failed: Java returned: 17 -> [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
[jeff@weapon] git:master...origin/master 08:45
~/prj/jruby-rack []> mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< org.jruby.rack:jruby-rack >----------------------
[INFO] Building JRuby-Rack 1.2.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from rubygems-releases: http://rubygems-proxy.torquebox.org/releases/com/github/jnr/jffi/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/com/github/jnr/jffi/maven-metadata.xml
Downloading from sonatype: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/maven-metadata.xml
Downloading from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/com/github/jnr/jffi/maven-metadata.xml (1.1 kB at 718 B/s)
Downloaded from sonatype: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/maven-metadata.xml (523 B at 84 B/s)
Downloaded from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/maven-metadata.xml (523 B at 84 B/s)
Downloading from rubygems-releases: http://rubygems-proxy.torquebox.org/releases/com/github/jnr/jffi/1.2.20-SNAPSHOT/maven-metadata.xml
Downloading from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/1.2.20-SNAPSHOT/maven-metadata.xml
Downloading from sonatype: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/1.2.20-SNAPSHOT/maven-metadata.xml
Downloaded from sonatype: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/1.2.20-SNAPSHOT/maven-metadata.xml (1.2 kB at 1.7 kB/s)
Downloaded from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/1.2.20-SNAPSHOT/maven-metadata.xml (1.2 kB at 1.7 kB/s)
Downloading from rubygems-releases: http://rubygems-proxy.torquebox.org/releases/com/github/jnr/jffi/1.2.21-SNAPSHOT/maven-metadata.xml
Downloading from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/1.2.21-SNAPSHOT/maven-metadata.xml
Downloading from sonatype: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/1.2.21-SNAPSHOT/maven-metadata.xml
Downloaded from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/1.2.21-SNAPSHOT/maven-metadata.xml (1.2 kB at 1.9 kB/s)
Downloaded from sonatype: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/1.2.21-SNAPSHOT/maven-metadata.xml (1.2 kB at 1.9 kB/s)
Downloading from sonatype: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/1.2.23-SNAPSHOT/maven-metadata.xml
Downloading from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/1.2.23-SNAPSHOT/maven-metadata.xml
Downloading from rubygems-releases: http://rubygems-proxy.torquebox.org/releases/com/github/jnr/jffi/1.2.23-SNAPSHOT/maven-metadata.xml
Downloaded from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/1.2.23-SNAPSHOT/maven-metadata.xml (1.2 kB at 1.8 kB/s)
Downloaded from sonatype: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/1.2.23-SNAPSHOT/maven-metadata.xml (1.2 kB at 1.8 kB/s)
Downloading from rubygems-releases: http://rubygems-proxy.torquebox.org/releases/com/github/jnr/jffi/1.3.0-SNAPSHOT/maven-metadata.xml
Downloading from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/1.3.0-SNAPSHOT/maven-metadata.xml
Downloading from sonatype: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/1.3.0-SNAPSHOT/maven-metadata.xml
Downloaded from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/1.3.0-SNAPSHOT/maven-metadata.xml (981 B at 1.4 kB/s)
Downloaded from sonatype: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/1.3.0-SNAPSHOT/maven-metadata.xml (981 B at 1.4 kB/s)
Downloading from rubygems-releases: http://rubygems-proxy.torquebox.org/releases/com/github/jnr/jnr-x86asm/maven-metadata.xml
Downloading from sonatype-nexus-snapshots: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jnr-x86asm/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/com/github/jnr/jnr-x86asm/maven-metadata.xml
Downloading from sonatype: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jnr-x86asm/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/com/github/jnr/jnr-x86asm/maven-metadata.xml (362 B at 663 B/s)
[INFO]
[INFO] --- maven-dependency-plugin:2.9:copy-dependencies (default) @ jruby-rack ---
[INFO] com.headius:invokebinder:jar:1.2 already exists in destination.
[INFO] org.ow2.asm:asm:jar:5.0.3 already exists in destination.
[INFO] log4j:log4j:jar:1.2.17 already exists in destination.
[INFO] org.apache.geronimo.specs:geronimo-jsp_2.2_spec:jar:1.2 already exists in destination.
[INFO] org.apache.geronimo.specs:geronimo-el_2.2_spec:jar:1.0.4 already exists in destination.
[INFO] org.bouncycastle:bcpkix-jdk15on:jar:1.49 already exists in destination.
[INFO] org.springframework:spring-core:jar:3.2.10.RELEASE already exists in destination.
[INFO] joda-time:joda-time:jar:2.5 already exists in destination.
[INFO] org.apache.geronimo.specs:geronimo-servlet_3.0_spec:jar:1.0 already exists in destination.
[INFO] org.bouncycastle:bcprov-jdk15on:jar:1.49 already exists in destination.
[INFO] com.github.jnr:jffi:jar:native:1.2.7 already exists in destination.
[INFO] com.github.jnr:jnr-netdb:jar:1.1.2 already exists in destination.
[INFO] org.ow2.asm:asm-commons:jar:5.0.3 already exists in destination.
[INFO] org.ow2.asm:asm-util:jar:5.0.3 already exists in destination.
[INFO] com.jcraft:jzlib:jar:1.1.3 already exists in destination.
[INFO] org.ow2.asm:asm-tree:jar:5.0.3 already exists in destination.
[INFO] com.github.jnr:jnr-unixsocket:jar:0.3 already exists in destination.
[INFO] com.github.jnr:jnr-posix:jar:3.0.9 already exists in destination.
[INFO] com.martiansoftware:nailgun-server:jar:0.9.1 already exists in destination.
[INFO] org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1 already exists in destination.
[INFO] commons-logging:commons-logging-api:jar:1.1 already exists in destination.
[INFO] com.headius:options:jar:1.2 already exists in destination.
[INFO] com.github.jnr:jnr-enxio:jar:0.4 already exists in destination.
[INFO] commons-logging:commons-logging:jar:1.1.3 already exists in destination.
[INFO] org.yaml:snakeyaml:jar:1.13 already exists in destination.
[INFO] com.github.jnr:jnr-constants:jar:0.8.6 already exists in destination.
[INFO] org.ow2.asm:asm-analysis:jar:5.0.3 already exists in destination.
[INFO] com.github.jnr:jnr-x86asm:jar:1.0.2 already exists in destination.
[INFO] org.slf4j:slf4j-api:jar:1.7.2 already exists in destination.
[INFO] com.github.jnr:jnr-ffi:jar:2.0.1 already exists in destination.
[INFO] com.github.jnr:jffi:jar:1.2.7 already exists in destination.
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jruby-rack ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 37 resources
[INFO] Copying 1 resource to META-INF
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ jruby-rack ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jruby-rack ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 52 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ jruby-rack ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ jruby-rack ---
[INFO]
[INFO] --- gem-maven-plugin:1.0.9:initialize (gem-install-bundler) @ jruby-rack ---
[INFO]
[INFO] --- bundler-maven-plugin:1.0.9:install (bundle-install) @ jruby-rack ---
[INFO] Could not fetch specs from https://rubygems.org/
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  15.632 s
[INFO] Finished at: 2020-03-04T08:46:09+11:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal de.saumya.mojo:bundler-maven-plugin:1.0.9:install (bundle-install) on project jruby-rack: Execution bundle-install of goal de.saumya.mojo:bundler-maven-plugin:1.0.9:install failed: Java returned: 17 -> [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
[jeff@weapon] git:master...origin/master 08:46
~/prj/jruby-rack []>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment