You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by solo1970 <so...@ericsson.com> on 2009/03/10 16:12:42 UTC
Special URL characters
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
--
View this message in context: http://www.nabble.com/Special-URL-characters-tp22436449p22436449.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Special URL characters
Posted by Lance Java <la...@googlemail.com>.
pom.xml is xml, you need to escape your "&" symbols with "&"
2009/3/10 solo1970 <so...@ericsson.com>
>
> 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=.<http://local.mysite/pub/get?Type=1%0A9010-TEST9040044/1&Lang=.>..
> @11:66) for project unknown at
> C:\TMP\sonia\pom.xml
>
>
> Is there a workaround?
>
> Thanks
>
> Sonia
> --
> View this message in context:
> http://www.nabble.com/Special-URL-characters-tp22436449p22436449.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Special URL characters
Posted by solo1970 <so...@ericsson.com>.
Thanks! It worked!!!
Sonia
matinh wrote:
>
> It's not, just in Nabble. Your Browser is interpreting the '&'
> entities.
> Look at the source code in your browser.
>
> hth,
> - martin
> On Tuesday 10 March 2009 solo1970 wrote:
>> 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&Form
>> >>at=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: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
>
--
View this message in context: http://www.nabble.com/Special-URL-characters-tp22436449p22437954.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Special URL characters
Posted by Martin Höller <ma...@xss.co.at>.
It's not, just in Nabble. Your Browser is interpreting the '&' entities.
Look at the source code in your browser.
hth,
- martin
On Tuesday 10 March 2009 solo1970 wrote:
> 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&Form
> >>at=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: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
Re: Special URL characters
Posted by solo1970 <so...@ericsson.com>.
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, '&'. 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Special URL characters
Posted by Chris Lieb <ch...@gmail.com>.
-----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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Special URL characters
Posted by solo1970 <so...@ericsson.com>.
I tried with this URL:
http://local.mysite/pub/get?Type%3D19010-TEST9040044%2F1%26Lang%3DX%26Rev%3D1%26Format%3DGZIP
No error when mvn validate or deploy, but the characters are not converted,
hence the URL is invalid!
Sonia
Felix Knecht-2 wrote:
>
> Hi Sonia
>
> Not tested, maybe url encoding helps for the parameter part:
> http://local.mysite/pub/get?Type%3D19010-TEST9040044%2F1%26Lang%3DX%26Rev%3D1%26Format%3DGZIP
>
> Felix
>
> solo1970 schrieb:
>> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Special-URL-characters-tp22436449p22437214.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Special URL characters
Posted by Felix Knecht <fe...@apache.org>.
Hi Sonia
Not tested, maybe url encoding helps for the parameter part:
http://local.mysite/pub/get?Type%3D19010-TEST9040044%2F1%26Lang%3DX%26Rev%3D1%26Format%3DGZIP
Felix
solo1970 schrieb:
> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org