title: Build is Success but No sources to compile
body: <p>Maven test output in the Eclipse console:</p>
  
  <pre><code>[INFO] Scanning for projects...
      [WARNING] 
      [WARNING] Some problems were encountered while building the effective model for Mabi:Mabi:jar:0.0.1-SNAPSHOT
      [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.seleniumhq.selenium:selenium-java:jar -&gt; duplicate declaration of version 2.45.0 @ line 20, column 21
      [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-surefire-plugin @ line 74, column 10
      [WARNING] 
      [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
      [WARNING] 
      [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
      [WARNING] 
      [INFO]                                                                         
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Mabi 0.0.1-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO] 
      [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Mabi ---
      [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
      [INFO] skip non existing resourceDirectory E:\workspace\Mabi\src\com.TestCase
      [INFO] 
      [INFO] --- maven-compiler-plugin:3.5:compile (default-compile) @ Mabi ---
      [INFO] Changes detected - recompiling the module!
      [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
      [INFO] Compiling 166 source files to E:\workspace\Mabi\target\classes
      [INFO] 
      [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ Mabi ---
      [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
      [INFO] skip non existing resourceDirectory E:\workspace\Mabi\src\test\resources
      [INFO] 
      [INFO] --- maven-compiler-plugin:3.5:testCompile (default-testCompile) @ Mabi ---
      [INFO] No sources to compile
      [INFO] 
      [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ Mabi ---
      [INFO] No tests to run.
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 7.287 s
      [INFO] Finished at: 2016-03-23T11:32:40+05:30
      [INFO] Final Memory: 21M/283M
      [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/wLhf6.png" alt=""></p>
  
  <p>Above image shows the directory of my project but when I run the project via Maven it gives me the above result without running the test. Looking forward for some accurate solutions.</p>
  
  <p>And this is what my POM.XML file looks like:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;Mabi&lt;/groupId&gt;
    &lt;artifactId&gt;Mabi&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
      &lt;groupId&gt;com.relevantcodes&lt;/groupId&gt;
      &lt;artifactId&gt;extentreports&lt;/artifactId&gt;
      &lt;version&gt;2.40.2&lt;/version&gt;
  
      &lt;/dependency&gt;             
          &lt;dependency&gt;              
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;                              
              &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;                              
              &lt;version&gt;2.45.0&lt;/version&gt;                               
          &lt;/dependency&gt;                          
          &lt;dependency&gt;              
              &lt;groupId&gt;org.testng&lt;/groupId&gt;                               
              &lt;artifactId&gt;testng&lt;/artifactId&gt;                             
              &lt;version&gt;6.8&lt;/version&gt;                                                                   
         &lt;/dependency&gt;              
  &lt;/dependencies&gt;
  
    &lt;build&gt;
      &lt;sourceDirectory&gt;src&lt;/sourceDirectory&gt;
  
      &lt;resources&gt;
        &lt;resource&gt;
          &lt;directory&gt;src/com.TestCase&lt;/directory&gt;
          &lt;includes&gt;
          &lt;include&gt;**/com.*TestCase.java&lt;/include&gt;
          &lt;/includes&gt;
          &lt;/resource&gt;    
       &lt;/resources&gt;
  
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.5&lt;/version&gt;
          &lt;configuration&gt;
            &lt;source/&gt;
            &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-surefire-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.19.1&lt;/version&gt;
                  &lt;inherited&gt;true&lt;/inherited&gt;
              &lt;configuration&gt;
                  &lt;suiteXmlFile&gt;testng.xml&lt;/suiteXmlFile&gt;
              &lt;/configuration&gt;
      &lt;/plugin&gt;
   &lt;/plugins&gt;
  
  &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>