Class AddSourcesMojo

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

    @Mojo(name="addSources",
          defaultPhase=INITIALIZE,
          threadSafe=true)
    public class AddSourcesMojo
    extends AbstractGroovySourcesMojo
    This mojo adds Groovy sources to the project's sources.
    Since:
    1.0-beta-1
    • Field Detail

      • sources

        @Parameter
        protected org.apache.maven.shared.model.fileset.FileSet[] sources
        The Groovy source files (relative paths). Default: "${project.basedir}/src/main/groovy/**/*.groovy"
    • Constructor Detail

      • AddSourcesMojo

        public AddSourcesMojo()
    • Method Detail

      • execute

        public void execute()
        Executes this mojo.
      • addSourcePath

        protected void addSourcePath​(java.lang.String path)
        Adds the specified source path to the project's main compile sources.
        Parameters:
        path - The source path to add to the project's main compile sources