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 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.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 

-
Author, Getting Started with Apache Maven 


Come read my webnovel, Take a Lemon , 
and listen to the Misfile radio play !









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://maven.apache.org/plugins/index.html then
click on it and on the left under Project Documentation > Project
Information > Source Repository you will find it.

The Issue Tracking link will take you to Jira where you can find the
existing defects. If your problem is not already there, then create
one.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 do that? I suspect we are not getting at your actual
> requirement.
>
> On Oct 10, 2013, at 2:25 PM, Andrew Pennebaker 
> wrote:
>
> > Yes, various Java IDEs can debug Java code, including Java code organized
> > in Maven projects. What I'm interested in is debugging Java code in a
> Maven
> > project with an arbitrary text editor, not necessarily Eclipse or
> Intellij,
> > for example Emacs, or even Notepad, by invoking Maven tasks that point to
> > Maven plugins that interact with jdb.
> >
> >
> > On Thu, Oct 10, 2013 at 2:09 PM, Sankaran, Nambi 
> wrote:
> >
> >> It very is easy to debug maven from eclipse, I have documented how I
> debug
> >> maven-jetty-plugin using eclipse
> >>
> >>
> http://nambisankaran.wordpress.com/2012/06/30/running-jetty-server-with-maven/
> >>
> >> -Original Message-
> >> From: Andrew Pennebaker [mailto:apenneba...@42six.com]
> >> Sent: Thursday, October 10, 2013 11:04 AM
> >> To: Maven Users List
> >> Subject: Re: Is there a Maven plugin for the Java debugger (jdb)?
> >>
> >> I could also use an IDE for package management, but I'd rather use plain
> >> Maven and an arbitrary text editor instead.
> >>
> >>
> >> On Thu, Oct 10, 2013 at 11:21 AM, Russell Gold 
> >> wrote:
> >>
> >>> The simplest way to do this is actually to run it in your IDE directly.
> >>> IntellijIDEA community edition can import your maven project and thus
> >>> get all of the dependencies. Then you just run the program in the
> >>> debugger. I presume Eclipse can do something similar.
> >>>
> >>> On Oct 10, 2013, at 10:52 AM, 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 structure,
>  but
> >>> I'm
>  not sure how to inform jdb of Java code in a Maven project, Maven's
>  CLASSPATH handling, etc. etc.
> 
> 
>  On Thu, Oct 10, 2013 at 10:46 AM, Benson Margulies <
> >>> bimargul...@gmail.com>wrote:
> 
> > What would that mean? Do you want to execute the program in the
> >>> debugger?
> >
> > On Thu, Oct 10, 2013 at 10:38 AM, Andrew Pennebaker
> >  wrote:
> >> I'd like to run jdb over some of my classes in a Maven project. Is
> >>> there
> > a
> >> plugin I can drop into my pom.xml?
> >
> > ---
> > -- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
> >>>
> >>> -
> >>> Author, Getting Started with Apache Maven <
> >>> http://www.packtpub.com/getting-started-with-apache-maven/video>
> >>>
> >>> Come read my webnovel, Take a Lemon , and
> >>> listen to the Misfile radio play <
> >>> http://www.fuzzyfacetheater.com/misfile/>!
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >>
>
> -
> Author, Getting Started with Apache Maven <
> http://www.packtpub.com/getting-started-with-apache-maven/video>
>
> Come read my webnovel, Take a Lemon ,
> and listen to the Misfile radio play <
> http://www.fuzzyfacetheater.com/misfile/>!
>
>
>
>
>
>
>
>


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 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 do that? I suspect we are not getting at your actual
>> requirement.
>> 
>> On Oct 10, 2013, at 2:25 PM, Andrew Pennebaker 
>> wrote:
>> 
>>> Yes, various Java IDEs can debug Java code, including Java code organized
>>> in Maven projects. What I'm interested in is debugging Java code in a
>> Maven
>>> project with an arbitrary text editor, not necessarily Eclipse or
>> Intellij,
>>> for example Emacs, or even Notepad, by invoking Maven tasks that point to
>>> Maven plugins that interact with jdb.
>>> 
>>> 
>>> On Thu, Oct 10, 2013 at 2:09 PM, Sankaran, Nambi 
>> wrote:
>>> 
 It very is easy to debug maven from eclipse, I have documented how I
