Package scala_maven

Class AddSourceMojo

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

    @Mojo(name="add-source",
          executionStrategy="always",
          defaultPhase=INITIALIZE,
          requiresDirectInvocation=false,
          threadSafe=true)
    public class AddSourceMojo
    extends org.apache.maven.plugin.AbstractMojo
    Add more source directories to the POM.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.maven.project.MavenProject project
      The maven project
      protected java.io.File sourceDir
      The directory in which scala source is found
      protected java.io.File testSourceDir
      The directory in which testing scala source is found
      protected boolean useCanonicalPath
      Should use CanonicalPath to normalize path (true => getCanonicalPath, false => getAbsolutePath)
      • 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

      • project

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

        @Parameter(defaultValue="${project.build.sourceDirectory}/../scala")
        protected java.io.File sourceDir
        The directory in which scala source is found
      • testSourceDir

        @Parameter(defaultValue="${project.build.testSourceDirectory}/../scala")
        protected java.io.File testSourceDir
        The directory in which testing scala source is found
      • useCanonicalPath

        @Parameter(property="maven.scala.useCanonicalPath",
                   defaultValue="true")
        protected boolean useCanonicalPath
        Should use CanonicalPath to normalize path (true => getCanonicalPath, false => getAbsolutePath)
        See Also:
        #50
    • Constructor Detail

      • AddSourceMojo

        public AddSourceMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException