Class AttachAllArtifactsMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.glassfish.build.AttachAllArtifactsMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="attach-all-artifacts", requiresOnline=true) public final class AttachAllArtifactsMojo extends org.apache.maven.plugin.AbstractMojo
Guess artifacts from target directory and attach them to the project.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private File
    The project pom file.
    private org.apache.maven.project.MavenProject
    The maven project.
    private boolean
    Skip this mojo.

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    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 Details

    • project

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

      @Parameter(property="attach.all.artifacts.pomFile", defaultValue="${project.file}", required=true) private File pomFile
      The project pom file.
    • skip

      @Parameter(property="attach.all.artifacts.skip", defaultValue="false") private boolean skip
      Skip this mojo.
  • Constructor Details

    • AttachAllArtifactsMojo

      public AttachAllArtifactsMojo()
  • Method Details

    • 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