title: How do I set up a new Java project with Eclipse, Maven, Grails and git?
body: <p>I'm new to Grails development and would like to set up a new project, so I can use Eclipse as IDE and build it on my CI (Jenkins) with Maven. This is my environment:</p>
  
  <ul>
  <li>Java 1.6.0</li>
  <li>Grails 2.1.0</li>
  <li>Maven 2.2.1</li>
  <li>Eclipse Juno with the m2e and egit plugins</li>
  </ul>
  
  <p>I used the following commands from 
  <a href="http://grails.org/doc/latest/guide/commandLine.html#antAndMaven" rel="nofollow">http://grails.org/doc/latest/guide/commandLine.html#antAndMaven</a>:</p>
  
  <pre><code>mvn archetype:generate -DarchetypeGroupId=org.grails \
  -DarchetypeArtifactId=grails-maven-archetype -DarchetypeVersion=2.1.0 \
  -DgroupId=com.company.dep -DartifactId=project
  mvn initialize
  </code></pre>
  
  <p>But after importing it as a maven project in Eclipse, there were erros about slf4j and com.sun.tools not found and lifecycle phases not mapped.</p>
  
  <p>What steps are necessary to get this running in Eclipse?</p>