Re: maven compiler plugin

2013-10-11 Thread Baptiste Mathus
+1. And BTW you should be aware that calling a dedicated goal should actually be a rare use case using Maven. Maybe even more calling the compiler outside the standard lifecycle. Just type mvn compile for your first case and mvn test-compile for the second one (not that last one would also compile

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

2013-10-11 Thread Barrie Treloar
We still want more people to get up and join the committer community. It has been a year since Stephen posted on his blog - http://javaadventure.blogspot.ie/2012/07/do-you-want-to-become-maven-committer.html So I thought a yearly reminder for would be a good thing.

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 baerr...@gmail.com wrote: We still want more people to get up

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 r...@gold-family.us 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

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 r...@gold-family.us wrote:

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 apenneba...@42six.com wrote: Why would anyone want to do this? So we don't have to debug Maven projects with Eclipse/IntelliJ,

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

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

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 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

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, but

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 any maven plugin to add dependency to existing pom.xml ?

2013-10-11 Thread sizu
Example using sed: sed 's/dependencies/dependencies\r\n\r\ndependency\r\ngroupIdorg.ghost4j\/groupId\r\nartifactIdghost4j\/artifactId\r\nversion0.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

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 plugin.../plugin snippet I would need to drop into my pom.xml in order to achieve this? If I could just `mvn exec:exec Class`, starting a jdb session on Class.main(), that would be *perfect*. On Fri,

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 plugin.../plugin snippet I would need to drop into my pom.xml in order to achieve this? plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId version1.2.1/version configuration executablejdb/executable

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 Class` that starts a jdb session on Class.main(). I can run jdb on individual Java code outside of a