>> debug
 maven-jetty-plugin using eclipse
 
 
>> http://nambisankaran.wordpress.com/2012/06/30/running-jetty-server-with-maven/
 
 -Original Message-
 From: Andrew Pennebaker [mailto:apenneba...@42six.com]
 Sent: Thursday, October 10, 2013 11:04 AM
 To: Maven Users List
 Subject: Re: Is there a Maven plugin for the Java debugger (jdb)?
 
 I could also use an IDE for package management, but I'd rather use plain
 Maven and an arbitrary text editor instead.
 
 
 On Thu, Oct 10, 2013 at 11:21 AM, Russell Gold 
 wrote:
 
> The simplest way to do this is actually to run it in your IDE directly.
> IntellijIDEA community edition can import your maven project and thus
> get all of the dependencies. Then you just run the program in the
> debugger. I presume Eclipse can do something similar.
> 
> On Oct 10, 2013, at 10:52 AM, 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 structure,
>> but
> I'm
>> not sure how to inform jdb of Java code in a Maven project, Maven's
>> CLASSPATH handling, etc. etc.
>> 
>> 
>> On Thu, Oct 10, 2013 at 10:46 AM, Benson Margulies <
> bimargul...@gmail.com>wrote:
>> 
>>> What would that mean? Do you want to execute the program in the
> debugger?
>>> 
>>> On Thu, Oct 10, 2013 at 10:38 AM, Andrew Pennebaker
>>>  wrote:
 I'd like to run jdb over some of my classes in a Maven project. Is
> there
>>> a
 plugin I can drop into my pom.xml?
>>> 
>>> ---
>>> -- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>> 
>>> 
> 
> -
> Author, Getting Started with Apache Maven <
> http://www.packtpub.com/getting-started-with-apache-maven/video>
> 
> Come read my webnovel, Take a Lemon , and
> listen to the Misfile radio play <
> http://www.fuzzyfacetheater.com/misfile/>!
> 
> 
> 
> 
> 
> 
> 
> 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
>> 
>> -
>> Author, Getting Started with Apache Maven <
>> http://www.packtpub.com/getting-started-with-apache-maven/video>
>> 
>> Come read my webnovel, Take a Lemon ,
>> and listen to the Misfile radio play <
>> http://www.fuzzyfacetheater.com/misfile/>!
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 

-
Author, Getting Started with Apache Maven 


Come read my webnovel, Take a Lemon , 
and listen to the Misfile radio play !









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 rather than separated by a 150ms latency link is a lot nicer... And
sadly cli tools are the only way to handle that without adding significant
lag.

Having said all that, debuggers are the tool of last resort, if you need to
use them you start worrying about heisenbugs etc.

A good log file beats the pants off a debugger 99 times out of 100... Ask
anyone who tried to figure out why the conference call talker indicators
were invalid or did work on any real time system and they will swear by a
good log file with mapped diagnostic context support.

Me... I worked on real time conferencing systems, so a good log file is
what I favour, you can't single step debug a real time teleconference ;-)
the skills you learn trying figure out techniques to debug such systems are
very valuable

On Friday, 11 October 2013, Russell Gold wrote:

