Handles the copying of project resources to the output directory.
There are two different kinds of resources: main resources and test resources.
The difference is that the main resources are the resources associated to the main source code while the test resources are associated to the test source code.
Thus, this allows the separation of resources for the main source code and its unit tests.
Plugin coordinates:
- Group Id: org.apache.maven.plugins
- Artifact Id: maven-resources-plugin
Plugin Prefix: resources
The
resources plugin has the following goals:
-
help:
Display help information on maven-resources-plugin.
-
resources:
Copy resources for the main source code to the main output directory (src/main/resources/* ► target/classes/).
Always uses the project.build.resources element to specify the resources to copy.
-
testResources:
Copy resources for the test source code to the test output directory (src/test/resources/* ► target/test-classes/).
Always uses the project.build.testResources element to specify the resources to copy.
-
copy-resources:
Copy resources of the configured plugin attribute resources.