Package org.jreleaser.maven.plugin
Class JReleaserAssembleMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.jreleaser.maven.plugin.JReleaserAssembleMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="assemble") public class JReleaserAssembleMojo extends org.apache.maven.plugin.AbstractMojoAssemble all distributions.- Since:
- 0.2.0
- Author:
- Andres Almiray
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.FileconfigFileprotected booleandryrunSkips remote operations.protected booleangitRootSearchSearches for the Git root.protected Jreleaserjreleaserprotected java.io.FileoutputDirectoryprotected org.apache.maven.project.MavenProjectprojectThe project whose model will be checked.
-
Constructor Summary
Constructors Constructor Description JReleaserAssembleMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<java.lang.String>collectEntries(java.lang.String[] input)protected java.util.List<java.lang.String>collectEntries(java.lang.String[] input, boolean lowerCase)protected java.util.List<java.lang.String>collectSelectedPlatforms()protected org.jreleaser.model.JReleaserModelconvertModel()protected org.jreleaser.model.JReleaserContextcreateContext()protected java.io.PrintWritercreateTracer()voidexecute()protected org.jreleaser.util.JReleaserLoggergetLogger()protected org.jreleaser.model.JReleaserContext.ModegetMode()protected org.jreleaser.model.JReleaserModelreadModel(org.jreleaser.util.JReleaserLogger logger)protected org.jreleaser.model.JReleaserContext.ConfigurerresolveConfigurer(java.io.File configFile)
-
-
-
Field Detail
-
project
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject projectThe project whose model will be checked.
-
jreleaser
@Parameter protected Jreleaser jreleaser
-
outputDirectory
@Parameter(property="jreleaser.output.directory", defaultValue="${project.build.directory}/jreleaser") protected java.io.File outputDirectory
-
configFile
@Parameter(property="jreleaser.config.file") protected java.io.File configFile
-
dryrun
@Parameter(property="jreleaser.dryrun") protected boolean dryrun
Skips remote operations.
-
gitRootSearch
@Parameter(property="jreleaser.git.root.search") protected boolean gitRootSearch
Searches for the Git root.
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
getMode
protected org.jreleaser.model.JReleaserContext.Mode getMode()
-
getLogger
protected org.jreleaser.util.JReleaserLogger getLogger() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
createTracer
protected java.io.PrintWriter createTracer() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
convertModel
protected org.jreleaser.model.JReleaserModel convertModel()
-
readModel
protected org.jreleaser.model.JReleaserModel readModel(org.jreleaser.util.JReleaserLogger logger)
-
createContext
protected org.jreleaser.model.JReleaserContext createContext() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
resolveConfigurer
protected org.jreleaser.model.JReleaserContext.Configurer resolveConfigurer(java.io.File configFile)
-
collectSelectedPlatforms
protected java.util.List<java.lang.String> collectSelectedPlatforms()
-
collectEntries
protected java.util.List<java.lang.String> collectEntries(java.lang.String[] input)
-
collectEntries
protected java.util.List<java.lang.String> collectEntries(java.lang.String[] input, boolean lowerCase)
-
-