Class JModListMojo

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

    @Mojo(name="list",
          requiresDependencyResolution=NONE,
          defaultPhase=NONE)
    public class JModListMojo
    extends AbstractJModMojo
    This goal is to support the usage of jmod list to show the content of a jmod file.
    • Field Detail

      • outputDirectory

        @Parameter(defaultValue="${project.build.directory}",
                   required=true,
                   readonly=true)
        private java.io.File outputDirectory
      • jmodFile

        @Parameter(defaultValue="${project.build.directory}/jmods/${project.artifactId}.jmod",
                   property="jmodfile",
                   required=true)
        private java.io.File jmodFile
        The name of the jmod file which is used to be examined via jmod list jmodFile
    • Constructor Detail

      • JModListMojo

        public JModListMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • createJModListCommandLine

        private org.codehaus.plexus.util.cli.Commandline createJModListCommandLine​(java.io.File resultingJModFile)
                                                                            throws java.io.IOException
        Throws:
        java.io.IOException