Package de.saumya.mojo.gem
Class SetsMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
de.saumya.mojo.jruby.AbstractJRubyMojo
de.saumya.mojo.gem.AbstractGemMojo
de.saumya.mojo.gem.SetsMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="sets",
defaultPhase=INITIALIZE,
requiresDependencyResolution=TEST)
public class SetsMojo
extends AbstractGemMojo
installs a set of given gems without resolving any transitive dependencies
-
Field Summary
FieldsModifier and TypeFieldDescriptionmap of gemname to version, i.e.protected org.apache.maven.model.io.ModelReaderprotected Stringthe scope under which the gems get installedFields inherited from class de.saumya.mojo.gem.AbstractGemMojo
binDirectory, gemHome, gemHomes, gemPath, gemsConfig, gemsInstaller, gemUseSystem, includeGemsInResources, includeLibDirectoryInResources, includeOpenSSL, includeProvidedRubygemsInResources, includeRubygemsInResources, includeRubygemsInTestResources, installRDoc, installRI, manager, plugin, supportNative, unzipFields inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
addProjectClasspath, args, classRealm, DEFAULT_JRUBY_VERSION, eclipseRefresh, eclipseWatches, env, factory, JRUBY_COMPLETE, JRUBY_CORE, JRUBY_STDLIB, jrubyFork, jrubyJvmArgs, jrubySwitches, jrubyVerbose, libDirectory, localRepository, logger, project, repositorySystem, rubySourceDirectoryFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcollectJarDependencies(Set<org.apache.maven.artifact.Artifact> jars, org.apache.maven.artifact.Artifact artifact) protected voidprivate voidinstallGems(Set<org.apache.maven.artifact.Artifact> gems) private voidresolveJarDepedencies(Set<org.apache.maven.artifact.Artifact> jars) Methods inherited from class de.saumya.mojo.gem.AbstractGemMojo
addResource, execute, executeJRuby, gemHome, getRemoteRepos, newScriptFactoryMethods inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
getDefaultJRubyVersion, getJrubyVersion, getProjectClasspath, launchDirectory, resolveJRubyArtifact, resolveJRubyCompleteArtifact, resolveJRubyStdlibArtifactMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
scope
the scope under which the gems get installed -
gems
map of gemname to version, i.e. it is a "list" of gems with fixed version -
reader
@Component protected org.apache.maven.model.io.ModelReader reader
-
-
Constructor Details
-
SetsMojo
public SetsMojo()
-
-
Method Details
-
executeWithGems
protected void executeWithGems() throws org.apache.maven.plugin.MojoExecutionException, ScriptException, IOException, GemException- Specified by:
executeWithGemsin classAbstractGemMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionScriptExceptionIOExceptionGemException
-
installGems
private void installGems(Set<org.apache.maven.artifact.Artifact> gems) throws IOException, ScriptException, GemException - Throws:
IOExceptionScriptExceptionGemException
-
collectJarDependencies
private void collectJarDependencies(Set<org.apache.maven.artifact.Artifact> jars, org.apache.maven.artifact.Artifact artifact) throws GemException, IOException - Throws:
GemExceptionIOException
-
resolveJarDepedencies
-