<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Victor Cardoso Higino</title>
    <description>The latest articles on DEV Community by Victor Cardoso Higino (@victorcardosohigino).</description>
    <link>https://dev.to/victorcardosohigino</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F549525%2F5eb50314-569e-41f4-9d2c-e75b71d78231.jpeg</url>
      <title>DEV Community: Victor Cardoso Higino</title>
      <link>https://dev.to/victorcardosohigino</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/victorcardosohigino"/>
    <language>en</language>
    <item>
      <title>Maven: How to use local lib</title>
      <dc:creator>Victor Cardoso Higino</dc:creator>
      <pubDate>Tue, 29 Dec 2020 18:28:30 +0000</pubDate>
      <link>https://dev.to/victorcardosohigino/maven-how-to-use-local-lib-450i</link>
      <guid>https://dev.to/victorcardosohigino/maven-how-to-use-local-lib-450i</guid>
      <description>&lt;p&gt;Sometime ago I saw me before a situation that I've never had passing before. I needed use my local lib on Java maven project.&lt;/p&gt;

&lt;h3&gt;
  
  
  To do that I followed the steps:
&lt;/h3&gt;

&lt;p&gt;Step One: Put in my local library into maven repository&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mvn install:install-file -Dfile=home/victor/dev/Example.jar -DgroupId=br.com.example -DartifactId=Example -Dversion=1.0.0 -Dpackaging=jar
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step Two: Install maven dependencies&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mvn clean install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step Three: Use the library in the project&lt;/p&gt;

&lt;p&gt;Add the pendency in the pom.xml file like that:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;dependencies&amp;gt;&lt;/span&gt;
  ...
  &lt;span class="nt"&gt;&amp;lt;dependency&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;groupId&amp;gt;&lt;/span&gt;br.com.example&lt;span class="nt"&gt;&amp;lt;/groupId&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;artifactId&amp;gt;&lt;/span&gt;Example&lt;span class="nt"&gt;&amp;lt;/artifactId&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;version&amp;gt;&lt;/span&gt;1.0.0&lt;span class="nt"&gt;&amp;lt;/version&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/dependency&amp;gt;&lt;/span&gt;
  ...
&lt;span class="nt"&gt;&amp;lt;/dependencies&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it!&lt;/p&gt;

&lt;p&gt;I hope this helps you.&lt;/p&gt;

</description>
      <category>java</category>
      <category>beginners</category>
      <category>webdev</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
