Class DownloadLicenseMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.vaadin.flow.plugin.maven.FlowModeAbstractMojo
com.vaadin.flow.plugin.maven.DownloadLicenseMojo
All Implemented Interfaces:
com.vaadin.flow.plugin.base.PluginAdapterBase, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="download-license", requiresProject=false) public class DownloadLicenseMojo extends FlowModeAbstractMojo
Goal that downloads a Vaadin Pro license key by opening the browser and waiting for the user to log in.

The downloaded license key is saved to the local file system (~/.vaadin/proKey) and can be used for validating commercial Vaadin components.

Since:
25.0
  • Constructor Details

    • DownloadLicenseMojo

      public DownloadLicenseMojo()
  • Method Details

    • executeInternal

      protected void executeInternal() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      Description copied from class: FlowModeAbstractMojo
      Perform whatever build-process behavior this Mojo implements.
      This is the main trigger for the Mojo inside the Maven system, and allows the Mojo to communicate errors.
      Specified by:
      executeInternal in class FlowModeAbstractMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException - if an unexpected problem occurs. Throwing this exception causes a "BUILD ERROR" message to be displayed.
      org.apache.maven.plugin.MojoFailureException - if an expected problem (such as a compilation failure) occurs. Throwing this exception causes a "BUILD FAILURE" message to be displayed.