dependency:purge-local-repository

Full name:

org.apache.maven.plugins:maven-dependency-plugin:2.3:purge-local-repository

Description:

Remove the project dependencies from the local repository, and optionally re-resolve them.

Attributes:

  • Requires a Maven project to be executed.
  • Executes as an aggregator plugin.
  • Since version: 2.0.

Optional Parameters

Name Type Since Description
actTransitively boolean 2.0 Whether this mojo should act on all transitive dependencies. Default value is true.
Default value is: true.
exclude String 2.0 Comma-separated list of groupId:artifactId entries, which should be used to exclude artifacts from deletion/refresh. This is a command-line alternative to the excludes parameter, since List parameters are not currently compatible with CLI specification.
excludes List 2.0 The list of dependencies in the form of groupId:artifactId which should NOT be deleted/refreshed. This is useful for third-party artifacts.
reResolve boolean 2.0 Whether to re-resolve the artifacts once they have been deleted from the local repository. If you are running this mojo from the command-line, you may want to disable this. By default, artifacts will be re-resolved.
Default value is: true.
resolutionFuzziness String 2.0 Determines how liberally the plugin will delete an artifact from the local repository. Values are:
  • file (default) - Eliminate only the artifact's file.
  • version - Eliminate all files associated with the artifact's version.
  • artifactId - Eliminate all files associated with the artifact's artifactId.
  • groupId - Eliminate all files associated with the artifact's groupId.

Default value is: file.
verbose boolean 2.0 Whether this plugin should output verbose messages. Default is false.
Default value is: false.

Parameter Details

actTransitively:

Whether this mojo should act on all transitive dependencies. Default value is true.
  • Type: boolean
  • Since: 2.0
  • Required: No
  • Expression: ${actTransitively}
  • Default: true

exclude:

Comma-separated list of groupId:artifactId entries, which should be used to exclude artifacts from deletion/refresh. This is a command-line alternative to the excludes parameter, since List parameters are not currently compatible with CLI specification.
  • Type: java.lang.String
  • Since: 2.0
  • Required: No
  • Expression: ${exclude}

excludes:

The list of dependencies in the form of groupId:artifactId which should NOT be deleted/refreshed. This is useful for third-party artifacts.
  • Type: java.util.List
  • Since: 2.0
  • Required: No

reResolve:

Whether to re-resolve the artifacts once they have been deleted from the local repository. If you are running this mojo from the command-line, you may want to disable this. By default, artifacts will be re-resolved.
  • Type: boolean
  • Since: 2.0
  • Required: No
  • Expression: ${reResolve}
  • Default: true

resolutionFuzziness:

Determines how liberally the plugin will delete an artifact from the local repository. Values are:
  • file (default) - Eliminate only the artifact's file.
  • version - Eliminate all files associated with the artifact's version.
  • artifactId - Eliminate all files associated with the artifact's artifactId.
  • groupId - Eliminate all files associated with the artifact's groupId.
  • Type: java.lang.String
  • Since: 2.0
  • Required: No
  • Expression: ${resolutionFuzziness}
  • Default: file

verbose:

Whether this plugin should output verbose messages. Default is false.
  • Type: boolean
  • Since: 2.0
  • Required: No
  • Expression: ${verbose}
  • Default: false