Maven parsing pom.xml incorrectly

2013-09-18 Thread Andrew Pennebaker
I'm using Thrift in my Maven project, compiling my .thrift code to .java as part of the generate-sources step. To do this, I use the maven antrun plugin in my pom.xml, which executes a command line call to the thrift executable, and sends it the appropriate argument flags, such as -out and --gen.

Re: Maven parsing pom.xml incorrectly

2013-09-18 Thread Paul Benedict
I believe this behavior is correct. IIRC, XML does not allow double-dashes inside a comment. On Wed, Sep 18, 2013 at 9:06 AM, Andrew Pennebaker apenneba...@42six.comwrote: I'm using Thrift in my Maven project, compiling my .thrift code to .java as part of the generate-sources step. To do

Re: Maven parsing pom.xml incorrectly

2013-09-18 Thread Stuart McCulloch
On 18 Sep 2013, at 15:09, Paul Benedict wrote: I believe this behavior is correct. IIRC, XML does not allow double-dashes inside a comment. Specifically http://www.w3.org/TR/REC-xml/#sec-comments For compatibility, the string -- (double-hyphen) must not occur within comments. On

Re: Maven parsing pom.xml incorrectly

2013-09-18 Thread Andrew Pennebaker
Thanks for the clarification. Apologies to Maven, curses to W3C. I guess I'll use a silly #45;#45; instead of -- for commented command line flags. On Wed, Sep 18, 2013 at 10:11 AM, Stuart McCulloch mccu...@gmail.comwrote: On 18 Sep 2013, at 15:09, Paul Benedict wrote: I believe this