title: Maven: Missed compiled classes under 'target' folder
body: <p>I am using Maven and when trying to turn it into a jar file it says build success but it says No sources to compile.</p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO]
  [INFO] ------------------------------------------------------------------------
  [INFO] Building UrbanAC Booking Manager 1.2.1-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ UrbanAC --    -
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,     i.e. build is platform dependent!
  [INFO] Copying 24 resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ UrbanAC ---
  [INFO] Nothing to compile - all classes are up to date
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @     UrbanAC ---
  [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,     i.e. build is platform dependent!
  [INFO] skip non existing resourceDirectory C:\Users\Akhil Maganti\eclipse-    workspace\New\src\test\resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @     UrbanAC ---
  [INFO] No sources to compile
  [INFO] 
  [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ UrbanAC ---
  [INFO] No tests to run.
  [INFO] 
  [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ UrbanAC ---
  [INFO] Building jar: C:\Users\Akhil Maganti\eclipse-workspace\New\target\UrbanAC-1.2.1-SNAPSHOT.jar
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 3.413 s
  [INFO] Finished at: 2017-11-11T00:19:22+00:00
  [INFO] Final Memory: 11M/245M
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>This is the error which is shown and I do not know why this is being shown.
  <a href="https://i.stack.imgur.com/gW3uh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gW3uh.png" alt="enter image description here"></a></p>