title: Setting linksource property in NetBeans Maven project
body: <p>When working with an evolving API, I often use the <a href="https://docs.oracle.com/javase/8/docs/technotes/tools/unix/javadoc.html#CHDFBBID" rel="nofollow noreferrer"><code>-linksource</code></a> option of <a href="https://docs.oracle.com/javase/8/docs/technotes/tools/unix/javadoc.html" rel="nofollow noreferrer"><code>javadoc</code></a> to add source links to the standard HTML documentation. In the particular case of <a href="https://stackoverflow.com/tags/jfreechart/info"><code>JFreeChart</code></a>, I might</p>
  
  <ul>
  <li>Add <code>linksource="yes"</code> to the <code>"javadoc"</code> target in <code>build.xml</code>, as shown <a href="http://ant.apache.org/manual/Tasks/javadoc.html" rel="nofollow noreferrer">here</a>, or</li>
  <li>Add <code>-linksource</code> to the NetBeans project properties as an additional <code>javadoc</code> property. </li>
  </ul>
  
  <p>As the current version of <a href="https://github.com/jfree/jfreechart" rel="nofollow noreferrer"><code>JFreeChart</code></a> uses <a href="https://maven.apache.org" rel="nofollow noreferrer">Maven</a>, I tried setting <code>linksource</code> to <code>yes</code> in the action that generates <code>javadoc</code>, as shown below.</p>
  
  <p><a href="https://i.stack.imgur.com/wfRfU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wfRfU.png" alt="yes.png"></a></p>
  
  <p>The resulting documentation had no source links. I haven't used Maven in a while. Where am I going awry?</p>