resources:resources

Full name:

org.apache.maven.plugins:maven-resources-plugin:2.3:resources

Description:

Copy resources for the main source code to the main output directory.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Binds by default to the lifecycle phase: process-resources.

Required Parameters

Name Type Since Description
outputDirectory File - The output directory into which to copy the resources.

Optional Parameters

Name Type Since Description
encoding String - The character encoding scheme to be applied when filtering resources.
Default value is: ${project.build.sourceEncoding}.
escapeString String 2.3 Expression preceded with the String won't be interpolated \${foo} will be replaced with ${foo}
filters List - The list of additional key-value pairs aside from that of the System, and that of the project, which would be used for the filtering.
includeEmptyDirs boolean 2.3 Copy any empty directories included in the Ressources.
Default value is: false.
nonFilteredFileExtensions List 2.3 Additionnal file extensions to not apply filtering (already defined are : jpg, jpeg, gif, bmp, png)
overwrite boolean 2.3 Overwrite existing files even if the destination files are newer.
Default value is: false.

Parameter Details

encoding:

The character encoding scheme to be applied when filtering resources.
  • Type: java.lang.String
  • Required: No
  • Expression: ${encoding}
  • Default: ${project.build.sourceEncoding}

escapeString:

Expression preceded with the String won't be interpolated \${foo} will be replaced with ${foo}
  • Type: java.lang.String
  • Since: 2.3
  • Required: No
  • Expression: ${maven.resources.escapeString}

filters:

The list of additional key-value pairs aside from that of the System, and that of the project, which would be used for the filtering.
  • Type: java.util.List
  • Required: No
  • Expression: ${project.build.filters}

includeEmptyDirs:

Copy any empty directories included in the Ressources.
  • Type: boolean
  • Since: 2.3
  • Required: No
  • Expression: ${maven.resources.includeEmptyDirs}
  • Default: false

nonFilteredFileExtensions:

Additionnal file extensions to not apply filtering (already defined are : jpg, jpeg, gif, bmp, png)
  • Type: java.util.List
  • Since: 2.3
  • Required: No

outputDirectory:

The output directory into which to copy the resources.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${project.build.outputDirectory}

overwrite:

Overwrite existing files even if the destination files are newer.
  • Type: boolean
  • Since: 2.3
  • Required: No
  • Expression: ${maven.resources.overwrite}
  • Default: false