Class TestResourcesMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.resources.ResourcesMojo
org.apache.maven.plugins.resources.TestResourcesMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

@Mojo(name="testResources", defaultPhase=PROCESS_TEST_RESOURCES, requiresProject=true, threadSafe=true) public class TestResourcesMojo extends ResourcesMojo
Copy resources for the test source code to the test output directory. Always uses the project.build.testResources element to specify the resources to copy.
  • Field Details

    • outputDirectory

      @Parameter(defaultValue="${project.build.testOutputDirectory}", required=true) private File outputDirectory
      The output directory into which to copy the resources.
    • resources

      @Parameter(defaultValue="${project.testResources}", required=true, readonly=false) private List<org.apache.maven.model.Resource> resources
      The list of resources we want to transfer.
    • skip

      @Parameter(property="maven.test.skip", defaultValue="false") private boolean skip
      Set this to 'true' to bypass copying of test resources. Its use is NOT RECOMMENDED, but quite convenient on occasion.
      Since:
      2.6
  • Constructor Details

    • TestResourcesMojo

      public TestResourcesMojo()
  • Method Details