1   package com.atlassian.maven.plugins.amps;
2   
3   import org.apache.maven.plugin.MojoExecutionException;
4   import org.apache.maven.plugin.MojoFailureException;
5   import org.jfrog.maven.annomojo.annotations.MojoGoal;
6   import org.jfrog.maven.annomojo.annotations.MojoParameter;
7   import org.jfrog.maven.annomojo.annotations.MojoRequiresDependencyResolution;
8   
9   import java.util.HashMap;
10  import java.util.Map;
11  
12  /**
13   *
14   */
15  @MojoGoal("unit-test")
16  @MojoRequiresDependencyResolution("test")
17  public class UnitTestMojo extends AbstractAmpsMojo
18  {
19      /**
20       * System Properties to pass to surefire using a more familiar syntax.
21       *
22       * @since 3.3
23       */
24      @MojoParameter
25      protected Map<String, Object> systemPropertyVariables = new HashMap<String, Object>();
26  
27      public void execute() throws MojoExecutionException, MojoFailureException
28      {
29          getMavenGoals().runUnitTests(systemPropertyVariables);
30      }
31  }