> 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 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 do that? I suspect we are not getting at your actual
> >> requirement.
> >>
> >> On Oct 10, 2013, at 2:25 PM, Andrew Pennebaker 
> >> wrote:
> >>
> >>> Yes, various Java IDEs can debug Java code, including Java code
> organized
> >>> in Maven projects. What I'm interested in is debugging Java code in a
> >> Maven
> >>> project with an arbitrary text editor, not necessarily Eclipse or
> >> Intellij,
> >>> for example Emacs, or even Notepad, by invoking Maven tasks that point
> to
> >>> Maven plugins that interact with jdb.
> >>>
> >>>
> >>> On Thu, Oct 10, 2013 at 2:09 PM, Sankaran, Nambi 
> >> wrote:
> >>>
>  It very is easy to debug maven from eclipse, I have documented how I
> >> debug
>  maven-jetty-plugin using eclipse
> 
> 
> >>
> http://nambisankaran.wordpress.com/2012/06/30/running-jetty-server-with-maven/
> 
>  -Original Message-
>  From: Andrew Pennebaker [mailto:apenneba...@42six.com]
>  Sent: Thursday, October 10, 2013 11:04 AM
>  To: Maven Users List
>  Subject: Re: Is there a Maven plugin for the Java debugger (jdb)?
> 
>  I could also use an IDE for package management, but I'd rather use
> plain
>  Maven and an arbitrary text editor instead.
> 
> 
>  On Thu, Oct 10, 2013 at 11:21 AM, Russell Gold 
>  wrote:
> 
> > The simplest way to do this is actually to run it in your IDE
> directly.
> > IntellijIDEA community edition can import your maven project and thus
> > get all of the dependencies. Then you just run the program in the
> > debugger. I presume Eclipse can do something similar.
> >
> > On Oct 10, 2013, at 10:52 AM, 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 structure,
> >> but
> > I'm
> >> not sure how to inform jdb of Java code in a Maven project, Maven's
> >> CLASSPATH handling, etc. etc.
> >>
> >>
> >> On Thu, Oct 10, 2013 at 10:46 AM, Benson Margulies <
> > bimargul...@gmail.com>wrote:
> >>
> >>> What would that mean? Do you want to execute the program in the
> > debugger?
> >>>
> >>> On Thu, Oct 10, 2013 at 10:38 AM, Andrew Pennebaker
> >>>  wrote:
>  I'd like to run jdb over some of my classes in a Maven project. Is
>


-- 
Sent from my phone


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 organizations how to, to download the
standard speech jar.

I would rather say, issue these ten commands:

curl http://dl.ghost4j.org/ghost4j-0.5.0.zip > ghost4j-0.5.0.zip

open ghost4j-0.5.0.zip

/usr/bin/mvn install:install-file -Dfile=ghost4j-0.5.0/ghost4j-0.5.0.jar
-Dpackaging=jar -DgroupId=org.ghost4j -DartifactId=ghost4j -Dversion=0.5.0
-DaddToPom=true

/usr/bin/mvn install:install-file
-Dfile=ghost4j-0.5.0/lib/xmlgraphics-commons-1.4.jar -Dpackaging=jar
-DgroupId=org.ghost4j -DartifactId=xmlgraphics-commons -Dversion=1.4
-DaddToPom=true

/usr/bin/mvn install:install-file
-Dfile=ghost4j-0.5.0/lib/commons-io-1.3.1.jar -Dpackaging=jar
-DgroupId=org.ghost4j -DartifactId=commons-io -Dversion=1.3.1
-DaddToPom=true

/usr/bin/mvn install:install-file -Dfile=ghost4j-0.5.0/lib/log4j-1.2.15.jar
-Packaging=jar -DgroupId=org.ghost4j -DartifactId=log4j -Dversion=1.2.15
-DaddToPom=true

/usr/bin/mvn install:install-file
-Dfile=ghost4j-0.5.0/lib/commons-beanutils-1.8.3.jar -Dpackaging=jar
-DgroupId=org.ghost4j -DartifactId=commons-beanutils -Dversion=1.8.3
-DaddToPom=true

/usr/bin/mvn install:install-file
-Dfile=ghost4j-0.5.0/lib/commons-logging-1.1.1.jar -Dpackaging=jar
-DgroupId=org.ghost4j -DartifactId=commons-logging -Dversion=1.1.1
-DaddToPom=true

/usr/bin/mvn install:install-file -Dfile=ghost4j-0.5.0/lib/itext-2.1.7.jar
-Dpackaging=jar -DgroupId=org.ghost4j -DartifactId=itext -Dversion=2.1.7
-DaddToPom=true

