Re: How to debug/download dependency source code using mvn ...
you can also vote for https://issues.apache.org/jira/browse/COMMONSSITE-24to get this fix ... in future ;) 2008/11/23 nicolas de loof [EMAIL PROTECTED] I suggested on commons-dev to add sources-jars for all commons-* releases that didn't had one, but discution went to licencing and Apache release rules, so there was no consensus and nothing in repo. You can get much of them from http://people.apache.org/~nicolas/missing-commons-sources.jar/ WARNING : those are not official Apache ones ! 2008/11/23 David C. Hicks [EMAIL PROTECTED] 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]
Re: How to debug/download dependency source code using mvn ...
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]
Re: How to debug/download dependency source code using mvn ...
Thank you for your response! dchicks wrote: 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.) Hmmm. Sadly, when I do mvn -DdownloadSources=true install, no source jars get downloaded to the maven local repo. For commons-io and commons-fileupload, the sources are present at http://repo2.maven.org/maven2/commons-io/commons-io/1.4/ (and correspondingly for commons-fileupload), but it does not find its way to local repo. Only class-jars get downloaded. Surprisingly, if I did idea:idea -DdownloadSources=true, in addition to generating the IDEA project, it downloads those -sources.jar files! So, it seems that maven-idea-plugin takes this -DdownloadSources=true into account correctly, whereas standard install plugin ignores it. dchicks wrote: 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. Yeah, that's the tough part. How do you achieve this with Eclipse? In NetBeans 6.5, it was not evident. -Kedar -- View this message in context: http://www.nabble.com/How-to-debug-download-dependency-source-code-using-mvn-...-tp20641814p20642626.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]