title: Why won´t build-helper-maven-plugin pass property to javafx-maven-plugin?
body: <p>I am currently trying to deploy a javafx native bundle. While this basically works fine it won´t deploy to any location given to <code>&lt;nativeOutputDir&gt;</code> by a contructed property using build-helper-maven-plugin and its regex-property goal.</p>
  
  <p>Here´s my pom:</p>
  
  <pre><code>&lt;build&gt;
  &lt;plugins&gt;
      &lt;plugin&gt;
          &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
          &lt;artifactId&gt;build-helper-maven-plugin&lt;/artifactId&gt;
          &lt;executions&gt;
              &lt;execution&gt;
                  &lt;id&gt;regex-property&lt;/id&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;regex-property&lt;/goal&gt;
                  &lt;/goals&gt;
                  &lt;configuration&gt;
                              &lt;name&gt;replaced.deploydir&lt;/name&gt;
                              &lt;value&gt;${project.version}&lt;/value&gt;
                              &lt;regex&gt;.+SNAPSHOT&lt;/regex&gt;
                              &lt;replacement&gt;C:\\\\temp\\\\snapDir&lt;/replacement&gt;
                              &lt;failIfNoMatch&gt;true&lt;/failIfNoMatch&gt;
                              &lt;failOnError&gt;true&lt;/failOnError&gt;
                  &lt;/configuration&gt;
              &lt;/execution&gt;
          &lt;/executions&gt;
      &lt;/plugin&gt;
      &lt;plugin&gt;
          &lt;groupId&gt;com.zenjava&lt;/groupId&gt;
          &lt;artifactId&gt;javafx-maven-plugin&lt;/artifactId&gt;
          &lt;configuration&gt;
              &lt;mainClass&gt;foo.bar.StartApp&lt;/mainClass&gt;
              &lt;nativeOutputDir&gt;${replaced.deployDir}&lt;/nativeOutputDir&gt;
              &lt;nativeReleaseVersion&gt;1.1.0&lt;/nativeReleaseVersion&gt;
              &lt;updateExistingJar&gt;true&lt;/updateExistingJar&gt;
              &lt;additionalAppResources&gt;${basedir}/target/extra-resources&lt;/additionalAppResources&gt;
              &lt;appName&gt;InstructionGen&lt;/appName&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;
  &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>Now when i pass a property just by using mavens property-tag the nativeInstaller will be deployed to the correct location.</p>
  
  <p>While this might be correlated to [question]: (<a href="https://stackoverflow.com/questions/25483586/maven-build-helper-maven-plugin-regex-unable-to-use-property-as-dependency-versi">Maven build-helper-maven-plugin regex unable to use property as dependency.version</a>).
  That question does not support an answer in my opinion.
  The phase in which the replacement takes place is "validate", whereas the phase in which the javafx-maven-plugin builds the bundle is "package", so order should be correct.
  I used the antrun-plugin for tests to see if the property is created at all, and it is.
  Interesting fact: When I add something after <code>${replaced.deployDir}</code> in <code>&lt;nativeOutputDir&gt;</code> like <code>&lt;nativeOutputDir&gt;${replaced.deployDir}\\test&lt;/nativeOutputDir&gt;</code> it deploys to <code>projectname\target\${replaced.deployDir}\test</code> creating the non-parsed <code>${replaced.deployDir}</code> folder.</p>
  
  <p>Any help is appreciated.</p>