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
@Deprecated
@Mojo(name="remove-project-artifact",
defaultPhase=PACKAGE,
threadSafe=true)
public class RemoveLocalArtifactMojo
extends org.apache.maven.plugin.AbstractMojo
Deprecated.
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
- Author:
- Dan T. Tran
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
RemoveLocalArtifactMojo
public RemoveLocalArtifactMojo()Deprecated.
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionExceptionDeprecated.- Throws:
org.apache.maven.plugin.MojoExecutionException
-
maven-metadata-local.xmllisting versions that no longer exist. To remove what a build installed, give each build its own prefix in a split local repository (-Daether.enhancedLocalRepository.split -Daether.enhancedLocalRepository.localPrefix=<build>) and deleteinstalled/<build>afterwards, or build with a separate-Dmaven.repo.local.