On May 13, 2009, at 12:33 PM, Joerg Hohwiller wrote:

Okay. So thats what I guessed when I said that the MavenProject/ Model is just a stupid POJO and various plugins manipulate it with side effects. Sounds a little hacky to me but thats the way it is. So my serialization
idea is nuts though.

Anyhow I think that if you have some information in memory, you should
NOT have to write it to the disc so that someone else can copy (read and write) it again. I thought that you store the transformed XML in that new string
attribute (was it alternativeRepresentation) so the Installer/Deployer
could write this string if available instead of copying the pom.xml as is.

I think you are referring to one of the other patches that was submitted, not what I committed to the MNG-624 branch.


A big problem could be the encoding issue if you store XML in a string
and then want to save it with some Writer, you need to know the encoding
from the XML-header or you run into trouble.

My fix didn't store the XML in a string, it modified the DOM.

Ralph

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

Reply via email to