ZQ: Changing the version when using the maven embedder

2006-11-15 Thread Rahamim, Zvi \(Zvi\)
Hi, I write a java program that gets a pom.xml file, read it, get from the user the version to build and runs maven according to that. What I need to do is to change the version of the built project according to the user input. Can you tell me how to do it? Thanks!

Re: ZQ: Changing the version when using the maven embedder

2006-11-16 Thread franz see
Good day to you, Rahamim The maven-model under the components directory handles that. You will see there the models and the Xpp3 Reader and Writer. You may want to use its Xpp3 Reader to read the pom, then modify its version, the use the Xpp3 Writer to write the pom back. But that should be done