Class JReleaserConfigMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="config")
    public class JReleaserConfigMojo
    extends org.apache.maven.plugin.AbstractMojo
    Display current configuration.
    Since:
    0.1.0
    Author:
    Andres Almiray
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.io.File configFile  
      protected boolean dryrun
      Skips remote operations.
      protected boolean gitRootSearch
      Searches for the Git root.
      protected Jreleaser jreleaser  
      protected java.io.File outputDirectory  
      protected org.apache.maven.project.MavenProject project
      The project whose model will be checked.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • 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.JReleaserModel convertModel()  
      protected org.jreleaser.model.JReleaserContext createContext()  
      protected java.io.PrintWriter createTracer()  
      void execute()  
      protected org.jreleaser.util.JReleaserLogger getLogger()  
      protected org.jreleaser.model.JReleaserContext.Mode getMode()  
      protected org.jreleaser.model.JReleaserModel readModel​(org.jreleaser.util.JReleaserLogger logger)  
      protected org.jreleaser.model.JReleaserContext.Configurer resolveConfigurer​(java.io.File configFile)  
      • Methods inherited from class org.apache.maven.plugin.AbstractMojo

        getLog, getPluginContext, setLog, setPluginContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • project

        @Parameter(defaultValue="${project}",
                   readonly=true,
                   required=true)
        protected org.apache.maven.project.MavenProject project
        The 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.
    • Constructor Detail

      • JReleaserConfigMojo

        public JReleaserConfigMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • getMode

        protected org.jreleaser.model.JReleaserContext.Mode getMode()
      • collectSelectedPlatforms

        protected java.util.List<java.lang.String> collectSelectedPlatforms()
      • 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)
      • 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)