/usr/bin/mvn install:install-file -Dfile=ghost4j-0.5.0/lib/jna-3.3.0.jar
-Dpackaging=jar -DgroupId=org.ghost4j -DartifactId=jna -Dversion=3.3.0
-DaddToPom=true

More commands, fine, but command line also leads to automation.  Users can
include ghostscript via a batch file!



--
View this message in context: 
http://maven.40175.n5.nabble.com/Is-there-any-maven-plugin-to-add-dependency-to-existing-pom-xml-tp2839092p5772853.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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, but after I got used to IDEs 
development was a lot easier.
IDEs do bring a lot of value .
So, why not bring the nice features of IDEs into editors such as emacs or vim.

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.


-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] 
Sent: Friday, October 11, 2013 9:58 AM
To: Maven Users List
Subject: Re: Is there a Maven plugin for the Java debugger (jdb)?

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 rather than separated by a 150ms latency link is a lot nicer... And 
sadly cli tools are the only way to handle that without adding significant lag.

Having said all that, debuggers are the tool of last resort, if you need to use 
them you start worrying about heisenbugs etc.

A good log file beats the pants off a debugger 99 times out of 100... Ask 
anyone who tried to figure out why the conference call talker indicators were 
invalid or did work on any real time system and they will swear by a good log 
file with mapped diagnostic context support.

Me... I worked on real time conferencing systems, so a good log file is what I 
favour, you can't single step debug a real time teleconference ;-) the skills 
you learn trying figure out techniques to debug such systems are very valuable

On Friday, 11 October 2013, Russell Gold wrote:

> 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 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 do that? I suspect we are not getting at your 
> >> actual requirement.
> >>
> >> On Oct 10, 2013, at 2:25 PM, Andrew Pennebaker 
> >> 
> >> wrote:
> >>
> >>> Yes, various Java IDEs can debug Java code, including Java code
> organized
> >>> in Maven projects. What I'm interested in is debugging Java code 
> >>> in a
> >> Maven
> >>> project with an arbitrary text editor, not necessarily Eclipse or
> >> Intellij,
> >>> for example Emacs, or even Notepad, by invoking Maven tasks that 
> >>> point
> to
> >>> Maven plugins that interact with jdb.
> >>>
> >>>
> >>> On Thu, Oct 10, 2013 at 2:09 PM, Sankaran, Nambi 
> >>> 
> >> wrote:
> >>>
>  It very is easy to debug maven from eclipse, I have documented 
>  how I
> >> debug
>  maven-jetty-plugin using eclipse
> 
> 
> >>
> http://nambisankaran.wordpress.com/2012/06/30/running-jetty-server-wit
> h-maven/
> 
>  -Original Message-
>  From: Andrew Pennebaker [mailto:apenneba...@42six.com]
>  Sent: Thursday, October 10, 2013 11:04 AM
>  To: Maven Users List
>  Subject: Re: Is there a Maven plugin for the Java debugger (jdb)?
> 
>  I could also use an IDE for package management, but I'd rather 
>  use
> plain
>  Maven and an arbitrary text editor instead.
> 
> 
>  On Thu, Oct 10, 2013 at 11:21 AM, Russell Gold 
>  
>  wrote:
> 
> > The simplest way to do this is actually to run it in your IDE
> directly.
> > IntellijIDEA community edition can import your maven project and 
> > thus get all of the dependencies. Then you just run the program 
> > in the debugger. I presume Eclipse can do something similar.
> >
> > On Oct 10, 2013, at 10:52 AM, 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 
> >> structure, but
> > I'm
> >> not sure how to inform jdb of Java code in a Maven project, 
> >> Maven's CLASSPATH handling, etc. etc.
> >>
> >>
> >> On Thu, Oct 10, 2013 at 10:46 AM, Benson Margulies <
> > bimargul...@gmail.com>wrote:
> >>
> >>> What would that mean? Do you want to execute the program in 
> >>> the
> > debugger?
> >>>
> >>> On Thu, Oct 10, 2013 at 10:38 AM, Andrew Pennebaker 
> >>>  wrote:

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 process is as easy as "mvn exec:exec". You could even
specify jdb as the executable directly if that's what you want and then you
wouldn't even need the attachment step. Using profiles (yes, this is one of
their benign uses!) you can even set up multiple different behaviors of
exec:exec for different common situations. Really I don't think there is
any need whatsoever for a dedicated "mvn exec:jdb" here.

