title: Maven jmeter plugin: SAXParseException: Content is not allowed in prolog
body: <p>I have something like this in my jmx file of jmeter:</p>
  
  <pre><code>&lt;stringProp name="SoapSampler.URL_DATA"&gt;http://192.168.0.1:8080/abc/Service&lt;/stringProp&gt;
  </code></pre>
  
  <p>I'm using jmeter maven plugin to get the performance test result when doing the maven build. It's working perfectly.</p>
  
  <p>Now I changed that to a user defined variable in jmeter and try to run that. I get the following error: </p>
  
  <p><strong>"SAXParseException: Content is not allowed in prolog"</strong></p>
  
  <p>Changes in jmx file:</p>
  
  <pre><code>      &lt;elementProp name="server" elementType="Argument"&gt;
          &lt;stringProp name="Argument.name"&gt;server&lt;/stringProp&gt;
          &lt;stringProp name="Argument.value"&gt;http://192.168.0.1:8080&lt;/stringProp&gt;
          &lt;stringProp name="Argument.metadata"&gt;=&lt;/stringProp&gt;
        &lt;/elementProp&gt;
  
  
  &lt;stringProp name="SoapSampler.URL_DATA"&gt;${server}/abc/Service&lt;/stringProp&gt;
  </code></pre>
  
  <p>However the modified changes works perfectly if executed directly from jmeter GUI. Fails only when executed during maven build.</p>
  
  <p>Here is my pom.xml:</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.abc.def.performance&lt;/groupId&gt;
  &lt;artifactId&gt;abc-performance&lt;/artifactId&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;packaging&gt;jar&lt;/packaging&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;com.lazerycode.jmeter&lt;/groupId&gt;
              &lt;artifactId&gt;jmeter-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.9.0&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;jmeter-tests&lt;/id&gt;
                      &lt;phase&gt;verify&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;jmeter&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;com.lazerycode.jmeter&lt;/groupId&gt;
              &lt;artifactId&gt;jmeter-analysis-maven-plugin&lt;/artifactId&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;verify&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;analyze&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;!-- An AntPath-Style pattern matching a JMeter XML result file to 
                              analyze. Must be a fully qualified path. File may be GZiped, must end in 
                              .gz then. Default: not set. Required. --&gt;
                          &lt;source&gt;${project.build.directory}/**/*.jtl&lt;/source&gt;
                          &lt;!-- directory where to store analysis result files. Default: ${project.build.directory} 
                              Required. --&gt;
                          &lt;targetDirectory&gt;${project.build.directory}/results&lt;/targetDirectory&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p></p>
  
  <p></p>