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
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
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
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
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 &
>
> 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
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
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
>
Hi,
Is there any maven plugin to add/update in &
section to existing pom.xml via command line?
Regards,
Prashant Bhate