-Curtis
On Oct 11, 2013 10:53 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 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 do that? I suspect we are not getting at your actual
> > requirement.
> >
> > On Oct 10, 2013, at 2:25 PM, Andrew Pennebaker 
> > wrote:
> >
> > > Yes, various Java IDEs can debug Java code, including Java code
> organized
> > > in Maven projects. What I'm interested in is debugging Java code in a
> > Maven
> > > project with an arbitrary text editor, not necessarily Eclipse or
> > Intellij,
> > > for example Emacs, or even Notepad, by invoking Maven tasks that point
> to
> > > Maven plugins that interact with jdb.
> > >
> > >
> > > On Thu, Oct 10, 2013 at 2:09 PM, Sankaran, Nambi 
> > wrote:
> > >
> > >> It very is easy to debug maven from eclipse, I have documented how I
> > debug
> > >> maven-jetty-plugin using eclipse
> > >>
> > >>
> >
> http://nambisankaran.wordpress.com/2012/06/30/running-jetty-server-with-maven/
> > >>
> > >> -Original Message-
> > >> From: Andrew Pennebaker [mailto:apenneba...@42six.com]
> > >> Sent: Thursday, October 10, 2013 11:04 AM
> > >> To: Maven Users List
> > >> Subject: Re: Is there a Maven plugin for the Java debugger (jdb)?
> > >>
> > >> I could also use an IDE for package management, but I'd rather use
> plain
> > >> Maven and an arbitrary text editor instead.
> > >>
> > >>
> > >> On Thu, Oct 10, 2013 at 11:21 AM, Russell Gold 
> > >> wrote:
> > >>
> > >>> The simplest way to do this is actually to run it in your IDE
> directly.
> > >>> IntellijIDEA community edition can import your maven project and thus
> > >>> get all of the dependencies. Then you just run the program in the
> > >>> debugger. I presume Eclipse can do something similar.
> > >>>
> > >>> On Oct 10, 2013, at 10:52 AM, 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 structure,
> >  but
> > >>> I'm
> >  not sure how to inform jdb of Java code in a Maven project, Maven's
> >  CLASSPATH handling, etc. etc.
> > 
> > 
> >  On Thu, Oct 10, 2013 at 10:46 AM, Benson Margulies <
> > >>> bimargul...@gmail.com>wrote:
> > 
> > > What would that mean? Do you want to execute the program in the
> > >>> debugger?
> > >
> > > On Thu, Oct 10, 2013 at 10:38 AM, Andrew Pennebaker
> > >  wrote:
> > >> I'd like to run jdb over some of my classes in a Maven project. Is
> > >>> there
> > > a
> > >> plugin I can drop into my pom.xml?
> > >
> > > ---
> > > -- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > > For additional commands, e-mail: users-h...@maven.apache.org
> > >
> > >
> > >>>
> > >>> -
> > >>> Author, Getting Started with Apache Maven <
> > >>> http://www.packtpub.com/getting-started-with-apache-maven/video>
> > >>>
> > >>> Come read my webnovel, Take a Lemon , and
> > >>> listen to the Misfile radio play <
> > >>> http://www.fuzzyfacetheater.com/misfile/>!
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>
> > >> -
> > >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > >> For additional commands, e-mail: users-h...@maven.apache.org
> > >>
> > >>
> >
> > -
> > Author, Getting Started with Apache Maven <
> > http://www.packtpub.com/getting-started-with-apache-maven/video>
> >
> > Come read my webnovel, Take a Lemon ,
> > and listen to the Misfile radio play <
> > http://www.fuzzyfacetheater.com/misfile/>!
> >
> >
> >
> >
> >
> >
> >
> >
>


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 personally I don't use it. I
prefer the opposite approach: embedding vim editing style into Eclipse:
http://vrapper.sourceforge.net/home/

