I have a maven project A which uses jar files of another project B at version 1.0 of my team. The version 1.0 of project B has been submitted to the local Maven repository.
The problem is that project B does not include source code. So in project A, I right-click on the JAR B under Maven Dependencies in the Package Explorer, select Java Source Attachment and setup the Location path at project B (at version 1.1, I don't have the previous version source anymore) source folder (xxx/projectB/src/main/java/
). But it seems like Maven doesn't find any source class.
A couple ways to solve this:
Since you're using m2eclipse, you can then right-click on the project, then select Maven > Download Sources.