title: Failure to find dependencies when configuring Maven for multiple modules with Spring Boot
body: <p>I have been implementing an application using Spring Boot with the following Maven hierarchy.</p>
  
  <ul>
  <li>pom.xml 
  
  <ul>
  <li>pom.xml [core module]</li>
  <li>pom.xml [batch module]</li>
  </ul></li>
  </ul>
  
  <p>The idea behind that structure is as follows: The root pom contains only common libraries, the core pom specifies to package as jar file, and the batch pom use the core for computing some specific tasks. (I have put my pom.xml of those files in the end, too.)</p>
  
  <p>However, when I execute my batch module using the following command:</p>
  
  <pre><code>mvn spring-boot:run
  </code></pre>
  
  <p>I got the following error.</p>
  
  <blockquote>
    <p>[ERROR] Failed to execute goal on project batch-owl: 
        Could not resolve dependencies for project io.github.xlives:batch-owl:jar:0.1.0:
        Failure to find io.github.xlives:core:jar:0.1.0 in <a href="https://repo.maven.apache.org/maven2" rel="nofollow">https://repo.maven.apache.org/maven2</a> was cached in the local repository,
        resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1][ERROR] </p>
  </blockquote>
  
  <p><strong>Parent pom.xml</strong></p>
  
  <pre><code>... 
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;io.github.xlives&lt;/groupId&gt;
  &lt;artifactId&gt;jSimPi&lt;/artifactId&gt;
  &lt;packaging&gt;pom&lt;/packaging&gt;
  &lt;version&gt;0.1.0&lt;/version&gt;
  &lt;modules&gt;
      &lt;module&gt;core&lt;/module&gt;
      &lt;module&gt;batch-owl&lt;/module&gt;
  &lt;/modules&gt;
  
  &lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;1.3.3.RELEASE&lt;/version&gt;
  &lt;/parent&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.assertj&lt;/groupId&gt;
          &lt;artifactId&gt;assertj-core&lt;/artifactId&gt;
          &lt;version&gt;2.3.0&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
          &lt;artifactId&gt;commons-lang3&lt;/artifactId&gt;
          &lt;version&gt;3.4&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
          &lt;artifactId&gt;guava&lt;/artifactId&gt;
          &lt;version&gt;19.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;edu.stanford.protege&lt;/groupId&gt;
          &lt;artifactId&gt;org.semanticweb.owl.owlapi&lt;/artifactId&gt;
          &lt;version&gt;3.4.4&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;commons-io&lt;/groupId&gt;
          &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
          &lt;version&gt;2.4&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  ... End 
  </code></pre>
  
  <p><strong>Core pom.xml</strong></p>
  
  <pre><code>...
  &lt;parent&gt;
      &lt;artifactId&gt;jSimPi&lt;/artifactId&gt;
      &lt;groupId&gt;io.github.xlives&lt;/groupId&gt;
      &lt;version&gt;0.1.0&lt;/version&gt;
  &lt;/parent&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;artifactId&gt;core&lt;/artifactId&gt;
  &lt;version&gt;0.1.0&lt;/version&gt;
  
  &lt;build&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;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  ... End
  </code></pre>
  
  <p><strong>Batch pom.xml</strong></p>
  
  <pre><code>...
  &lt;parent&gt;
      &lt;artifactId&gt;jSimPi&lt;/artifactId&gt;
      &lt;groupId&gt;io.github.xlives&lt;/groupId&gt;
      &lt;version&gt;0.1.0&lt;/version&gt;
  &lt;/parent&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
  &lt;artifactId&gt;batch-owl&lt;/artifactId&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;io.github.xlives&lt;/groupId&gt;
          &lt;artifactId&gt;core&lt;/artifactId&gt;
          &lt;version&gt;0.1.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-batch&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.hsqldb&lt;/groupId&gt;
          &lt;artifactId&gt;hsqldb&lt;/artifactId&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  ... End
  </code></pre>
  
  <p>I am still practicing Maven. Please tell me if you have any concerns on my code.</p>
  
  <p>Thanks :</p>