POM parsing fails if the POM contains a property named project.foo

Create issue
Issue #13 resolved
Espen Wiborg repo owner created an issue

Reported by tilman in mail. Backtrace:

{{{ #!scheme

Debugger entered--Lisp error: (error "XML: (Not Well-Formed) Only one root tag allowed") signal(error ("XML: (Not Well-Formed) Only one root tag allowed")) funcall(signal error ("XML: (Not Well-Formed) Only one root tag allowed")) (condition-case error (let (...) (if ... ... ... ... ... ...)) (error (display-buffer buffer t) (funcall ... ... ...))) jde-mvn-pom-parse-pom-and-call(#<buffer POM parse output> (lambda (G2904) (let (...) (jde-mvn-set-jde-variables :include-dependency-sources t))) "/neofonie/home/tilman/projects/hbv/trunk/hbv-webapp-module/hbv-webapp/pom.xml") (if (or (eq ... ...) (/= ... 0)) (progn (if ... ...) (message "%s exited abnormally" jde-mvn-command)) (jde-mvn-pom-parse-pom-and-call jde-mvn-output-buffer (symbol-value G2909) (symbol-value G2908))) (if (memq (process-status process) (quote ...)) (if (or ... ...) (progn ... ...) (jde-mvn-pom-parse-pom-and-call jde-mvn-output-buffer ... ...))) (lambda (G2908 G2909 process event) (if (memq ... ...) (if ... ... ...)))(--pom-file-- --closure-- #<process Maven> "finished\n") apply((lambda (G2908 G2909 process event) (if (memq ... ...) (if ... ... ...))) --pom-file-- --closure-- (#<process Maven> "finished\n")) (lambda (&rest --cl-rest--) (apply (lambda ... ...) (quote --pom-file--) (quote --closure--) --cl-rest--))(#<process Maven> "finished\n")

}}}

The attachment shows the Maven output.

Comments (3)

  1. Espen Wiborg reporter

    The problem is that I find the POM in the output by going to point-max, searching backward for </project>, and then I search backward again for '<project'. This finds the project.email property, which is wrong.

  2. Log in to comment