title: jboss-as maven plugin: undeploy by reg-ex does not work
body: <p>My ear files have version in them. For example, myApp-1.0.1.ear or myApp-1.0.2.ear. I'm trying to undeploy by regex(cause I don't know what the current version is), and then deploy.</p>
  
  <p>However, undeploy by regex is not working for me. I'm looking for 'myApp-*.ear', however it doesn't work unless the version in pom matches the version of current deployment...</p>
  
  <p>what am I doing wrong?</p>
  
  <p>Here's my pom.xml</p>
  
  <pre><code>...
  &lt;version&gt;1.0.0&lt;/version&gt;
  ...
  &lt;plugin&gt;
      &lt;groupId&gt;org.jboss.as.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;jboss-as-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;7.4.Final&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
            &lt;phase&gt;clean&lt;/phase&gt;
            &lt;goals&gt;
                &lt;goal&gt;undeploy&lt;/goal&gt;
            &lt;/goals&gt;
            &lt;configuration&gt;
                &lt;match-pattern&gt;myApp-*.ear&lt;/match-pattern&gt;
                &lt;ignoreMissingDeployment&gt;true&lt;/ignoreMissingDeployment&gt;
                &lt;matchPatternStrategy&gt;fail&lt;/matchPatternStrategy&gt;
            &lt;/configuration&gt;
          &lt;/execution&gt;
          &lt;execution&gt;
              &lt;id&gt;install-application&lt;/id&gt;
              &lt;phase&gt;install&lt;/phase&gt;
              &lt;goals&gt;
                  &lt;goal&gt;deploy&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  ...
  </code></pre>