Class BootstrapMojo

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

    @Mojo(name="bootstrap",
          requiresProject=false)
    public class BootstrapMojo
    extends CheckoutMojo
    Pull the project source from the configured scm and execute the configured goals.
    Author:
    Dan T. Tran
    • Constructor Detail

      • BootstrapMojo

        @Inject
        public BootstrapMojo​(ScmManager manager,
                             org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter)
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Specified by:
        execute in interface org.apache.maven.plugin.Mojo
        Overrides:
        execute in class CheckoutMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • determineWorkingDirectoryPath

        protected String determineWorkingDirectoryPath​(File checkoutDirectory,
                                                       String relativePathProjectDirectory,
                                                       String goalsDirectory)
        Determines the path of the working directory. By default, this is the checkout directory. For some SCMs, the project root directory is not the checkout directory itself, but a SCM-specific subdirectory. The build can furthermore optionally be executed in a subdirectory of this project directory, in case.
        Parameters:
        checkoutDirectory -
        relativePathProjectDirectory -
        goalsDirectory -
        Returns:
        TODO