Hello Chris,

I kind of understand your explanation, but the URL you're suggesting to me
is the same as mine!???
?

Can you re-type the URL I should put in the <url></url> tag?

Sonia

Chris Lieb-2 wrote:
> 
> -----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, '&amp;'.  This would change your repository URL to:
> 
> http://local.mysite/pub/get?Type=19010-TEST9040044/1&amp;Lang=X&amp;Rev=1&amp;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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Special-URL-characters-tp22436449p22437306.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to