Class AbstractCompileMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    CompileMojo, TestCompileMojo

    public abstract class AbstractCompileMojo
    extends org.apache.maven.plugin.AbstractMojo
    • Field Detail

      • FILE_EXISTS

        protected static final com.google.common.base.Predicate<String> FILE_EXISTS
    • Constructor Detail

      • AbstractCompileMojo

        public AbstractCompileMojo()
    • Method Detail

      • getProject

        protected org.apache.maven.project.MavenProject getProject()
      • getStructsDirectory

        protected abstract File getStructsDirectory()
      • execute

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

        protected abstract List<String> getCompileSourceRoots()
      • getClassPath

        protected abstract List<String> getClassPath()
      • getOutputDirectory

        protected abstract File getOutputDirectory()
      • addDependencies

        protected void addDependencies​(Set<String> classPath,
                                       List<org.apache.maven.artifact.Artifact> dependencies)
      • compile

        protected void compile​(String classPath,
                               List<String> sourcePaths,
                               String structSourceRoot,
                               String outputPath)
                        throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException