@Mojo(name="remove-project-artifact",
defaultPhase=PACKAGE,
threadSafe=true)
public class RemoveLocalArtifactMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
private boolean |
failOnError
Indicates whether the build will continue even if there are removal errors.
|
private org.apache.maven.artifact.repository.ArtifactRepository |
localRepository |
private org.apache.maven.project.MavenProject |
project |
private boolean |
removeAll
When true, remove all built artifacts including all versions.
|
| Constructor and Description |
|---|
RemoveLocalArtifactMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
@Parameter(defaultValue="true",
property="buildhelper.removeAll")
private boolean removeAll
@Parameter(defaultValue="true",
property="buildhelper.failOnError")
private boolean failOnError
@Component private org.apache.maven.project.MavenProject project
@Parameter(defaultValue="${localRepository}",
readonly=true)
private org.apache.maven.artifact.repository.ArtifactRepository localRepository