3

When I'm debugging in a Maven dependency, which source I've downloaded and I can view in the Eclipse Java perspective, the source doesn't get displayed.

Shouldn't Eclipse wire the sources automatically?

durron597
  • 31,968
  • 17
  • 99
  • 158

2 Answers2

2

Go to

Window->Preferences->Maven

and check

"download artifact sources"

When you debug code, eclipse should automatically download missing sources (at least for me it works in such way).

omnomnom
  • 8,911
  • 4
  • 41
  • 50
  • It's checked and the sources are there. But Eclipse won't append them in the `Debug` mode. –  Nov 04 '11 at 13:56
0

The question appears to be very similar or a duplicate to another on StackOverflow. Look at this.

I thought you had to have the m2 plugin for this, but I haven't checked.

Community
  • 1
  • 1
James Drinkard
  • 15,342
  • 16
  • 114
  • 137