title: How to include dependency (method) of project A into project B using maven spring
body: <p>I have a Spring boot application, My Project A(crux) has a Log generator class which I want to use in project B(bolt). I have included project A in the pom.xml of Project B but still its not able to find that.
  package : com.test.sre.crux    &amp; class : MyLogger.withField() in project B</p>
  <p>pom.xml of B(bolt)</p>
  <pre><code>        &lt;dependency&gt;
              &lt;groupId&gt;com.test.sre.crux&lt;/groupId&gt;
              &lt;artifactId&gt;Crux&lt;/artifactId&gt;
              &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  <pre><code>INFO] Scanning for projects...
  [INFO] 
  [INFO] -------------------------&lt; com.apple.sre:bolt &gt;-------------------------
  [INFO] Building Bolt 0.0.1-SNAPSHOT
  [INFO] --------------------------------[ jar ]---------------------------------
  [WARNING] The POM for com.test.sre.crux:Crux:jar:0.0.1-SNAPSHOT is missing, no dependency information available
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  </code></pre>
  <p>pom.xml of A(crux)</p>
  <pre><code>    &lt;groupId&gt;com.test.sre&lt;/groupId&gt;
      &lt;artifactId&gt;crux&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;crux&lt;/name&gt;
      &lt;description&gt;Repo for all the key metrics and usabilities&lt;/description&gt;
  </code></pre>
  <p>I have also tried to include build path, please suggest.<a href="https://i.stack.imgur.com/Ol9V4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ol9V4.png" alt="enter image description here" /></a></p>