title: Maven depedency not working in primefaces?
body: <p>I wanted to show the barcode in primefcaes.For that i created a maven based project &amp; added two dependency for those libararies such as </p>
  
     <pre class="lang-xml prettyprint-override"><code>&lt;dependency&gt;
      &lt;groupId&gt;net.glxn&lt;/groupId&gt;
      &lt;artifactId&gt;qrgen&lt;/artifactId&gt;
      &lt;version&gt;1.4&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;net.sf.barcode4j&lt;/groupId&gt;
      &lt;artifactId&gt;barcode4j-light&lt;/artifactId&gt;
      &lt;version&gt;2.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I read in primefaces documentation that barcode4j-2.1 may not be available in maven so i need to <code>manual install the jar in maven repo</code> </p>
  
  <p>I have installed the jar into maven repo using this command in eclipse </p>
  
  <pre><code>install:install-file -Dfile=D:\qrgen-1.4.jar -DgroupId=net.glxn -DartifactId=qrgen -Dversion=1.4 -Dpackaging=jar
  
   install:install-file -Dfile=D:\barcode4j-light-2.1.jar -DgroupId=net.sf.barcode4j -DartifactId=barcode4j-light -Dversion=2.1 -Dpackaging=jar
  </code></pre>
  
  <p><strong>POM.XML</strong></p>
  
  <pre class="lang-xml prettyprint-override"><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;groupId&gt;com.prime&lt;/groupId&gt;
      &lt;artifactId&gt;primedemop&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;primefaces&lt;/name&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.faces&lt;/groupId&gt;
              &lt;artifactId&gt;jsf-api&lt;/artifactId&gt;
              &lt;version&gt;2.2.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.faces&lt;/groupId&gt;
              &lt;artifactId&gt;jsf-impl&lt;/artifactId&gt;
              &lt;version&gt;2.2.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
              &lt;version&gt;3.0.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.primefaces&lt;/groupId&gt;
              &lt;artifactId&gt;primefaces&lt;/artifactId&gt;
              &lt;version&gt;5.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;net.glxn&lt;/groupId&gt;
              &lt;artifactId&gt;qrgen&lt;/artifactId&gt;
              &lt;version&gt;1.4&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;net.sf.barcode4j&lt;/groupId&gt;
              &lt;artifactId&gt;barcode4j-light&lt;/artifactId&gt;
              &lt;version&gt;2.1&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>But i can't see any barcode generated if i was adding the barcode4j-light-2.1 jar file in <strong>lib</strong> folder then i was able to generate bar code but not the QR code but now i can't generate not even barcode.</p>
  
  <p>I get the following output on eclipse console when i install the jar file into maven repo.</p>
  
  <p><strong>For qrgen jar</strong> </p>
  
  <p><img src="https://i.stack.imgur.com/CjTVD.png" alt="pic1">
  <strong>for barcode4j</strong> 
  <img src="https://i.stack.imgur.com/JuDVn.png" alt="pic2"></p>