Class AddTestResourceMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="add-test-resource",
          defaultPhase=GENERATE_TEST_RESOURCES,
          threadSafe=true)
    public class AddTestResourceMojo
    extends AbstractAddResourceMojo
    Add more test resource directories to the POM.
    Since:
    1.3
    Version:
    $Id$
    • Field Summary

      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addResource​(org.apache.maven.model.Resource resource)
      Add the resource to the project.
      • Methods inherited from class org.apache.maven.plugin.AbstractMojo

        getLog, getPluginContext, setLog, setPluginContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AddTestResourceMojo

        public AddTestResourceMojo()
    • Method Detail

      • addResource

        public void addResource​(org.apache.maven.model.Resource resource)
        Add the resource to the project.
        Specified by:
        addResource in class AbstractAddResourceMojo
        Parameters:
        resource - the resource to add