Class ScriptMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
sk.antons.script.ScriptMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="script", defaultPhase=PACKAGE, requiresDependencyResolution=RUNTIME) public class ScriptMojo extends org.apache.maven.plugin.AbstractMojo
  • Field Details

    • project

      @Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project
    • localRepository

      @Parameter(defaultValue="${localRepository}", readonly=true, required=true) protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
    • destination

      @Parameter(property="destination", defaultValue="${script.destination}", required=false) protected String destination
    • filename

      @Parameter(property="filename", defaultValue="${script.name}", required=false) protected String filename
    • includeTest

      @Parameter(property="includeTest", defaultValue="${script.includeTest}", required=false) protected String includeTest
    • includeRepo

      @Parameter(property="includeRepo", defaultValue="${script.includeRepo}", required=false) protected String includeRepo
    • executable

      @Parameter(property="exec", defaultValue="${script.exec}", required=false) protected String executable
    • shell

      @Parameter(property="shell", defaultValue="${script.shell}", required=false) protected String shell
    • unix

      @Parameter(property="unix", defaultValue="${script.unix}", required=false) protected String unix
    • windows

      @Parameter(property="windows", defaultValue="${script.windows}", required=false) protected String windows
    • pack

      @Parameter(property="pack", defaultValue="${script.pack}", required=false) protected String pack
  • Constructor Details

    • ScriptMojo

      public ScriptMojo()
  • Method Details

    • initProperty

      protected static String initProperty(String value, String defaultValue)
    • initProperties

      protected void initProperties()
    • printConf

      protected void printConf()
    • includeTest

      protected boolean includeTest()
    • includeRepo

      protected boolean includeRepo()
    • unix

      protected boolean unix()
    • windows

      protected boolean windows()
    • pack

      protected boolean pack()
    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException