title: Error for mvn clean package, claiming I do not have a POM in my directory, when I do
body: <p>Hello I am trying to use mvn clean package, to follow the instructions given by my professor, to create a jar, but at the very first step, things aren't working out for me.</p>
  <p>The error I get in the terminal is as follows.</p>
  <p>I am kind of confused, why it says there is no pom, because the javafx application is running, and everything else involving the pom.xml is running, so clearly there is a working pom.xml with presence here, and not just a pom, which exists, and doe nothing.</p>
  <pre><code>[INFO] Scanning for projects...
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time:  0.090 s
  [INFO] Finished at: 2020-12-22T04:33:14-05:00
  [INFO] ------------------------------------------------------------------------
  [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Users\Huzaifa\Documents\CST 3613 Application Deve
  lopment with Databases\Connect4). Please verify you invoked Maven from the correct directory. -&gt; [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
  
  C:\Users\Huzaifa\Documents\CST 3613 Application Development with Databases\Connect4&gt;
  </code></pre>
  <p>My Pom.xml is as follows</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot;
           xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
           xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;org.example&lt;/groupId&gt;
      &lt;artifactId&gt;Connect4&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
      &lt;properties&gt;
          &lt;maven.compiler.source&gt;14&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;14&lt;/maven.compiler.target&gt;
      &lt;/properties&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
              &lt;artifactId&gt;javafx-controls&lt;/artifactId&gt;
              &lt;version&gt;11&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
              &lt;artifactId&gt;javafx-fxml&lt;/artifactId&gt;
              &lt;version&gt;11&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;!--&lt;finalName&gt;boulet-jean-abc123&lt;/finalName&gt;--&gt;
          &lt;finalName&gt;Anas-Huzaifa-connect4&lt;/finalName&gt;
          &lt;resources&gt;
              &lt;resource&gt;
                  &lt;directory&gt;src/main/java&lt;/directory&gt;
                  &lt;filtering&gt;true&lt;/filtering&gt;
                  &lt;includes&gt;
                      &lt;include&gt;**/*.java&lt;/include&gt;
                      &lt;include&gt;**/*.fxml&lt;/include&gt;
                      &lt;include&gt;**/*.css&lt;/include&gt;
                      &lt;include&gt;**/*.jpg&lt;/include&gt;
                      &lt;include&gt;**/*.csv&lt;/include&gt;
                  &lt;/includes&gt;
              &lt;/resource&gt;
              &lt;resource&gt;
                  &lt;directory&gt;src/main/resources&lt;/directory&gt;
                  &lt;filtering&gt;true&lt;/filtering&gt;
                  &lt;includes&gt;
                      &lt;include&gt;**/*.csv&lt;/include&gt;
                  &lt;/includes&gt;
              &lt;/resource&gt;
          &lt;/resources&gt;
  
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;addResources&gt;false&lt;/addResources&gt;
                      &lt;folders&gt;
                          &lt;folder&gt;src/main/resources&lt;/folder&gt;
                      &lt;/folders&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.8.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;11&lt;/source&gt;
                      &lt;target&gt;11&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.2.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;archive&gt;
                          &lt;manifest&gt;
                              &lt;addClasspath&gt;true&lt;/addClasspath&gt;
                              &lt;mainClass&gt;edu.citytech.edu.citytech.connect4.Connect4Main&lt;/mainClass&gt;
                          &lt;/manifest&gt;
                      &lt;/archive&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  <p>I have tried to reload, remake the project, I have also reinstalled maven, cleared cache, and then some stuff, but I don't get why this won't work.</p>
  <p>Thank You!</p>
  <p><img src="https://i.stack.imgur.com/OoHBa.png" alt="This is my project, setup, and you can see I have a pom.xml" /></p>