Full name:
org.apache.maven.plugins:maven-resources-plugin:4.0.0-beta-1:resources
Description:
Copy resources for the main source code to the main output directory. Always uses the project.build.resources element to specify the resources to copy.
Attributes:
process-resources
.Name | Type | Since | Description |
---|---|---|---|
<outputDirectory> |
Path |
- |
The output directory into which to copy the resources. |
Name | Type | Since | Description |
---|---|---|---|
<addDefaultExcludes> |
boolean |
3.0.0 |
By default files like .gitignore , .cvsignore etc. are excluded which means they will not being copied. If you need them for a particular reason you can do that by settings this to false . This means all files like the following will be copied.
|
<delimiters> |
LinkedHashSet<String> |
2.4 |
Set of delimiters for expressions to filter within the resources. These delimiters are specified in the form So, the default filtering delimiters might be specified as: <delimiters> <delimiter>${*}</delimiter> <delimiter>@</delimiter> </delimiters> Since the |
<encoding> |
String |
- |
The character encoding to use when reading and writing filtered resources. |
<escapeString> |
String |
2.3 |
Expressions preceded with this string won't be interpolated. Anything else preceded with this string will be passed through unchanged. For example \${foo } will be replaced with ${foo } but \\${foo } will be replaced with \\value of foo , if this parameter has been set to the backslash. |
<escapeWindowsPaths> |
boolean |
2.4 |
Whether to escape backslashes and colons in windows-style paths. |
<fileNameFiltering> |
boolean |
3.0.0 |
Support filtering of filenames folders etc. |
<filters> |
List<String> |
- |
The list of extra filter properties files to be used along with System properties, project properties, and filter properties files specified in the POM build/filters section, which should be used for the filtering during the current mojo execution. Normally, these will be configured from a plugin's execution section, to provide a different set of filters for a particular execution. For instance, starting in Maven 2.2.0, you have the option of configuring executions with the id's |
<includeEmptyDirs> |
boolean |
2.3 |
Copy any empty directories included in the Resources. |
<mavenFilteringHints> |
List<String> |
2.4 |
List of plexus components hint which implements |
<nonFilteredFileExtensions> |
List<String> |
2.3 |
Additional 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. |
<propertiesEncoding> |
String |
3.2.0 |
The character encoding to use when reading and writing filtered properties files. If not specified, it will default to the value of the "encoding" parameter. |
<resources> |
List<Resource> |
- |
The list of resources we want to transfer. |
<skip> |
boolean |
3.0.0 |
You can skip the execution of the plugin if you need to. Its use is NOT RECOMMENDED, but quite convenient on occasion. |
<supportMultiLineFiltering> |
boolean |
2.5 |
stop searching endToken at the end of line |
<useBuildFilters> |
boolean |
2.4 |
If false, don't use the filters specified in the build/filters section of the POM when processing resources in this mojo execution. See also: buildFilters, filters |
<useDefaultDelimiters> |
boolean |
2.4 |
Use default delimiters in addition to custom delimiters, if any. |
.gitignore
, .cvsignore
etc. are excluded which means they will not being copied. If you need them for a particular reason you can do that by settings this to false
. This means all files like the following will be copied.
boolean
3.0.0
No
Set of delimiters for expressions to filter within the resources. These delimiters are specified in the form beginToken*endToken
. If no *
is given, the delimiter is assumed to be the same for start and end.
So, the default filtering delimiters might be specified as:
<delimiters> <delimiter>${*}</delimiter> <delimiter>@</delimiter> </delimiters>
Since the @
delimiter is the same on both ends, we don't need to specify @*@
(though we can).
java.util.LinkedHashSet<java.lang.String>
2.4
No
java.lang.String
No
\${foo
} will be replaced with ${foo
} but \\${foo
} will be replaced with \\value of foo
, if this parameter has been set to the backslash.java.lang.String
2.3
No
boolean
2.4
No
boolean
3.0.0
No
The list of extra filter properties files to be used along with System properties, project properties, and filter properties files specified in the POM build/filters section, which should be used for the filtering during the current mojo execution.
Normally, these will be configured from a plugin's execution section, to provide a different set of filters for a particular execution. For instance, starting in Maven 2.2.0, you have the option of configuring executions with the id's default-resources
and default-testResources
to supply different configurations for the two different types of resources. By supplying extraFilters
configurations, you can separate which filters are used for which type of resource.
java.util.List<java.lang.String>
No
boolean
2.3
No
List of plexus components hint which implements org.apache.maven.shared.filtering.MavenResourcesFiltering.filterResources(org.apache.maven.shared.filtering.MavenResourcesExecution)
. They will be executed after the resources copying/filtering.
java.util.List<java.lang.String>
2.4
No
java.util.List<java.lang.String>
2.3
No
java.nio.file.Path
Yes
boolean
2.3
No
java.lang.String
3.2.0
No
java.util.List<org.apache.maven.shared.filtering.Resource>
No
boolean
3.0.0
No
boolean
2.5
No
boolean
2.4
No
boolean
2.4
No