title: Maven does not take account a variable category defined in the pom
body: <p>I have two tests into my Maven test project.  I define two categories as interfaces that I use in the following ways: (@Category(HighTest.class) for 'testLR' method and @Category(MediumTest.class) for'testFD' method. I have also defineD these two interfaces in my project as</p>
  
  <pre><code> package com.groups.project;
  
   public interface MediumTest {
  
  }
  </code></pre>
  
  <p>I want to run the test methods matching a single category. When running these tests following a specific category (from the command line) by the use of mvn -Dtest.category=MediumTest test or mvn -Dtest.category=HighTest test, all test methods are being run (testLR and testFD) while I'd only like the test that matches the category that i specify to run.
  I have even changed MediumTest in MediumTest.class or "MediumTest" but it does not change anything , all tests are always run
  It looks to me as if my variable test.category within pom is not readable by jvm.
  See here my Maven test project and POM. Thanks for helping me out! </p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org    
  /2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org     
  /xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;groupId&gt;com.open-projet&lt;/groupId&gt;
  &lt;artifactId&gt;open-android&lt;/artifactId&gt;
  &lt;version&gt;1.0.0-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  
  &lt;name&gt;open-android&lt;/name&gt;
  &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
   &lt;properties&gt;
   &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
   &lt;/properties&gt;
   &lt;build&gt;
  &lt;plugins&gt;
    &lt;plugin&gt;
       &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
        &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
        &lt;version&gt;2.13&lt;/version&gt;
       &lt;configuration&gt;
  &lt;groups&gt;${test.category}&lt;/groups&gt;
       &lt;/configuration&gt;
     &lt;/plugin&gt;
   &lt;/plugins&gt;
  &lt;/build&gt;
   &lt;dependencies&gt;
    &lt;dependency&gt;
    &lt;groupId&gt;junit&lt;/groupId&gt;
    &lt;artifactId&gt;junit&lt;/artifactId&gt;
    &lt;version&gt;4.8&lt;/version&gt;
    &lt;scope&gt;test&lt;/scope&gt;
     &lt;/dependency&gt;
     &lt;dependency&gt;
     &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
     &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
     &lt;version&gt;2.37.0&lt;/version&gt;
     &lt;/dependency&gt;
  
    &lt;dependency&gt;
      &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
      &lt;artifactId&gt;selenium-server&lt;/artifactId&gt;
      &lt;version&gt;2.39.0&lt;/version&gt;
    &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>Test Code</p>
  
  <pre><code>package com.groups.project;
  
  import static org.junit.Assert.assertEquals;
  
  import java.io.File;
  import java.util.Collection;
  import java.util.Arrays;
  import java.util.List;
  import org.junit.After;
  import org.junit.Before;
  import org.junit.Ignore;
  import org.junit.Test;
  import org.junit.experimental.categories.Category;
  import org.junit.runner.RunWith;
  import org.junit.runners.Parameterized;
  import org.junit.runners.Parameterized.Parameters;
  import org.openqa.selenium.By;
  import org.openqa.selenium.Keys;
  import org.openqa.selenium.OutputType;
  import org.openqa.selenium.TakesScreenshot;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.WebElement;
  import com.google.common.io.Files;
  
  
  /**
   * @author selenese
   * 
   */
  
  @RunWith(Parameterized.class)
  public class getConnectFD {
  
  private String quoiqui;
  private String ou;  
  private WebDriver driver = null;
  
  
  /**
   * @throws java.lang.Exception
   */
  
  @Parameters
  public static Collection data(){
      return Arrays.asList(new Object[][]{{"restaurant", "newyork"},});
  }
  
  public getConnectFD(String quoiqui, String ou){
      super();
      this.quoiqui = quoiqui;
      this.ou = ou;   
  }
  
  @Before
  public void setUp() throws Exception {
  
      driver = (WebDriver) SingleDriver.getInstance();    
  }
  
  /**
   * @throws java.lang.Exception
   */
  @After
  public void tearDown() throws Exception {
      //driver.quit();
  }
  
  
  @Test
  @Category(HighTest.class)
  public void testLR() throws InterruptedException {
  
      String item;
  
      // Step 1
      driver.get("http://m.opentour.fr/sprint3-p");
      Thread.sleep(5000);
  
      // Find the text input element by its name
      WebElement quiquoiou = driver.findElement(By.xpath("//input[@name='activity']"));
      quiquoiou.click();
      WebElement input1 = null;
      input1 = driver.findElement(By.xpath("//input[@id='globalActivity']")); 
      //  Enter something to search for
       input1.sendKeys(quoiqui);       
       input1.sendKeys(Keys.TAB);
         AssertEquals("Trouver",driver.findElement(By.xpath("//button[@type='submit']")).
    getText());
       driver.findElement(By.xpath("//button[@type='submit']")).click();
       Thread.sleep(3000);
  
  }
  
  @Test
  @Category(MediumTest.class)
  public void testFD() throws InterruptedException {
      System.out.println("test");
  }
  
  
  public @interface HighTest {}
  
  public @interface MediumTest {}
  </code></pre>
  
  <p>}</p>