Vim and Eclipse both bring so much productivity I would hate to give up
either of them. Fortunately, you don't have to. :-)

Regards,
Curtis


On Fri, Oct 11, 2013 at 12:19 PM, Sankaran, Nambi wrote:

> 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, but after I got used to IDEs
> development was a lot easier.
> IDEs do bring a lot of value .
> So, why not bring the nice features of IDEs into editors such as emacs or
> vim.
>
> 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.
>
>
> -Original Message-
> From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
> Sent: Friday, October 11, 2013 9:58 AM
> To: Maven Users List
> Subject: Re: Is there a Maven plugin for the Java debugger (jdb)?
>
> 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 rather than separated by a 150ms latency link is a lot nicer... And
> sadly cli tools are the only way to handle that without adding significant
> lag.
>
> Having said all that, debuggers are the tool of last resort, if you need
> to use them you start worrying about heisenbugs etc.
>
> A good log file beats the pants off a debugger 99 times out of 100... Ask
> anyone who tried to figure out why the conference call talker indicators
> were invalid or did work on any real time system and they will swear by a
> good log file with mapped diagnostic context support.
>
> Me... I worked on real time conferencing systems, so a good log file is
> what I favour, you can't single step debug a real time teleconference ;-)
> the skills you learn trying figure out techniques to debug such systems are
> very valuable
>
> On Friday, 11 October 2013, Russell Gold wrote:
>
> > 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 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 do that? I suspect we are not getting at your
> > >> actual requirement.
> > >>
> > >> On Oct 10, 2013, at 2:25 PM, Andrew Pennebaker
> > >> 
> > >> wrote:
> > >>
> > >>> Yes, various Java IDEs can debug Java code, including Java code
> > organized
> > >>> in Maven projects. What I'm interested in is debugging Java code
> > >>> in a
> > >> Maven
> > >>> project with an arbitrary text editor, not necessarily Eclipse or
> > >> Intellij,
> > >>> for example Emacs, or even Notepad, by invoking Maven tasks that
> > >>> point
> > to
> > >>> Maven plugins that interact with jdb.
> > >>>
> > >>>
> > >>> On Thu, Oct 10, 2013 at 2:09 PM, Sankaran, Nambi
> > >>> 
> > >> wrote:
> > >>>
> >  It very is easy to debug maven from eclipse, I have documented
> >  how I
> > >> debug
> >  maven-jetty-plugin using eclipse
> > 
> > 
> > >>
> > http://nambisankaran.wordpress.com/2012/06/30/running-jetty-server-wit
> > h-maven/
> > 
> >  -Original Message-
> >  From: Andrew Pennebaker [mailto:apenneba...@42six.com]
> >  Sent: Thursday, October 10, 2013 11:04 AM
> >  To: Maven Users List
> >  Subject: Re: Is there a Maven plugin for the Java debugger (jdb)?
> > 
> >  I could also use an IDE for package management, but I'd rather
> >  use
> > plain
> >  Maven and an arbitrary text editor instead.
> > 
> > 
> >  On Thu, Oct 10, 2013 at 11:21 AM, Russell Gold
> >  
> >  wrote:
> > 
> > > The simplest way to do this is actually to run it in your IDE
> > directly.
> > > IntellijIDEA community edition can import your maven project and
> > > thus get all of the dependencies. Then you just run the prog

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 no exceptions or errors and that data can be extracted.  I
could alos programmatically determine that a database created with any
version was readable by any other version.  This is huge!

Imagine the database is expanding, fields being added and deleted.  If the
database was created and writen using my-database-1.0.3-jar, could it be
read with 1.0.2-jar and 1.0.5-jar.  You may not be able to do anything about
1.0.2 reading 1.0.3, because 1.0.3 is already released, but that would
enable you to create a database jar that was forward compatible (or
scalable) and backwards compatible.



--
View this message in context: 
http://maven.40175.n5.nabble.com/Is-there-any-maven-plugin-to-add-dependency-to-existing-pom-xml-tp2839092p5772861.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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 new file pom2.xml with the new dependency (this can be changed to
overwrite the original file using: pom.xml > pom.xml



