title: Maven archetype
body: <p>Why this works(and then asks step by step arguments which I can define manually)</p>
  
  <pre><code>C:\Users\userName&gt;mvn archetype:generate
  </code></pre>
  
  <p>And this doesn't with arguments already specified? (it is example from 
  <a href="http://maven.apache.org/guides/getting-started/index.html" rel="nofollow">http://maven.apache.org/guides/getting-started/index.html</a>)</p>
  
  <pre><code>C:\Users\userName&gt;mvn archetype:generate \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DgroupId=com.mycompany.app \ -DartifactId=my-app
  
  [INFO] Scanning for projects...
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 0.124s
  [INFO] Finished at: Sat Aug 20 22:11:56 BST 2011
  [INFO] Final Memory: 5M/122M
  [INFO] ------------------------------------------------------------------------
  [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Users\userName. Please verify you invoked Maven from the correct directory. -&gt; [Help 1
  </code></pre>
  
  <p>The first approach also doesn't find POM, but then it creates everything itself...</p>