If the sources got downloaded, they would be in your repository - usually alongside the binary jar file with a "source" label in the name. You do still have to put that jar on your classpath in order to debug into it - or somehow tell NetBeans where the source is located. (I'm an Eclipse user, so I don't know that part.)

Sometimes, there is no source jar available for a given dependency. In that case, not sure what to tell you. I suppose you can pull down the source from the commons project and get it into your classpath through some other mechanism.



KedarMhaswade wrote:
This is probably an easy one.

I have a maven-2 pom.xml for a web-app (packaging: war) and I have
declared dependencies on commons-fileupload (and hence commons-io).

I want to download the sources for these dependencies, when I do
an "mvn install" on my pom.xml. I tried -DdownloadSources=true and searched
like mad.
Somehow the -sources.jar for both my dependencies don't get downloaded.

I am not aware of any other way to debug/see the dependency sources.

Generally, if you have a simple web-app and several other open-source
dependencies, how do people
debug the open-source code in NetBeans? I thought, if the source jars get
downloaded in maven local repo and if I do an F7 (step into) on the call from open-source code, I would be able to debug that code since I downloaded the source jar.

Thanks,
Kedar

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to