With maven config, how to get the source? -


With a Maven configuration like the following, how can I get the source code for that particular version if it is a third The side is open source package.

  & lt; Dependency & gt; & Lt; Group & gt; JUnit & lt; / Group & gt; & Lt; ArtifactId & gt; JUnit & lt; / ArtifactId> & Lt; Version & gt; 3.8.2 & lt; / Edition & gt; & Lt; Scope & gt; Trial & lt; / Scope & gt; & Lt; / Dependencies & gt;    

You can also use.

  & lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven-eclipse-plugin & lt; / ArtifactId> & Lt; Configuration & gt; & Lt; DownloadSources & gt; True & lt; / DownloadSources & gt; & Lt; DownloadJavadocs & gt; True & lt; / DownloadJavadocs & gt; ... other stuff ... & lt; / Configuration & gt; & Lt; / Plugin & gt;    

Comments