- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="jar",
defaultPhase=PACKAGE,
requiresProject=true,
threadSafe=true,
requiresDependencyResolution=RUNTIME)
public class JarMojo
extends org.apache.maven.plugin.jar.JarMojo
packs a ruby application into runnable jar.
shaded jruby-complete.jar
shaded jruby-mains.jar
all declared gems and transitive gems and jars
all declared jars and transitive jars
all declared resource
the main class sets up the GEM_HOME, GEM_PATH and JARS_HOME and takes arguments
for executing jruby. any bin stubs from the gem are available via '-S' or any
script relative to jar's root can be found as the current directory is inside the jar.
if there is a 'jar-bootstrap.rb' in the root of the jar, then the default main class will
execute this script and pass all the arguments to bootstrap script.
- Author:
- christian