Class AbstractJModMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    JModCreateMojo, JModDescribeMojo, JModHashMojo, JModListMojo

    public abstract class AbstractJModMojo
    extends org.apache.maven.plugin.AbstractMojo
    This contains the code to handle toolchains and the execution of the command which is similar to code in maven-jlink-plugin (maven-jdeps-plugin?). Later we need to think about a way to combine that code to reduce duplication.
    Author:
    Karl Heinz Marbaise khmarbaise@apache.org
    • Constructor Detail

      • AbstractJModMojo

        public AbstractJModMojo()
    • Method Detail

      • projectHasAlreadySetAnArtifact

        protected boolean projectHasAlreadySetAnArtifact()
      • executeCommand

        protected void executeCommand​(org.codehaus.plexus.util.cli.Commandline cmd,
                                      File outputDirectory)
                               throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getCommaSeparatedList

        protected String getCommaSeparatedList​(List<String> modules)
        Convert a list into a
        Parameters:
        modules - The list of modules.
        Returns:
        The string with the module list which is separated by ,.
      • getToolchain

        protected org.apache.maven.toolchain.Toolchain getToolchain()
      • getProject

        public org.apache.maven.project.MavenProject getProject()
      • getSession

        public org.apache.maven.execution.MavenSession getSession()