Class RemoveLocalArtifactMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.buildhelper.RemoveLocalArtifactMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="remove-project-artifact", defaultPhase=PACKAGE, threadSafe=true) public class RemoveLocalArtifactMojo extends org.apache.maven.plugin.AbstractMojo
Remove project's artifacts from local repository. Useful to keep only one copy of large local snapshot, for example: installer, for disk space optimization purpose.
Since:
1.1
Version:
$Id$
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
    Indicates whether the build will continue even if there are removal errors.
    private org.apache.maven.artifact.repository.ArtifactRepository
     
    private org.apache.maven.project.MavenProject
     
    private boolean
    When true, remove all built artifacts including all versions.

    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

    • removeAll

      @Parameter(defaultValue="true", property="buildhelper.removeAll") private boolean removeAll
      When true, remove all built artifacts including all versions. When false, remove all built artifacts of this project version.
      Since:
      1.1
    • failOnError

      @Parameter(defaultValue="true", property="buildhelper.failOnError") private boolean failOnError
      Indicates whether the build will continue even if there are removal errors.
      Since:
      1.6
    • project

      @Parameter(readonly=true, defaultValue="${project}") private org.apache.maven.project.MavenProject project
      Since:
      1.1
    • localRepository

      @Parameter(defaultValue="${localRepository}", readonly=true) private org.apache.maven.artifact.repository.ArtifactRepository localRepository
      Since:
      1.1
  • Constructor Details

    • RemoveLocalArtifactMojo

      public RemoveLocalArtifactMojo()
  • Method Details

    • execute

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