title: Minimum pom.xml file for new Maven / Spring MVC project
body: <p>I am completely new to Maven and Spring MVC. What I am looking to do is to set up a new Spring MVC project, using Maven (hopefully this sentence makes sense), and run my web app on Tomcat using Eclipse. </p>
  
  <p>I am following the tutorial at this link and I have a problem with the <code>pom.xml</code> file:</p>
  
  <ul>
  <li><a href="http://spring.io/blog/2011/01/17/green-beans-getting-started-with-maven-and-spring/" rel="nofollow noreferrer">Getting Started with Maven and Spring</a></li>
  </ul>
  
  <p>The tutorial asks to create the folder structure, and to create a pom.xml file. For starters they ask to put this line in pom.xml:</p>
  
  
  
  <pre class="lang-none prettyprint-override"><code>xml 4.0.0org.springsource.greenbeans.mavenexample11.0-SNAPSHOTOur Simple Project
  </code></pre>
  
  <p>But when I do that, my Eclipse throws an error:</p>
  
  <pre class="lang-none prettyprint-override"><code>[INFO] Scanning for projects...
  [ERROR] The build could not read 1 project -&gt; [Help 1]
  [ERROR]
  [ERROR]   The project  (D:\projectName\pom.xml) has 1 error
  [ERROR]     Non-parseable POM D:\projectName\pom.xml: only whitespace content allowed before start tag and not ` (position: START_DOCUMENT seen `... @1:1)  @ line 1, column 1 -&gt; [Help 2]
  [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/ProjectBuildingException
  [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException
  </code></pre>
  
  <p>Any idea on what the right minimum pom.xml could be? I tried many things but it didn't work for me...</p>