Class 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 Detail

      • outputDirectory

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

        @Parameter(defaultValue="${project.testResources}",
                   required=true,
                   readonly=false)
        private java.util.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 Detail

      • TestResourcesMojo

        public TestResourcesMojo()