0

In my Maven project I can't download the sources for some dependencies. For example have a look at the first project in the below image. I noticed that the icon before the project name has a slightly different icon than the rest of the dependencies.

enter image description here

And if I click on the project and go to Maven, it does not give me the option of downloading the sources:

enter image description here

This is how it looks for other dependencies:

enter image description here

What am I missing here? How do I download the sources?

Eugene S
  • 6,709
  • 8
  • 57
  • 91
  • This appears to be a question about Eclipse. You'd get more help if you tagged it as such. – bmargulies Oct 10 '17 at 02:48
  • @bmargulies. Agreed. Done – Eugene S Oct 10 '17 at 02:49
  • Please check the same library has source included JAR in maven repo, that may be the reason its not showing the download source option – Abin Manathoor Devasia Oct 10 '17 at 02:57
  • You are not missing anything. The first project has its sources downloaded previously and the second doesn't. – Naman Oct 10 '17 at 03:13
  • @nullpointer Yes, so how do I download them? That's the question. – Eugene S Oct 10 '17 at 03:16
  • If thats the question, it might be a duplicate of https://stackoverflow.com/questions/5780758/maven-always-download-sources-and-javadocs – Naman Oct 10 '17 at 03:17
  • @nullpointer this is not the same as I don't have this problem with other dependencies. Only with this specific project. Moreover, I can't even manually force it to download the sources since the menu item is not available as I highlighted in my question. – Eugene S Oct 10 '17 at 03:21
  • 1
    I assume that it is not an bug of Maven or Eclipse, but the author of the JAR published the bytecode without source code and Javadoc (by mistake or for legal reasons). – howlger Oct 10 '17 at 05:30
  • 3
    The project you have marked is a SNAPSHOT version which means it is not from Maven Central so it must be something from inside your company and so it could be that the source has not been published... – khmarbaise Oct 10 '17 at 06:03

0 Answers0