title: Run mvn exec:exec without a pom.xml
body: <p>I am trying to find a way just to fetch a library from maven repository and run it. I want to define everything by command line and ignore the pom. I am trying following:</p>
  
  <pre><code> mvn exec:exec -Dexec.mainClass="org.main.Class" -Dspring.profiles.active=test
  </code></pre>
  
  <p>When I try to run it with pom.xml, it starts to fetch all the dependencies described in the pom. Which I really don't want. When I run it without the pom.xml, it says <code>Goal requires a project to execute but there is no POM in this directory. Please verify you invoked Maven from the correct directory.</code> Is there a way to run it without the pom or at least ignore it?</p>
  
  <p>My goal is just to start my application from anywhere without sources or jars.</p>