You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stefano Bagnara (JIRA)" <ji...@codehaus.org> on 2007/04/26 16:54:26 UTC

[jira] Created: (MRELEASE-223) Generated pom.xml has invalid chars (does not correctly handle xml entities)

Generated pom.xml has invalid chars (does not correctly handle xml entities)
----------------------------------------------------------------------------

                 Key: MRELEASE-223
                 URL: http://jira.codehaus.org/browse/MRELEASE-223
             Project: Maven 2.x Release Plugin
          Issue Type: Bug
    Affects Versions: 2.0-beta-4
            Reporter: Stefano Bagnara


In our main pom we have this entry:
{code:xml} 
<developer>
  <id>hilmer</id>
  <name>S&#248;ren Hilmer</name>
  <email>sh at widetrail.dk</email>
  <timezone />
  <roles>
    <role>Developer</role>
  </roles>
</developer>
{code} 

in the resulting pom.xml the entity is converted to the real value, and the next time I try to use the pom it results in invalid output.

{code:xml} 
<developer>
  <id>hilmer</id>
  <name>Søren Hilmer</name>
  <email>sh at widetrail.dk</email>
  <timezone />
  <roles>
    <role>Developer</role>
  </roles>
</developer>
{code} 

-- 
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

       

[jira] Commented: (MRELEASE-223) Generated pom.xml has invalid chars (does not correctly handle xml entities)

Posted by "Alain Coetmeur (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_94251 ] 

Alain Coetmeur commented on MRELEASE-223:
-----------------------------------------

I have similar problem
because on my maven, release does not add
<?xml version="1.0" encoding="ISO-8859-1"?>
to the pom.xml.tag ...

do you have this header or not... if not it could explain why your editor does not understand the stange character
(interpreted as UTF8)

however it seems they cannot reproduce the problem,
http://jira.codehaus.org/browse/MRELEASE-221

I'm checking...



> Generated pom.xml has invalid chars (does not correctly handle xml entities)
> ----------------------------------------------------------------------------
>
>                 Key: MRELEASE-223
>                 URL: http://jira.codehaus.org/browse/MRELEASE-223
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-4
>            Reporter: Stefano Bagnara
>
> In our main pom we have this entry:
> {code:xml} 
> <developer>
>   <id>hilmer</id>
>   <name>S&#248;ren Hilmer</name>
>   <email>sh at widetrail.dk</email>
>   <timezone />
>   <roles>
>     <role>Developer</role>
>   </roles>
> </developer>
> {code} 
> in the resulting pom.xml the entity is converted to the real value, and the next time I try to use the pom it results in invalid output.
> {code:xml} 
> <developer>
>   <id>hilmer</id>
>   <name>Søren Hilmer</name>
>   <email>sh at widetrail.dk</email>
>   <timezone />
>   <roles>
>     <role>Developer</role>
>   </roles>
> </developer>
> {code} 

-- 
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

       

[jira] Commented: (MRELEASE-223) Generated pom.xml has invalid chars (does not correctly handle xml entities)

Posted by "Stefano Bagnara (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135953#action_135953 ] 

Stefano Bagnara commented on MRELEASE-223:
------------------------------------------

I'm not sure I understand the "specify your desired charset in the XML declartion" suggestion:
How can I use chinese and sweden chars to specify the name of a sweden committer and a chinese committer working on the project team ?

> Generated pom.xml has invalid chars (does not correctly handle xml entities)
> ----------------------------------------------------------------------------
>
>                 Key: MRELEASE-223
>                 URL: http://jira.codehaus.org/browse/MRELEASE-223
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-4
>            Reporter: Stefano Bagnara
>            Assignee: Benjamin Bentmann
>             Fix For: 2.0-beta-8
>
>
> In our main pom we have this entry:
> {code:xml} 
> <developer>
>   <id>hilmer</id>
>   <name>S&#248;ren Hilmer</name>
>   <email>sh at widetrail.dk</email>
>   <timezone />
>   <roles>
>     <role>Developer</role>
>   </roles>
> </developer>
> {code} 
> in the resulting pom.xml the entity is converted to the real value, and the next time I try to use the pom it results in invalid output.
> {code:xml} 
> <developer>
>   <id>hilmer</id>
>   <name>Søren Hilmer</name>
>   <email>sh at widetrail.dk</email>
>   <timezone />
>   <roles>
>     <role>Developer</role>
>   </roles>
> </developer>
> {code} 

-- 
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

       

[jira] Closed: (MRELEASE-223) Generated pom.xml has invalid chars (does not correctly handle xml entities)

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRELEASE-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MRELEASE-223.
--------------------------------------

         Assignee: Benjamin Bentmann
       Resolution: Fixed
    Fix Version/s: 2.0-beta-8

