Class JModHashMojo

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

    @Mojo(name="hash",
          requiresDependencyResolution=COMPILE,
          defaultPhase=PACKAGE)
    public class JModHashMojo
    extends AbstractJModMojo
     jmod hash ...
     
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.lang.String> classPath
      --class-path <path> Application jar files|dir containing classes.
      private java.util.List<java.lang.String> cmds
      --class-path <path> Application jar files|dir containing classes.
      private java.io.File config
      --config <path> Location of user-editable config files.
      private boolean dryRun  
      private java.util.List<java.lang.String> excludes  
      private java.util.List<java.io.File> libs  
      private java.lang.String mainClass  
      private java.io.File modulePath
      Define the modulepath for the jmod call.
      private java.lang.String moduleVersion  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      JModHashMojo()  
    • Field Detail

      • classPath

        @Parameter
        private java.util.List<java.lang.String> classPath
        --class-path <path> Application jar files|dir containing classes.
      • cmds

        @Parameter
        private java.util.List<java.lang.String> cmds
        --class-path <path> Application jar files|dir containing classes.
      • config

        @Parameter
        private java.io.File config
        --config <path> Location of user-editable config files.
      • dryRun

        @Parameter
        private boolean dryRun
      • excludes

        @Parameter
        private java.util.List<java.lang.String> excludes
      • mainClass

        @Parameter
        private java.lang.String mainClass
      • libs

        @Parameter
        private java.util.List<java.io.File> libs
      • moduleVersion

        @Parameter
        private java.lang.String moduleVersion
      • modulePath

        @Parameter(required=true)
        private java.io.File modulePath
        Define the modulepath for the jmod call. --module-path <path> Must be a directory.
    • Constructor Detail

      • JModHashMojo

        public JModHashMojo()
    • 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
      • createJModHashCommandLine

        private org.codehaus.plexus.util.cli.Commandline createJModHashCommandLine()