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

2013-10-12 Thread Benson Margulies
I use the maven invoker plugin for this, by parameterizing a pom so that I can substitute various versions. By using the 'pom dependency' thing, you could perhaps do this for entire dependencies as opposed to versions. Or you could script pom editing; there are XML-editing Maven plugin and ant plug

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

2010-09-14 Thread Wim Deblauwe
If you use IntelliJ IDEA, you can press ALT-INSERT in a dependencies section and it will allow you to choose from all the dependencies that are in your local repo. Very neat. Not sure why you would want this in a plugin? 2010/9/14 Wayne Fay > > Is there any maven plugin to add/update in & >

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

2010-09-14 Thread Wayne Fay
> Is there any maven plugin to add/update  in & > section to existing pom.xml via command line? What is the use case for this feature/function? Why do you need to do this? Wayne - To unsubscribe, e-mail: users-unsubscr...@mav

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

2010-09-14 Thread Baptiste MATHUS
Or either, I guess a patch could be proposed to add the feature to http://mojo.codehaus.org/versions-maven-plugin/. Cheers 2010/9/14 Baptiste MATHUS > I don't think so. There was previously an idea about initiating a maven > plugin to manipulate pom, but hasn't been done yet. > > Cheers > > 201

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

2010-09-14 Thread Baptiste MATHUS
I don't think so. There was previously an idea about initiating a maven plugin to manipulate pom, but hasn't been done yet. Cheers 2010/9/14 Prashant Bhate > Hi, > > Is there any maven plugin to add/update in & > section to existing pom.xml via command line? > > Regards, > Prashant Bhate >

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

2010-09-14 Thread Prashant Bhate
Hi, Is there any maven plugin to add/update in & section to existing pom.xml via command line? Regards, Prashant Bhate