title: specifying goal in pom.xml
body: <p>I am creating a new maven project with <code>pom.xml</code> as below:-</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;firstRestlet&lt;/groupId&gt;
    &lt;artifactId&gt;restlet1&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
  
    &lt;name&gt;restlet1&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
    &lt;repositories&gt;
  &lt;repository&gt;
     &lt;id&gt;maven-restlet&lt;/id&gt;
     &lt;name&gt;Public online Restlet repository&lt;/name&gt;
     &lt;url&gt;http://maven.restlet.org&lt;/url&gt;
  &lt;/repository&gt; 
  &lt;/repositories&gt;
    &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
    &lt;/properties&gt;
  
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;3.8.1&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>The problem which i am facing is that target war file is not getting generated.
  On eclipse console after i ran this <code>pom.xml</code> what i found was goals missing in <code>pom.xml</code>.</p>
  
  <p><strong>ECLIPSE CONSOLE MESSAGE:</strong> </p>
  
  <pre><code>No goals have been specified for this build. 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] 
  </code></pre>
  
  <p>Please tell me how to specify goals in <code>pom.xml</code>.</p>
  
  <p>Also tell me how to create RESTLET project using maven as build tool.</p>
  
  <p>Thanks &amp; Regards,</p>