Package de.saumya.mojo.gem
Class PomMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
de.saumya.mojo.jruby.AbstractJRubyMojo
de.saumya.mojo.gem.PomMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
goal to converts a gemspec file into pom.xml.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanforce overwrite of an existing pomprotected Fileuse Gemfile to generate a pomprotected Fileuse a gemspec file to generate a pom(package private) org.apache.maven.plugin.descriptor.PluginDescriptorprotected Filethe pom file to generateprivate booleanprotected Filetemporary store generated pom.Fields 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 voidcopyGeneratedPom(File source) voidprivate Fileprivate voidgeneratePom(File file, String type) private voidmovePom()private voidMethods inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
execute, getDefaultJRubyVersion, getJrubyVersion, getProjectClasspath, launchDirectory, newScriptFactory, resolveJRubyArtifact, resolveJRubyCompleteArtifact, resolveJRubyStdlibArtifactMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
plugin
@Parameter(defaultValue="${plugin}", readonly=true) org.apache.maven.plugin.descriptor.PluginDescriptor plugin -
pom
the pom file to generate -
force
@Parameter(property="pom.force", defaultValue="false") protected boolean forceforce overwrite of an existing pom -
tmpPom
temporary store generated pom. -
gemspec
use a gemspec file to generate a pom -
gemfile
use Gemfile to generate a pom -
skipGeneration
@Parameter private boolean skipGeneration
-
-
Constructor Details
-
PomMojo
public PomMojo()
-
-
Method Details
-
executeJRuby
public void executeJRuby() throws org.apache.maven.plugin.MojoExecutionException, ScriptException, IOException- Specified by:
executeJRubyin classAbstractJRubyMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionScriptExceptionIOException
-
copyGeneratedPom
- Throws:
IOException
-
movePom
- Throws:
IOException
-
rubyMavenHelper
private void rubyMavenHelper() -
generatePom
- Throws:
ScriptExceptionIOException
-
findGemspec
-