title: Maven command "mvn clean jetty:run" and other mvn commands are not working in Eclipse
body: <p>I am following <strong>Google Cloud documentation</strong> <a href="https://cloud.google.com/appengine/docs/flexible/java/using-cloud-sql" rel="nofollow noreferrer">https://cloud.google.com/appengine/docs/flexible/java/using-cloud-sql</a> for developing an Application. 
  As suggested by the documentation, <code>mvn clean jetty:run</code> command should be used for testing the application locally. Apart from this, I have tried other commands like <code>mvn compile</code> too. Following are the steps which I followed for testing the application locally:-</p>
  
  <p><strong>Right clicked on my project</strong> -> <strong>Run As</strong> -> <strong>Maven build, then the configuration box launched where I entered the <code>mvn clean jetty:run</code> in the Goals text box and clicked Run</strong></p>
  
  <p>Following is my pom.xml file:-</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;LiveInBliss&lt;/groupId&gt;
    &lt;artifactId&gt;LiveInBliss&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
    &lt;build&gt;
    &lt;!-- [START resources] --&gt;
      &lt;resources&gt;
        &lt;resource&gt;
          &lt;directory&gt;src/main/resources&lt;/directory&gt;
          &lt;filtering&gt;true&lt;/filtering&gt;
        &lt;/resource&gt;
      &lt;/resources&gt;
      &lt;!-- [END resources] --&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
      &lt;groupId&gt;org.eclipse.jetty&lt;/groupId&gt;
      &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;9.4.0.M0&lt;/version&gt;
  &lt;/plugin&gt;
  &lt;plugin&gt;
    &lt;groupId&gt;org.eclipse.jetty&lt;/groupId&gt;
    &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
    &lt;version&gt;9.4.2.v20170220&lt;/version&gt;
  &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.2.1&lt;/version&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
    &lt;dependencies&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
      &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
      &lt;version&gt;3.1.0&lt;/version&gt;
      &lt;type&gt;jar&lt;/type&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
    &lt;groupId&gt;com.google.cloud&lt;/groupId&gt;
    &lt;artifactId&gt;google-cloud&lt;/artifactId&gt;
    &lt;version&gt;0.8.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;com.google.cloud&lt;/groupId&gt;
    &lt;artifactId&gt;google-cloud-storage&lt;/artifactId&gt;
    &lt;version&gt;1.34.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;                        &lt;!-- http://dev.mysql.com/doc/connector-j/en/ --&gt;
    &lt;groupId&gt;mysql&lt;/groupId&gt;
    &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
    &lt;version&gt;6.0.5&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;com.google.cloud.sql&lt;/groupId&gt;
    &lt;artifactId&gt;mysql-socket-factory-connector-j-6&lt;/artifactId&gt;
    &lt;version&gt;1.0.10&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;properties&gt;
  &lt;!--
      INSTANCE_CONNECTION_NAME from Cloud Console &gt; SQL &gt; Instance Details &gt; Properties
      or `gcloud sql instances describe &lt;instance&gt; | grep connectionName`
  --&gt;
      &lt;INSTANCE_CONNECTION_NAME&gt;live-in-bliss:northamerica-northeast1:liveinbliss-99&lt;/INSTANCE_CONNECTION_NAME&gt;
      &lt;user&gt;root&lt;/user&gt;
      &lt;password&gt;my_password&lt;/password&gt;
      &lt;database&gt;liveinbliss&lt;/database&gt;
      &lt;sqlURL&gt;jdbc:mysql://google/$liveinbliss?cloudSqlInstance=$live-in-bliss:northamerica-northeast1:liveinbliss-99&amp;amp;socketFactory=com.google.cloud.sql.mysql.SocketFactory&amp;amp;user=$root&amp;amp;password=$Mohini24&amp;amp;useSSL=false&lt;/sqlURL&gt;
    &lt;/properties&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>and following is my error log:-</p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO] 
  [INFO] ----------------------&lt; LiveInBliss:LiveInBliss &gt;-----------------------
  [INFO] Building LiveInBliss 0.0.1-SNAPSHOT
  [INFO] --------------------------------[ war ]---------------------------------
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 0.305 s
  [INFO] Finished at: 2018-10-08T18:28:24+05:30
  [INFO] ------------------------------------------------------------------------
  [ERROR] Unknown lifecycle phase "mvn". 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>Pls do suggest, What changes should I make.</p>
  
  <p>Thank you</p>