-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 solo1970 wrote: > Hello All, > > I would like to put the following URL: > > http://local.mysite/pub/get?Type=19010-TEST9040044/1&Lang=X&Rev=1&Format=GZIP > in the <url></url> tags of my POM, > but I get the following error: > > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Error building POM (may not be this project's POM). > > > Project ID: unknown > POM Location: C:\TMP\sonia\pom.xml > > Reason: Parse error reading POM. Reason: entity reference name can not > contain c > haracter =' (position: START_TAG seen > ...<url>http://local.mysite/pub/get?Type=1 > 9010-TEST9040044/1&Lang=... @11:66) for project unknown at > C:\TMP\sonia\pom.xml > > > Is there a workaround? > > Thanks > > Sonia
Since the POM is an XML document, all text in it must be proper XML. In your case, the '&' character starts an XML entity. An entity name is terminated with a ';' character. When the parser reads in your POM, it sees the first '&' in your URL and then starts reading until it reaches a ';' so that it can read the entity name. While trying to find a ';', the parser encountered a '=', which is not a valid character in an entity name. To get around this, you need to replace the '&' with the correct XML entity, '&'. This would change your repository URL to: http://local.mysite/pub/get?Type=19010-TEST9040044/1&Lang=X&Rev=1&Format=GZIP HTH, Chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEcBAEBAgAGBQJJtomeAAoJEJWxx7fgsD+CKAkH/iTolsr9S5ehRtTdxRYVCXyV RTiIAAaZnWixJg/Vp4XKlfvS3dYmcXNlXXyukHc9bGC6NAUVhFyFG3zvOGT7tzzs 9OlsZQKi9Gf/zrDhYYTVu9G5J0aDF7lx9eUPK0JxTN5n99hAuSdVZMW6x6priy4d jDurIugWn7C/Xfu0HJv+81Xgf1Gg6TyXUAJahevx001R05gWO187E18KxpKTcUeA tMIWtlw3R/9u9XCYxWqr0XODZt/Oh53d0z8cs+pkZwRMQED60oAt8l7Y1+zsMy1E uuRFt3HPH5mbqpP86cugNEe0pZTS77B3Lu9O61mDnjBj4uUyZg52b2xIfXCI9oA= =64Au -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