--
View this message in context: 
http://maven.40175.n5.nabble.com/Is-there-any-maven-plugin-to-add-dependency-to-existing-pom-xml-tp2839092p5772863.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



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, Curtis Rueden  wrote:

> 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 process is as easy as "mvn exec:exec". You could even
> specify jdb as the executable directly if that's what you want and then you
> wouldn't even need the attachment step. Using profiles (yes, this is one of
> their benign uses!) you can even set up multiple different behaviors of
> exec:exec for different common situations. Really I don't think there is
> any need whatsoever for a dedicated "mvn exec:jdb" here.
>
> -Curtis
> On Oct 11, 2013 10:53 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 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 do that? I suspect we are not getting at your actual
> > > requirement.
> > >
> > > On Oct 10, 2013, at 2:25 PM, Andrew Pennebaker 
> > > wrote:
> > >
> > > > Yes, various Java IDEs can debug Java code, including Java code
> > organized
> > > > in Maven projects. What I'm interested in is debugging Java code in a
> > > Maven
> > > > project with an arbitrary text editor, not necessarily Eclipse or
> > > Intellij,
> > > > for example Emacs, or even Notepad, by invoking Maven tasks that
> point
> > to
> > > > Maven plugins that interact with jdb.
> > > >
> > > >
> > > > On Thu, Oct 10, 2013 at 2:09 PM, Sankaran, Nambi  >
> > > wrote:
> > > >
> > > >> It very is easy to debug maven from eclipse, I have documented how I
> > > debug
> > > >> maven-jetty-plugin using eclipse
> > > >>
> > > >>
> > >
> >
> http://nambisankaran.wordpress.com/2012/06/30/running-jetty-server-with-maven/
> > > >>
> > > >> -Original Message-
> > > >> From: Andrew Pennebaker [mailto:apenneba...@42six.com]
> > > >> Sent: Thursday, October 10, 2013 11:04 AM
> > > >> To: Maven Users List
> > > >> Subject: Re: Is there a Maven plugin for the Java debugger (jdb)?
> > > >>
> > > >> I could also use an IDE for package management, but I'd rather use
> > plain
> > > >> Maven and an arbitrary text editor instead.
> > > >>
> > > >>
> > > >> On Thu, Oct 10, 2013 at 11:21 AM, Russell Gold  >
> > > >> wrote:
> > > >>
> > > >>> The simplest way to do this is actually to run it in your IDE
> > directly.
> > > >>> IntellijIDEA community edition can import your maven project and
> thus
> > > >>> get all of the dependencies. Then you just run the program in the
> > > >>> debugger. I presume Eclipse can do something similar.
> > > >>>
> > > >>> On Oct 10, 2013, at 10:52 AM, 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
> structure,
> > >  but
> > > >>> I'm
> > >  not sure how to inform jdb of Java code in a Maven project,
> Maven's
> > >  CLASSPATH handling, etc. etc.
> > > 
> > > 
> > >  On Thu, Oct 10, 2013 at 10:46 AM, Benson Margulies <
> > > >>> bimargul...@gmail.com>wrote:
> > > 
> > > > What would that mean? Do you want to execute the program in the
> > > >>> debugger?
> > > >
> > > > On Thu, Oct 10, 2013 at 10:38 AM, Andrew Pennebaker
> > > >  wrote:
> > > >> I'd like to run jdb over some of my classes in a Maven project.
> Is
> > > >>> there
> > > > a
> > > >> plugin I can drop into my pom.xml?
> > > >
> > > >
> ---
> > > > -- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > > > For additional commands, e-mail: users-h...@maven.apache.org
> > > >
> > > >
> > > >>>
> > > >>> -
> > > >>> Author, Getting Started with Apache Maven <
> > > >>> http://www.packtpub.com/getting-started-with-apache-maven/video>
> > > >>>
> > > >>> Come read my webnovel, Take a Lemon ,
> and
> > > >>> listen to the Misfile radio play <
> > > >>> http://www.fuzzyfacetheater.com/misfile/>!
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>
> > > >>
> -
> > > >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org

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 could just `mvn exec:exec `, starting a jdb session on
> .main(), that would be *perfect*.

