Class 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 java.io.File pomFile
      The project pom file.
      private org.apache.maven.project.MavenProject project
      The maven project.
      private boolean skip
      Skip this mojo.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      • 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}",
                   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 java.io.File pomFile
        The project pom file.
      • skip

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

      • AttachAllArtifactsMojo

        public AttachAllArtifactsMojo()
    • 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