title: Could not resolve dependencies for a Module Based Maven project
body: <p>I am facing a problem while building a Maven module. I am following module-based architecture, I have a parent project named Bikewale and it's child modules named Bike-repo, Bike-service, and Bike-web. When I am trying to add Bike-repo dependency in Bike-service's pom file I am facing Maven Build Failure error saying: </p>
  
  <p><code>[ERROR] Failed to execute goal on project Bike-service: Could not resolve dependencies for project ab.sp:Bike-service:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at ab.sp:Bike-repo:jar:0.0.1-SNAPSHOT: Failed to read artifact descriptor for ab.sp:Bike-repo:jar:0.0.1-SNAPSHOT: Could not find artifact ab.sp:Bikewale:pom:0.0.1-SNAPSHOT -&gt; [Help 1]</code></p>
  
  <p>Although I checked in my .m2 repository that whether Bike-repo is present there or not, and it is present there. I was not facing this issue in my previous projects.<a href="https://i.stack.imgur.com/KWPgd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KWPgd.png" alt="Screenshot of .m2 repository"></a></p>
  
  <p><strong>Bike-repo's pom.xml</strong>:</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;parent&gt;
      &lt;groupId&gt;ab.sp&lt;/groupId&gt;
      &lt;artifactId&gt;Bikewale&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;/parent&gt;
    &lt;artifactId&gt;Bike-repo&lt;/artifactId&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>Bike-service's pom.xml:</strong> </p>
  
  <p>where I am adding dependency of Bike-service:</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;parent&gt;
          &lt;groupId&gt;ab.sp&lt;/groupId&gt;
          &lt;artifactId&gt;Bikewale&lt;/artifactId&gt;
          &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;/parent&gt;
      &lt;artifactId&gt;Bike-service&lt;/artifactId&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;ab.sp&lt;/groupId&gt;
              &lt;artifactId&gt;Bike-repo&lt;/artifactId&gt;
              &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>