Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to add the source from another dependency in Maven?
    primarykey
    data
    text
    <p>I'm doing some tests with Spring 2.0.8. I've the following problem, all the source code is downloaded with the "spring" artifact, but is not attached by mvn eclipse:eclipse to the other artifacts, for instance for "spring-aop" artifact, I can't access source from Eclipse, despite the aop package is present in spring-2.0.8-sources.jar.</p> <pre><code>&lt;properties&gt; &lt;org.springframework.version&gt;2.0.8&lt;/org.springframework.version&gt; &lt;/properties&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;org.springframework&lt;/groupId&gt; &lt;artifactId&gt;spring&lt;/artifactId&gt; &lt;version&gt;${org.springframework.version}&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.springframework&lt;/groupId&gt; &lt;artifactId&gt;spring-aop&lt;/artifactId&gt; &lt;version&gt;${org.springframework.version}&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; </code></pre> <p>If I add the spring-2.0.8-sources.jar manually to spring-aop in Java Build Path, then I can navigate the source code from Eclipse, but I was wondering how to tell Maven to do that, since every time I add or change a library, I'd have to repeat the attach source operation.</p> <p><strong>UPDATE</strong>: My original fear of having the configuration overwritten proved wrong. Both m2eclipse and "mvn eclipse:eclipse" don't overwrite manual changes to the configuration. I am still interested to know if it's possible to tell Maven to attach sources from another dependency. I've also a Nexus installation, if that can help.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload