title: Composite components in an external JAR are not recognized in Netbeans
body: <p>I have packaged a number of composite components in a JAR. However, when using them in another project (using Maven), Netbeans editor puts red error lines under lines which use the composite component, even though the project compiles and runs as expected. </p>
  
  <p>The  folder structure for the composite component JAR look like:</p>
  
  <pre><code>compositeComponent.jar
     META-INF
        faces-config.xml
        highcharts-taglib.xml
        MANIFEST.MF
        web.xml
        maven
           // maven stuff.
        resources
            highcharts
               Chart.xhtml
               Series.xhtml
               Tooltip.xml          
     nz
        co
           kevindoran
              highcharts
                 example
                    NZPopulationTrend.class
  </code></pre>
  
  <p><br />
  The <code>highcharts.taglib.xml</code> looks like:</p>
  
  <pre><code>&lt;facelet-taglib version="2.0" xmlns="http://java.sun.com/xml/ns/javaee"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd"&gt;
  
      &lt;namespace&gt;http://nz.co.kevindoran/highcharts-jsf&lt;/namespace&gt;
      &lt;composite-library-name&gt;highcharts&lt;/composite-library-name&gt;
  
  &lt;/facelet-taglib&gt;
  </code></pre>
  
  <p><br/>
  [Side note: The <code>faces-config.xml</code> and <code>web.xml</code> are present to allow the 'JAR' to be deployed as a WAR by changing the file extension to WAR (this is to done to run the examples).]</p>
  
  <p><br/>
  In my current project, I have specify a Maven dependency on the above project like so:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;nz.co.kevindoran&lt;/groupId&gt;
      &lt;artifactId&gt;jsf-menu&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;/dependency&gt; 
  </code></pre>
  
  <p>In a JSF page, I use on of the composite components like so:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:hc="http://nz.co.kevindoran/highcharts-jsf"&gt;
  
  ....
  
  &lt;hc:TimeChart title="Price Over Time" xLabel="Date" yLabel="Sold Price (NZD)"&gt;
      &lt;hc:TimeSeries name="Sold" series="#{cc.attrs.model.priceVsTimeChart.soldSeries}"/&gt;
  &lt;/hc:TimeChart&gt;  
  
  ....
  &lt;/html&gt;
  </code></pre>
  
  <p>Red error lines appear under all lines above, with message: "No library found for namespace <a href="http://nz.co.kevindoran/highcharts-jsf" rel="nofollow">http://nz.co.kevindoran/highcharts-jsf</a>"</p>
  
  <p>How do I get these error lines to be removed? I have seen many Netbeans bug reports for similar issues, but all seem resolved.   </p>
  
  <p>This error occurs on Netbeans 7.1, 7.2 and 7.3 (including 7.3.1).                        </p>