title: Maven + Flexbuilder artifact source and javadoc attachment
body: <p>I come to you today with an interesting challenge. </p>
  
  <p>I have a <strong>maven+flexbuilder</strong> project that has a dependency on an external artifact.</p>
  
  <p>This is specified with the following declaration:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.abc.commons&lt;/groupId&gt;
      &lt;artifactId&gt;commons-abc-client&lt;/artifactId&gt;
      &lt;version&gt;${commons.abc.version}&lt;/version&gt;
      &lt;type&gt;swc&lt;/type&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>The commons-abc-client is deployed to an external releases repository, and is not available on the local environments for the AS developers.</p>
  
  <p>The artifact is deployed to the remote repository using the followind command:</p>
  
  <pre><code>mvn clean source:jar javadoc:jar deploy
  </code></pre>
  
  <p>If I run </p>
  
  <pre><code>mvn eclipse:clean flexmojos:flexbuilder -DdownloadSources=true -DdownloadJavadocs=true
  </code></pre>
  
  <p>The dependency to commons-abc-client is properly generated (pointing to the downloaded-to-the-local-repo version) and it shows that the source is attached.</p>
  
  <p>Trying to open any of the sources in the commons-abc-client throws an error. It seems as if it is looking the resources from inside the SWC and not in the attached jar.</p>
  
  <p>Any ideas on work arounds? </p>