title: Error "You must specify a valid lifecycle phase or a goal in the format" while executing jmeter test using Maven
body: <p>POM file content am using to run jmeter file is given below but it is throwing error like "You must specify a valid lifecycle phase or a goal in the format" in command prompt.Please help on this</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.example&lt;/groupId&gt;
    &lt;artifactId&gt;jmeter-maven&lt;/artifactId&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;jmeter-maven&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&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.4.1&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;configuration&gt;
                &lt;jMeterProcessJVMSettings&gt;
                    &lt;xms&gt;1024&lt;/xms&gt;
                    &lt;xms&gt;1024&lt;/xms&gt;
                    &lt;arguments&gt;
                       &lt;argument&gt;-Xprof&lt;/argument&gt;
                       &lt;argument&gt;-Xfuture&lt;/argument&gt;
                    &lt;/arguments&gt;
                 &lt;/jMeterProcessJVMSettings&gt;
                 &lt;propertiesUser&gt;
                   &lt;users&gt;${users}&lt;/users&gt;
               &lt;rampUp&gt;${rampUp}&lt;/rampUp&gt;
                   &lt;loop&gt;${loopcount}&lt;/loop&gt;
                   &lt;url&gt;${url}&lt;/url&gt;
                   &lt;suite&gt;${suite}&lt;/suite&gt;
                 &lt;/propertiesUser&gt;
                 &lt;testFilesIncluded&gt;
                     &lt;jMeterTestFile&gt;testplans/Ecommersce.jmx&lt;/jMeterTestFile&gt;
                 &lt;/testFilesIncluded&gt;
               &lt;/configuration&gt;
             &lt;/execution&gt;
           &lt;/executions&gt;
          &lt;/plugin&gt;
         &lt;/plugins&gt;
        &lt;/build&gt;
  
        &lt;dependencies&gt;
            &lt;!-- https://mvnrepository.com/artifact/com.lazerycode.jmeter/jmeter-mavan-plugin --&gt;
           &lt;dependency&gt;
                &lt;groupId&gt;com.lazerycode.jmeter&lt;/groupId&gt;
                &lt;artifactId&gt;com.lazerycode.jmeter&lt;/artifactId&gt;
                &lt;version&gt;2.1.0&lt;/version&gt;
           &lt;/dependency&gt;
        &lt;/dependencies&gt;
     &lt;/project&gt;
  </code></pre>
  
  <p>When I run Jmeter file using Maven POM it is throwing error like "You must specify a valid lifecycle phase or a goal in the format" in command prompt</p>
  
  <p>Below error am getting on command window</p>
  
  <pre><code>  C:\Desktop\jmeter\frameworkmaven&gt;mvn verify -Dusers=1 DrampUp=1 Dloopcount=1 Durl=www.testing.com -Dsuite=framework
                  [INFO] Scanning for projects...
                      [WARNING]
                      [WARNING] Some problems were encountered while building the effective model for com.example:jmeter-maven:jar:1.0-SNAPSHOT
                      [WARNING] The expression ${url} is deprecated. Please use ${project.url} instead.
                      [WARNING]
                      [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
                      [WARNING]
                      [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
                      [WARNING]
                      [INFO]
                      [INFO] ----------------------&lt; com.example:jmeter-maven &gt;----------------------
                      [INFO] Building jmeter-maven 1.0-SNAPSHOT
                      [INFO] --------------------------------[ jar ]---------------------------------
                      [INFO] ------------------------------------------------------------------------
                      [INFO] BUILD FAILURE
                      [INFO] ------------------------------------------------------------------------
                      [INFO] Total time: 0.192 s
                      [INFO] Finished at: 2018-11-01T21:16:26+05:30
                      [INFO] ------------------------------------------------------------------------
  
  
        [ERROR] Unknown lifecycle phase "DrampUp=1". You must specify a valid 
  
      lifecycle phase or a goal in the format &lt;plugin-prefix&gt;:&lt;goal&gt; or &lt;plugin-group-id&gt;:&lt;plugin-artifact-id&gt;[:&lt;plugin-version&gt;]:&lt;goal&gt;. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -&gt; [Help 1]
  
              [ERROR]
              [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
              [ERROR] Re-run Maven using the -X switch to enable full debug logging.
              [ERROR]
              [ERROR] For more information about the errors and possible solutions, please read the following articles:
              [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException
  </code></pre>
  
  <p>Kindly help on this</p>