Class ModuleInfoMojo

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

    @Mojo(name="generate",
          defaultPhase=PROCESS_CLASSES)
    public class ModuleInfoMojo
    extends org.apache.maven.plugin.AbstractMojo
    • Constructor Summary

      Constructors 
      Constructor Description
      ModuleInfoMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      • Methods inherited from class org.apache.maven.plugin.AbstractMojo

        getLog, getPluginContext, setLog, setPluginContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • skip

        @Parameter(defaultValue="false",
                   property="module-info.skip")
        private boolean skip
      • outputDirectory

        @Parameter(defaultValue="${project.build.outputDirectory}",
                   required=true)
        private java.io.File outputDirectory
        The directory where the module-info.class file should be installed.
      • classesDirectory

        @Parameter(defaultValue="${project.build.outputDirectory}",
                   required=true)
        private java.io.File classesDirectory
        The directory where class files can be read from.
      • moduleInfoYml

        @Parameter(defaultValue="${project.build.sourceDirectory}/module-info.yml")
        private java.io.File moduleInfoYml
        The path to the module-info.yml file.
      • addPackages

        @Parameter(defaultValue="true",
                   property="module-info.add-packages")
        private boolean addPackages
      • addExports

        @Parameter(defaultValue="true",
                   property="module-info.add-exports")
        private boolean addExports
      • moduleArtifactId

        @Parameter(defaultValue="${project.artifactId}",
                   required=true)
        private java.lang.String moduleArtifactId
      • moduleGroupId

        @Parameter(defaultValue="${project.groupId}",
                   required=true)
        private java.lang.String moduleGroupId
      • moduleName

        @Parameter(property="module-info.module-name")
        private java.lang.String moduleName
      • moduleVersion

        @Parameter(defaultValue="${project.version}",
                   property="module-info.module-version")
        private java.lang.String moduleVersion
      • addMandatory

        @Parameter(defaultValue="true",
                   property="module-info.add-mandatory")
        private boolean addMandatory
      • detectUses

        @Parameter(defaultValue="true",
                   property="module-info.detect-uses")
        private boolean detectUses
      • detectProvides

        @Parameter(defaultValue="true",
                   property="module-info.detect-provides")
        private boolean detectProvides
    • Constructor Detail

      • ModuleInfoMojo

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