Try again as Plain Text....

Hi,

Does anyone know how to use an ampersand (&) as part of a property value in
a POM?

eg.
<project>
  <modelVersion>4.0.0</modelVersion>
  .
  .
  .
  <properties>
    <a.property>text1 && text2 && text3</a.property>
  </properties>
  .
  .
  .
</project>

I have tried using &amp; and &#26; with no success.

When using &amp; I get the following message:
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: entity
reference names can not start with character '&' (position: START_TAG seen
...<command>test1 &&... @153:57)
        at
org.codehaus.plexus.util.xml.pull.MXParser.parseEntityRef(MXParser.ja
va:2209)
.
.
.

Any help would be greatly appreciated.

Thanks,

Graham.
-- 
View this message in context: 
http://www.nabble.com/-M2--Using-Special-Chars-%28--etc.%29-in-POM-properties-tf2015885.html#a5541211
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to