title: Maven works in Command Prompt, but not in Power Shell
body: <p>I am very new to Maven and initial stages where i am exploring how to create a java EE project that i can host in a server. Maintain it through Maven.
  First question is asked is how do i create the same structure of a java project that is created by Eclipse when i create a new Maven project in command line in Power Shell? </p>
  
  <p>My findings - </p>
  
  <p><a href="https://i.stack.imgur.com/zUajM.png" rel="nofollow noreferrer">Please see the image snippet</a> </p>
  
  <p>I understand that once we have a project crated. If you want to add modify how your project should build, we can modify that, or we can add new dependencies or many other things from the POM.xml.
  But initially atleast it should create the structure of the maven project with a minimal pom.xml right ?</p>
  
  <p>I used the command <code>mvn archetype:generate ...</code>. In the Command Prompt the project was created correctly. But I need Maven work in the Power Shell, and this produces an error:</p>
  
  <pre><code>The goal you specified requires a project to execute but there is no POM
   in this directory ...
  </code></pre>
  
  <p>Thanks in Advance</p>