title: How can I add maven artifact into an existing maven project
body: <p>How can I add  maven artifact into an existing maven project.I understand that I can build a jar locally  and use file: protocol but this is  possible using maven also. </p>
  
  <p>For example I have a basic maven project </p>
  
  <p><a href="https://maven.apache.org/guides/getting-started/index.html#How_do_I_make_my_first_Maven_project" rel="nofollow">https://maven.apache.org/guides/getting-started/index.html#How_do_I_make_my_first_Maven_projec</a>t  and the artifact:</p>
  
  <pre><code>   &lt;repositories&gt;
       &lt;repository&gt;
         &lt;id&gt;myrepo.org&lt;/id&gt;
         &lt;name&gt;MyRepository&lt;/name&gt;
         &lt;url&gt;http://mywork.com/repository&lt;/url&gt;
       &lt;/repository&gt;
     &lt;/repositories&gt;
  
     &lt;dependency&gt;
       &lt;groupId&gt;org.ethereum&lt;/groupId&gt;
       &lt;artifactId&gt;ethereumj-core&lt;/artifactId&gt;
       &lt;version&gt;1.1.0-RELEASE&lt;/version&gt;
  </code></pre>
  
  <p>I tried adding the code above to  the project pom.xml fails because  dependency is not in central maven repo.</p>
  
  <blockquote>
    <p>mvn clean install</p>
  </blockquote>
  
  <p>I then tried  editing my settings.xml by adding the  tag, that also failed  because  dependency was not found.</p>
  
  <p>Im overlooking something pretty basic here.</p>