title: Starting a simple JUnit / Maven project in IntelliJ Idea
body: <p>I'm trying to find the quickest way to get a simple JUnit test up and running with IntelliJ IDEA and Maven.  This is what I do:</p>
  
  <pre><code>File &gt; New Project
  Maven &gt; Create from Archetype &gt; org.apache.maven.archetypes:maven-archetype-quickstart
  Give it a unique GroupId and ArtifactId ("testingmaven")
  Give it a project name ("testingmaven")
  Click Finish
  </code></pre>
  
  <p>At this point, I get the following file structure:</p>
  
  <pre><code>project
  |_src
    |_main
      |_java
        |_testingmaven
          |_App.java
    |_test
      |_java
        |_testingmaven
          |_AppTest.java
  </code></pre>
  
  <p>But I can't run anything.  When I put a simple JUnit test in AppTest.java and click "Build > Run" it forces me to update configurations.  It doesn't seem to recognise my files as Java.</p>
  
  <p>I just want to be able to start a Maven project, write a simple JUnit test, and run the test.</p>
  
  <p>I'm coming from Ruby, so I know I'm just not used to package organisation and IDE configuration.    </p>
  
  <p>Am I missing something?<br>
  Is it because of the archetype I'm starting with?<br>
  When I tried to start a Maven project without an archetype, I didn't get <code>pom.xml</code>.<br>
  <strong><em>Is there a better archetype for my purposes?</em></strong></p>