1   package com.atlassian.maven.plugins.amps;
2   
3   import com.atlassian.maven.plugins.amps.util.GoogleAmpsTracker;
4   
5   import org.apache.maven.plugin.MojoExecutionException;
6   import org.apache.maven.plugin.MojoFailureException;
7   import org.jfrog.maven.annomojo.annotations.MojoGoal;
8   import org.jfrog.maven.annomojo.annotations.MojoRequiresProject;
9   
10  /**
11   * Creates a new plugin
12   */
13  @MojoGoal("create")
14  @MojoRequiresProject(false)
15  public class CreateMojo extends AbstractProductAwareMojo
16  {
17      public void execute() throws MojoExecutionException, MojoFailureException
18      {
19          getGoogleTracker().track(GoogleAmpsTracker.CREATE_PLUGIN);
20  
21          getMavenGoals().createPlugin(getProductId());
22      }
23  
24      @Override
25      protected String getDefaultProductId() throws MojoExecutionException
26      {
27          return "all";
28      }
29  }