We can get close. If you use the block above, you would launch with:

mvn -Djdb.mainClass= exec:exec

Where "jdb.mainClass" is the property used in the XML above. And if that is
not concise enough for your taste you can choose a property with a shorter
name.

Working example inside a profile with a specific main class is here:

https://github.com/imagej/imagej/commit/8cfe0fde7d89c71e083c992f5c7432b29f09c483

Regards,
Curtis


On Fri, Oct 11, 2013 at 1:47 PM, Andrew Pennebaker wrote:

> 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, Curtis Rueden  wrote:
>
> > 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 process is as easy as "mvn exec:exec". You could even
> > specify jdb as the executable directly if that's what you want and then
> you
> > wouldn't even need the attachment step. Using profiles (yes, this is one
> of
> > their benign uses!) you can even set up multiple different behaviors of
> > exec:exec for different common situations. Really I don't think there is
> > any need whatsoever for a dedicated "mvn exec:jdb" here.
> >
> > -Curtis
> > On Oct 11, 2013 10:53 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 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 do that? I suspect we are not getting at your
> actual
> > > > requirement.
> > > >
> > > > On Oct 10, 2013, at 2:25 PM, Andrew Pennebaker <
> apenneba...@42six.com>
> > > > wrote:
> > > >
> > > > > Yes, various Java IDEs can debug Java code, including Java code
> > > organized
> > > > > in Maven projects. What I'm interested in is debugging Java code
> in a
> > > > Maven
> > > > > project with an arbitrary text editor, not necessarily Eclipse or
> > > > Intellij,
> > > > > for example Emacs, or even Notepad, by invoking Maven tasks that
> > point
> > > to
> > > > > Maven plugins that interact with jdb.
> > > > >
> > > > >
> > > > > On Thu, Oct 10, 2013 at 2:09 PM, Sankaran, Nambi <
> nsanka...@ebay.com
> > >
> > > > wrote:
> > > > >
> > > > >> It very is easy to debug maven from eclipse, I have documented
> how I
> > > > debug
> > > > >> maven-jetty-plugin using eclipse
> > > > >>
> > > > >>
> > > >
> > >
> >
> http://nambisankaran.wordpress.com/2012/06/30/running-jetty-server-with-maven/
> > > > >>
> > > > >> -Original Message-
> > > > >> From: Andrew Pennebaker [mailto:apenneba...@42six.com]
> > > > >> Sent: Thursday, October 10, 2013 11:04 AM
> > > > >> To: Maven Users List
> > > > >> Subject: Re: Is there a Maven plugin for the Java debugger (jdb)?
> > > > >>
> > > > >> I could also use an IDE for package management, but I'd rather use
> > > plain
> > > > >> Maven and an arbitrary text editor instead.
> > > > >>
> > > > >>
> > > > >> On Thu, Oct 10, 2013 at 11:21 AM, Russell Gold <
> r...@gold-family.us
> > >
> > > > >> wrote:
> > > > >>
> > > > >>> The simplest way to do this is actually to run it in your IDE
> > > directly.
> > > > >>> IntellijIDEA community edition can import your maven project and
> > thus
> > > > >>> get all of the dependencies. Then you just run the program in the
> > > > >>> debugger. I presume Eclipse can do something similar.
> > > > >>>
> > > > >>> On Oct 10, 2013, at 10:52 AM, 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
> > structure,
> > > >  but
> > > > >>> I'm
> > > >  not sure how to inform jdb of Java code in a Maven project,
> > Maven's
> > > >  CLASSPATH handling, etc. etc.
> > > > 
> > > > 
> > > >  On Thu, Oct 10, 2013 at 10:46 AM, Benson Margulies <
> > > > >>> bimargul...@gmail.com>wrote:
> > > > 
> > > > > W

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 structure, but I'm
> not sure how to inform jdb of Java code in a Maven project, Maven's
> CLASSPATH handling, etc. etc.


signature.asc
Description: OpenPGP digital signature