Class AddSourceMojo

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

    @Mojo(name="add-source",
          defaultPhase=GENERATE_SOURCES,
          threadSafe=true,
          requiresProject=true)
    public class AddSourceMojo
    extends org.apache.maven.plugin.AbstractMojo
    Adds additional source directories to test or main sources.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.maven.project.MavenProject project  
      java.io.File[] sources  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      AddSourceMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      • 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
    • Field Detail

      • sources

        @Parameter(required=true)
        public java.io.File[] sources
      • project

        @Parameter(property="project",
                   readonly=true,
                   required=true)
        private org.apache.maven.project.MavenProject project
    • Constructor Detail

      • AddSourceMojo

        public AddSourceMojo()
    • Method Detail

      • execute

        public void execute()