Class PluginBase

java.lang.Object
org.apache.maven.plugin.AbstractMojo
uk.co.terminological.rjava.plugin.PluginBase
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
R6CleanPlugin, R6FlattenerPlugin, R6GeneratorPlugin

public abstract class PluginBase extends org.apache.maven.plugin.AbstractMojo
  • Field Details

    • mavenProject

      @Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject mavenProject
    • mavenSession

      @Parameter(defaultValue="${session}", readonly=true) protected org.apache.maven.execution.MavenSession mavenSession
    • pluginManager

      @Component protected org.apache.maven.plugin.BuildPluginManager pluginManager
    • packageData

      @Parameter(required=true) protected PackageData packageData
    • outputDirectory

      @Parameter(required=true) protected File outputDirectory
    • rProjectDir

      protected Path rProjectDir
    • jarDir

      protected Path jarDir
    • rDir

      protected Path rDir
    • manDir

      protected Path manDir
    • docs

      protected Path docs
    • testDir

      protected Path testDir
    • workflows

      protected Path workflows
    • jarFile

      protected String jarFile
    • pomDir

      protected Path pomDir
    • rToPomPath

      protected String rToPomPath
    • sourcesFile

      protected String sourcesFile
    • thinJarFile

      protected String thinJarFile
    • shadedFile

      protected String shadedFile
  • Constructor Details

    • PluginBase

      public PluginBase()
  • Method Details

    • rmContents

      protected void rmContents(Path dir) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • rmJar

      protected void rmJar(Path dir, String artifactiId) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • isGenerated

      protected static boolean isGenerated(File f)
    • rmGenerated

      protected void rmGenerated(Path dir) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • setupPaths

      protected void setupPaths() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • scanDirectoryForExports

      protected List<String> scanDirectoryForExports(Path rDir) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • deleteRPackageInstalledJars

      protected void deleteRPackageInstalledJars() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • deleteRPackageJar

      protected void deleteRPackageJar(String jarFile)
    • copyCompliedJarToRPackage

      protected void copyCompliedJarToRPackage(String jarFile) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException