Re: Is there a Maven plugin for the Java debugger (jdb)?

2013-10-11 Thread Mark Derricutt
You could run it via the maven-exec-plugin, which allows you to pass down the classpath. On 11 Oct 2013, at 3:52, Andrew Pennebaker wrote: > Yes. I'm looking for a task like `mvn jdb:debug ` that starts a jdb > session on .main(). > > I can run jdb on individual Java code outside of a Maven stru

Re: Is there a Maven plugin for the Java debugger (jdb)?

2013-10-11 Thread Curtis Rueden
Hi Andrew, > Could you elaborate on the exact ... snippet I would > need to drop into my pom.xml in order to achieve this? org.codehaus.mojo exec-maven-plugin 1.2.1 jdb -classpath ${jdb.mainClass} exec > If I co

Re: Is there a Maven plugin for the Java debugger (jdb)?

2013-10-11 Thread Andrew Pennebaker
Thank you, Curtis, that looks like an excellent suggestion! Could you elaborate on the exact ... snippet I would need to drop into my pom.xml in order to achieve this? If I could just `mvn exec:exec `, starting a jdb session on .main(), that would be *perfect*. On Fri, Oct 11, 2013 at 1:20 PM,

Re: Is there any maven plugin to add dependency to existing pom.xml ?

2013-10-11 Thread sizu
Example using sed: sed 's//\r\n\r\n\r\norg.ghost4j<\/groupId>\r\nghost4j<\/artifactId>\r\n0.5.0<\/version>\r\n<\/dependency>\r\n/g' pom.xml > pom2.xml Replaces the dependencies tag with the dependencies tag followed by the new dependency (inserts the new dependency first in the list. Creates a n

Re: Is there any maven plugin to add dependency to existing pom.xml ?

2013-10-11 Thread sizu
Here is another use case. Suppose I programmatically want to make sure that my database is backwards compatible with all versions of my application. I may have a test suite that compiles the project using different jars, which represent different versions of the persistence module. I can verify

Re: Is there a Maven plugin for the Java debugger (jdb)?

2013-10-11 Thread Curtis Rueden
Hi Nambi, > Debugging is one of the important features that is easy to do in IDE, > but hard to do in CLI using jdb. If there is a way (plugin) that can > enable this for emacs or vim, would be a great. For Eclipse (my preferred tool): http://eclim.org/ I know people who use it to good effect, b

Re: Is there a Maven plugin for the Java debugger (jdb)?

2013-10-11 Thread Curtis Rueden
Hi all, Rather than getting into an eclipse vs. vim vs. emacs flamewar, I'd rather just ask: Andrew, did you try attaching your jdb to a running java instance launched via exec-maven-plugin as I suggested yet? You can configure exec-maven-plugin in your pom so that launching the compatible java p

Re: Is there any maven plugin to add dependency to existing pom.xml ?

2013-10-11 Thread sizu
This is useful for many reasons. The less steps required to use external dependencies the better. If someone must add and configure xml to add a dependency, it leads to human in the loop, which leads to errors. I am all about how quick, I can get installed. For instance, maybe I am writing an o

RE: Is there a Maven plugin for the Java debugger (jdb)?

2013-10-11 Thread Sankaran, Nambi
A lot of developers are asking for simplicity of java development. Especially folks who code in other languages such as python, view java as heavy weight because of IDEs. It takes a while to master IDEs, without IDEs java is not a productive environment. I used to do Java development using CLI,

Re: Is there a Maven plugin for the Java debugger (jdb)?

2013-10-11 Thread Stephen Connolly
Why would you want to walk from New York to San Francisco when you can fly? Some people are gluttons for punishment, some people like text-mode (works better over plain ssh without resorting to eg X11 forwarding) Finally debugging when the debugger and debugged process are on the same machine rat

Re: Is there a Maven plugin for the Java debugger (jdb)?

2013-10-11 Thread Russell Gold
I'm sorry; I don't understand. Why would you want to use a text editor, rather than an IDE, to debug a java program? On Oct 11, 2013, at 11:52 AM, Andrew Pennebaker wrote: > Why would anyone want to do this? So we don't have to debug Maven projects > with Eclipse/IntelliJ, but the text editor

Re: Is there a Maven plugin for the Java debugger (jdb)?

2013-10-11 Thread Andrew Pennebaker
Why would anyone want to do this? So we don't have to debug Maven projects with Eclipse/IntelliJ, but the text editor of our choice. This is best accomplished by Maven tasks which interact with the command line jdb tool. On Thu, Oct 10, 2013 at 5:27 PM, Russell Gold wrote: > Why do you want to

Re: [ANN] 2013 Committer School for people who want to become Maven Committers

2013-10-11 Thread Barrie Treloar
On 11 October 2013 20:58, Russell Gold wrote: > Yes, very interesting - but where is the Maven source found? The site is a > bit confusing on that score, and it is rather difficult to construct a patch > when you cannot see the CM system. Which bit are you interested in? If its a plugin on http

Re: [ANN] 2013 Committer School for people who want to become Maven Committers

2013-10-11 Thread Russell Gold
Yes, very interesting - but where is the Maven source found? The site is a bit confusing on that score, and it is rather difficult to construct a patch when you cannot see the CM system. On Oct 11, 2013, at 2:42 AM, Barrie Treloar wrote: > We still want more people to get up and join the commi