Yes it - almost - works.

Our pom´s should include some kind of documentation in the header.
Unf. this comments get removed from the pom during the release.
I´m not sure but maybe this is jdom related - a "well formed" xml document 
should only have 1 root node but our ones have 2 (project + comment).


[original pom.xml]
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- 
==================================================================================
   |
   |   This pom.xml    : http://maven.apache.org/maven-model/maven.html
   |
   |   Getting Started : 
http://maven.apache.org/guides/getting-started/index.html
   |   Guides          : http://maven.apache.org/guides/index.html
   |
   
================================================================================
 --> 
<project xmlns="http://maven.apache.org/POM/4.0.0"; 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
             xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        ...

[transformed pom.xml]
<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        ...

-----Original Message-----
From: dan tran [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 08, 2006 4:08 PM
To: Maven Users List
Subject: Re: [m2] release plugin removes all comments from pom.xml

http://jira.codehaus.org/browse/MRELEASE-45

It is fixed in svn, please test.

-D


On 5/8/06, Geoffrey De Smet <[EMAIL PROTECTED]> wrote:
>
> Yes, I added one, but it was a duplicate of an existing one already.
> Forgot the id though.
>
> Jens Zastrow wrote:
> > Is tehre any technical issue why the release plugin needs to remove 
> > all the comments and to reformat the whole pom.xml?
> >
> > Thanks
> > Jens Zastrow
>
> --
> With kind regards,
> Geoffrey De Smet
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to