dependency:copy

Full name:

org.apache.maven.plugins:maven-dependency-plugin:3.0.0:copy

Description:

Goal that copies a list of artifacts from the repository to defined locations.

Attributes:

  • The goal is thread-safe and supports parallel builds.
  • Since version: 1.0.
  • Binds by default to the lifecycle phase: process-sources.

Optional Parameters

Name Type Since Description
artifact String 1.0 The artifact to copy from commandLine. Use artifactItems within the pom-configuration.
User property is: artifact.
artifactItems List 1.0 Collection of ArtifactItems to work on. (ArtifactItem contains groupId, artifactId, version, type, classifier, outputDirectory, destFileName, overWrite and encoding.) See Usage for details.
ignorePermissions boolean 1.0 not used in this goal
localRepositoryDirectory File 2.2 Path to override default local repository during plugin's execution. To remove all downloaded artifacts as part of the build, set this value to a location under your project's target directory
outputAbsoluteArtifactFilename boolean 2.0 Output absolute filename for resolved artifacts
Default value is: false.
User property is: outputAbsoluteArtifactFilename.
outputDirectory File 1.0 Default output location used for mojo, unless overridden in ArtifactItem.
Default value is: ${project.build.directory}/dependency.
User property is: outputDirectory.
overWriteIfNewer boolean 2.0 Overwrite if newer
Default value is: true.
User property is: mdep.overIfNewer.
overWriteReleases boolean 1.0 Overwrite release artifacts
Default value is: false.
User property is: mdep.overWriteReleases.
overWriteSnapshots boolean 1.0 Overwrite snapshot artifacts
Default value is: false.
User property is: mdep.overWriteSnapshots.
prependGroupId boolean 2.7 Prepend artifact groupId during copy
Default value is: false.
User property is: mdep.prependGroupId.
silent boolean 2.0 If the plugin should be silent.
Default value is: false.
User property is: silent.
skip boolean 2.7 Skip plugin execution completely.
Default value is: false.
User property is: mdep.skip.
stripClassifier boolean 1.0 Strip artifact classifier during copy
Default value is: false.
User property is: mdep.stripClassifier.
stripVersion boolean 1.0 Strip artifact version during copy
Default value is: false.
User property is: mdep.stripVersion.
useBaseVersion boolean 2.7 Use artifact baseVersion during copy
Default value is: false.
User property is: mdep.useBaseVersion.
useJvmChmod boolean 1.0 not used in this goal

Parameter Details

artifact:

The artifact to copy from commandLine. Use artifactItems within the pom-configuration.
  • Type: java.lang.String
  • Since: 1.0
  • Required: No
  • User Property: artifact

artifactItems:

Collection of ArtifactItems to work on. (ArtifactItem contains groupId, artifactId, version, type, classifier, outputDirectory, destFileName, overWrite and encoding.) See Usage for details.
  • Type: java.util.List
  • Since: 1.0
  • Required: No

ignorePermissions:

not used in this goal
  • Type: boolean
  • Since: 1.0
  • Required: No

localRepositoryDirectory:

Path to override default local repository during plugin's execution. To remove all downloaded artifacts as part of the build, set this value to a location under your project's target directory
  • Type: java.io.File
  • Since: 2.2
  • Required: No

outputAbsoluteArtifactFilename:

Output absolute filename for resolved artifacts
  • Type: boolean
  • Since: 2.0
  • Required: No
  • User Property: outputAbsoluteArtifactFilename
  • Default: false

outputDirectory:

Default output location used for mojo, unless overridden in ArtifactItem.
  • Type: java.io.File
  • Since: 1.0
  • Required: No
  • User Property: outputDirectory
  • Default: ${project.build.directory}/dependency

overWriteIfNewer:

Overwrite if newer
  • Type: boolean
  • Since: 2.0
  • Required: No
  • User Property: mdep.overIfNewer
  • Default: true

overWriteReleases:

Overwrite release artifacts
  • Type: boolean
  • Since: 1.0
  • Required: No
  • User Property: mdep.overWriteReleases
  • Default: false

overWriteSnapshots:

Overwrite snapshot artifacts
  • Type: boolean
  • Since: 1.0
  • Required: No
  • User Property: mdep.overWriteSnapshots
  • Default: false

prependGroupId:

Prepend artifact groupId during copy
  • Type: boolean
  • Since: 2.7
  • Required: No
  • User Property: mdep.prependGroupId
  • Default: false

silent:

If the plugin should be silent.
  • Type: boolean
  • Since: 2.0
  • Required: No
  • User Property: silent
  • Default: false

skip:

Skip plugin execution completely.
  • Type: boolean
  • Since: 2.7
  • Required: No
  • User Property: mdep.skip
  • Default: false

stripClassifier:

Strip artifact classifier during copy
  • Type: boolean
  • Since: 1.0
  • Required: No
  • User Property: mdep.stripClassifier
  • Default: false

stripVersion:

Strip artifact version during copy
  • Type: boolean
  • Since: 1.0
  • Required: No
  • User Property: mdep.stripVersion
  • Default: false

useBaseVersion:

Use artifact baseVersion during copy
  • Type: boolean
  • Since: 2.7
  • Required: No
  • User Property: mdep.useBaseVersion
  • Default: false

useJvmChmod:

not used in this goal
  • Type: boolean
  • Since: 1.0
  • Required: No