Please upgrade to JDOM 1.1;  current JDOM 1.0 contains a bug in parsing 
comments starting with hyphen
-----------------------------------------------------------------------------------------------------

                 Key: MRELEASE-460
                 URL: http://jira.codehaus.org/browse/MRELEASE-460
             Project: Maven 2.x Release Plugin
          Issue Type: Bug
          Components: prepare
    Affects Versions: 2.0-beta-9
            Reporter: Andrew Lynch


The current maven release plugin fails if an XML comment started with three 
dashes, even though this is legal XML syntax.  This is dues to a bug in JDOM, 
fixed in version 1.1 ( see http://jdom.markmail.org/message/b45honrv3crcmqux )

An example:   

                                <!---dependency>
                                    <groupId>com.p6spy</groupId>
                                    <artifactId>p6spy</artifactId>
                                    <version>1.3</version>
                                </dependency-->

Fails with the following error:

[INFO] Transforming 'BGC Refund Reader Service'...
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The data "-dependency>
                                    <groupId>com.p6spy</groupId>
                                    <artifactId>p6spy</artifactId>
                                    <version>1.3</version>
                                </dependency" is not legal for a JDOM comment: C
omment data cannot start with a hyphen..
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.jdom.IllegalDataException: The data "-dependency>
                                    <groupId>com.p6spy</groupId>
                                    <artifactId>p6spy</artifactId>
                                    <version>1.3</version>
                                </dependency" is not legal for a JDOM comment: C
omment data cannot start with a hyphen..
        at org.jdom.Comment.setText(Comment.java:120)
        at org.jdom.Comment.<init>(Comment.java:86)
        at org.jdom.DefaultJDOMFactory.comment(DefaultJDOMFactory.java:105)


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

        

Reply via email to