This is basically fixed by MRELEASE-87, i.e. the POM is now written using the encoding given by the XML declaration.

As for the entities themselves: These will keep to be expanded, I see no (feasible) way of preserving them, also considering that they have little use: simply specify your desired charset in the XML declaration and edit the POM right away.

> Generated pom.xml has invalid chars (does not correctly handle xml entities)
> ----------------------------------------------------------------------------
>
>                 Key: MRELEASE-223
>                 URL: http://jira.codehaus.org/browse/MRELEASE-223
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-4
>            Reporter: Stefano Bagnara
>            Assignee: Benjamin Bentmann
>             Fix For: 2.0-beta-8
>
>
> In our main pom we have this entry:
> {code:xml} 
> <developer>
>   <id>hilmer</id>
>   <name>S&#248;ren Hilmer</name>
>   <email>sh at widetrail.dk</email>
>   <timezone />
>   <roles>
>     <role>Developer</role>
>   </roles>
> </developer>
> {code} 
> in the resulting pom.xml the entity is converted to the real value, and the next time I try to use the pom it results in invalid output.
> {code:xml} 
> <developer>
>   <id>hilmer</id>
>   <name>Søren Hilmer</name>
>   <email>sh at widetrail.dk</email>
>   <timezone />
>   <roles>
>     <role>Developer</role>
>   </roles>
> </developer>
> {code} 

-- 
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

       

[jira] Commented: (MRELEASE-223) Generated pom.xml has invalid chars (does not correctly handle xml entities)

Posted by "Stefano Bagnara (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_94261 ] 

Stefano Bagnara commented on MRELEASE-223:
------------------------------------------

Well, I used the xml entities so to not have to use the charset.
But when it build the output pom.xml it should take care to correctly escape data.

The problem is not my editor, but the mvn site plugin.

The website created after the release plugin "mungled" my pom.xml does no more contain the correct char.

So this is all about maven: I don't use third party editors or anything else.

Just mvn release and mvn site.
I don't know how to test the 2.0-beta5-SNAPSHOT plugin instead of the 2.0-beta4 automatically used by mvn.

> Generated pom.xml has invalid chars (does not correctly handle xml entities)
> ----------------------------------------------------------------------------
>
>                 Key: MRELEASE-223
>                 URL: http://jira.codehaus.org/browse/MRELEASE-223
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-4
>            Reporter: Stefano Bagnara
>
> In our main pom we have this entry:
> {code:xml} 
> <developer>
>   <id>hilmer</id>
>   <name>S&#248;ren Hilmer</name>
>   <email>sh at widetrail.dk</email>
>   <timezone />
>   <roles>
>     <role>Developer</role>
>   </roles>
> </developer>
> {code} 
> in the resulting pom.xml the entity is converted to the real value, and the next time I try to use the pom it results in invalid output.
> {code:xml} 
> <developer>
>   <id>hilmer</id>
>   <name>Søren Hilmer</name>
>   <email>sh at widetrail.dk</email>
>   <timezone />
>   <roles>
>     <role>Developer</role>
>   </roles>
> </developer>
> {code} 

-- 
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

       

[jira] Commented: (MRELEASE-223) Generated pom.xml has invalid chars (does not correctly handle xml entities)

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135954#action_135954 ] 

Benjamin Bentmann commented on MRELEASE-223:
--------------------------------------------

You would use UTF-8 as the encoding since it can handle quite any character around. The rest is merely a matter of your text editor helping to type in the characters you need.

> Generated pom.xml has invalid chars (does not correctly handle xml entities)
> ----------------------------------------------------------------------------
>
>                 Key: MRELEASE-223
>                 URL: http://jira.codehaus.org/browse/MRELEASE-223
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-4
>            Reporter: Stefano Bagnara
>            Assignee: Benjamin Bentmann
>             Fix For: 2.0-beta-8
>
>
> In our main pom we have this entry:
> {code:xml} 
> <developer>
>   <id>hilmer</id>
>   <name>S&#248;ren Hilmer</name>
>   <email>sh at widetrail.dk</email>
>   <timezone />
>   <roles>
>     <role>Developer</role>
>   </roles>
> </developer>
> {code} 
> in the resulting pom.xml the entity is converted to the real value, and the next time I try to use the pom it results in invalid output.
> {code:xml} 
> <developer>
>   <id>hilmer</id>
>   <name>Søren Hilmer</name>
>   <email>sh at widetrail.dk</email>
>   <timezone />
>   <roles>
>     <role>Developer</role>
>   </roles>
> </developer>
> {code} 

-- 
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