maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Hohwiller (JIRA) <j...@codehaus.org>
Subject [jira] Commented: (MNGECLIPSE-13) adding dependency to pom.xml changes its formating
Date Tue, 15 Aug 2006 08:18:50 GMT
    [ http://jira.codehaus.org/browse/MNGECLIPSE-13?page=comments#action_72367 ] 
            
Jörg Hohwiller commented on MNGECLIPSE-13:
------------------------------------------

It is NOT only the formatting that is changed. Also all comments get stripped out. 
I use comments to document my dependencies since I am missing an appropriate tag in the POM
XML format for that. In my case the m2eclipse plugin is causing information loss!

I can see the point that you want to use the maven internal code to parse the POM and using
XPP will cause this problem. This is a very common problem when updating handwritten configurations
automatically - no matter what format (properties, xml, ...) or project. Anyways from the
usability point of view this is a serious problem that should be solved. Even if you need
to parse the POM again using DOM or whatever. 

> adding dependency to pom.xml changes its formating
> --------------------------------------------------
>
>                 Key: MNGECLIPSE-13
>                 URL: http://jira.codehaus.org/browse/MNGECLIPSE-13
>             Project: Maven 2.x Extension for Eclipse
>          Issue Type: Bug
>    Affects Versions: 0.0.3
>         Environment: win xp, eclipse 3.1, plugin 0.0.3
>            Reporter: Michal Stochmialek
>            Priority: Minor
>
> I use pom.xml as a human-readable file, so I insert empty lines between main sections
of pom etc. But after adding a depedency using maven plugin, those blank lines have disappeared.

> The similar thing happened to indentions. I usually use tabs for indenting, but plugin
changed whole file indenting to spaces. In result CVS diff shows that whole file have been
changed.
> Maven plugin should modify only lines that contain new (just added) dependency.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message