Class JLinkResolver


  • public class JLinkResolver
    extends Object
    Determines the strategy how to invoke jlink.
    • Constructor Detail

      • JLinkResolver

        public JLinkResolver​(AbstractJLinkMojo mojo,
                             Set<org.apache.maven.artifact.Artifact> artifacts)
        Creates a resolver.
        Parameters:
        mojo - the base mojo
        artifacts - the maven artifacts
    • Method Detail

      • resolve

        public JLinkResolver.Result resolve()
                                     throws org.apache.maven.plugin.MojoExecutionException
        Resolves the maven artifacts for passing to jlink.
        Returns:
        the resolver result
        Throws:
        org.apache.maven.plugin.MojoExecutionException - if loading artifacts failed