Class JPackToolPrepareMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="jpacktool-prepare",
      requiresDependencyResolution=RUNTIME,
      defaultPhase=PREPARE_PACKAGE,
      requiresProject=true)
public class JPackToolPrepareMojo
extends AbstractDependencyJarsMojo<GenerateJDepsHandler>
Prepare execution of the jlink and jpackager goals by analyzing java module dependencies and copying files.
Author:
Bernd Eilers
  • Field Details

    • generateAutomaticJdeps

      @Parameter(defaultValue="true", required=true, readonly=false) protected boolean generateAutomaticJdeps
    • generateClassPathJdeps

      @Parameter(defaultValue="true", required=true, readonly=false) protected boolean generateClassPathJdeps
    • generateModuleJdeps

      @Parameter(defaultValue="true", required=true, readonly=false) protected boolean generateModuleJdeps
    • showAllDeps

      @Parameter(defaultValue="false", required=true, readonly=false) protected boolean showAllDeps
    • ignoreMissingDeps

      @Parameter(defaultValue="true") protected boolean ignoreMissingDeps
      Flag if --ignore-missing-deps should be used on the jdeps calls to analyze module dependencies
    • useListDeps

      @Parameter(defaultValue="false") protected boolean useListDeps
    • skipJDeps

      protected boolean skipJDeps
    • skipCopy

      protected boolean skipCopy
    • finalName

      @Parameter(defaultValue="${project.build.finalName}", readonly=true) protected java.lang.String finalName
      Name of the generated properties file in the target directory. This will not change the name of the installed/deployed file.
    • model

      protected java.util.Map<java.lang.String,​java.lang.Object> model
    • genClassPathHandler

      protected GenerateClassPathHandler genClassPathHandler
  • Constructor Details

  • Method Details

    • putModel

      protected void putModel​(java.lang.String key, java.lang.Object value)
    • executeBeforeCopy

      public void executeBeforeCopy() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Hook for derived classes to execute something before has CollectJarsHandler is being called.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - on plugin execution failure
      org.apache.maven.plugin.MojoFailureException - on misc plugin failure
    • executeAfterJDeps

      public void executeAfterJDeps() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Hook for derived classes to execute something after the JDeps Handler has finished.
      Throws:
      org.apache.maven.plugin.MojoExecutionException - on plugin error
      org.apache.maven.plugin.MojoFailureException - on plugin error
    • executeToolMain

      public void executeToolMain() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Overrides:
      executeToolMain in class AbstractDependencyJarsMojo<GenerateJDepsHandler>
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • isSkipJDeps

      public boolean isSkipJDeps()
    • setSkipJDeps

      public void setSkipJDeps​(boolean skipJDeps)
    • isSkipCopy

      public boolean isSkipCopy()
    • setSkipCopy

      public void setSkipCopy​(boolean skipCopy)
    • creatGenClassPathHandler

      public GenerateClassPathHandler creatGenClassPathHandler()
    • createCopyHandler

      public CollectJarsHandler createCopyHandler()
    • createHandler

      public GenerateJDepsHandler createHandler() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Specified by:
      createHandler in class AbstractDependencyJarsMojo<GenerateJDepsHandler>
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException