The Resources Plugin handles the copying of project resources to the output directory. Resources come in two: 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 that for the test code.
Thus, this allows the separation of resources for the main source code and its unit tests.
The Resources Plugin has two goals:
Instructions on how to use the Resources Plugin can be found here.
The following examples show how to use the Resources Plugin in more advanced usecases: